You are not logged in.

1

Thursday, October 25th 2012, 6:12pm

QT as a plugin for eclipse cdt doesn't work

Hello guys,

I have tried now about 8 hours to get running qt on eclipse. Also I have installed MinGW, QT Integration and CDT for C++ programming under eclipse.

I get following error messages on my console if I try to compile an empty project:
19:00:08 **** Build of project test ****
mingw32-make.exe debug
mingw32-make.exe -f Makefile.Debug
mingw32-make.exe[1]: Entering directory `D:/Entwicklung/SmartBlue/test'
g++ -c -g -Wall -Wextra -fno-exceptions -fno-rtti -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -DQT_NO_DYNAMIC_CAST -I"c:\Qt\4.8.3\include\QtCore" -I"c:\Qt\4.8.3\include\QtGui" -I"c:\Qt\4.8.3\include\Qt3Support" -I"c:\Qt\4.8.3\include" -I"c:\Qt\4.8.3\include\ActiveQt" -I"debug" -I"c:\Qt\4.8.3\mkspecs\default" -o debug\main.o main.cpp
In file included from c:\Qt\4.8.3\include/QtCore/qglobal.h:1:0,
mingw32-make.exe[1]: Leaving directory `D:/Entwicklung/SmartBlue/test'
from c:\Qt\4.8.3\include/QtCore/../../src/corelib/global/qnamespace.h:45,
from c:\Qt\4.8.3\include/QtCore/qnamespace.h:1,
from c:\Qt\4.8.3\include/QtCore/../../src/corelib/kernel/qobjectdefs.h:45,
from c:\Qt\4.8.3\include/QtCore/qobjectdefs.h:1,
from c:\Qt\4.8.3\include/QtCore/../../src/corelib/kernel/qobject.h:47,
from c:\Qt\4.8.3\include/QtCore/qobject.h:1,
from c:\Qt\4.8.3\include\QtCore/../../src/corelib/kernel/qabstracteventdispatcher.h:45,
from c:\Qt\4.8.3\include\QtCore/qabstracteventdispatcher.h:1,
from c:\Qt\4.8.3\include\QtCore/QtCore:3,
from main.cpp:1:
c:\Qt\4.8.3\include/QtCore/../../src/corelib/global/qglobal.h:45:20: fatal error: stddef.h: No such file or directory
compilation terminated.
mingw32-make.exe[1]: *** [debug/main.o] Error 1
mingw32-make.exe: *** [debug] Error 2


can please somebody helps me. I'm with the end with my nerves.

thanks a lot to all.

Kind Regards,

2

Thursday, October 25th 2012, 6:18pm

If I try to compile with the command line and g++ I get following error message:
main.cpp:1:18: fatal error: QtCore: No such file or directory
compilation terminated.

I hope this helps to find the error.

Junior

Professional

  • "Junior" is male

Posts: 1,623

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

3

Thursday, October 25th 2012, 6:48pm

Check your main.cpp to ensure the syntax is correct for the QtCore entry. Seems it trying to read it as a file verse and include.