QT OpenGL - kann nicht kompilieren
lima-city → Forum → Programmiersprachen → C/C++ und D
-
servus,
ich habe mich in letzter zeit sehr mit QT beschäftigt und möchte jetz auch mit OpenGL in einem QT fenster arbeiten.
alles was ich bekomme ist:
E:\Dev\Projekte-C++\QT\OpenGL>make e:\Programme\Qt\4.4.3\bin\qmake.exe -win32 -o Makefile OpenGL.pro mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory `E:/Dev/Projekte-C++/QT/OpenGL' g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT - DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEED S_QMAIN -I"..\..\..\..\Programme\Qt\4.4.3\include\QtCore" -I"..\..\..\..\Program me\Qt\4.4.3\include\QtCore" -I"..\..\..\..\Programme\Qt\4.4.3\include\QtGui" -I" ..\..\..\..\Programme\Qt\4.4.3\include\QtGui" -I"..\..\..\..\Programme\Qt\4.4.3\ include\QtOpenGL" -I"..\..\..\..\Programme\Qt\4.4.3\include\QtOpenGL" -I"..\..\. .\..\Programme\Qt\4.4.3\include" -I"." -I"e:\Programme\Qt\4.4.3\include\ActiveQt " -I"debug" -I"." -I"..\..\..\..\Programme\Qt\4.4.3\mkspecs\default" -o debug\gl widget.o glwidget.cpp In file included from E:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../. ./include/windows.h:50, from ../../../../Programme/Qt/4.4.3/include/QtCore/../../src/co relib/global/qt_windows.h:52, from ../../../../Programme/Qt/4.4.3/include/QtCore/qt_windows.h :1, from ../../../../Programme/Qt/4.4.3/include/QtOpenGL/../../src/ opengl/qgl.h:52, from ../../../../Programme/Qt/4.4.3/include/QtOpenGL/qgl.h:1, from ../../../../Programme/Qt/4.4.3/include/QtOpenGL/QtOpenGL:3 , from glwidget.cpp:39: E:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:16 63: error: declaration of C function `LONG InterlockedCompareExchange(volatile L ONG*, LONG, LONG)' conflicts with ../../../../Programme/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_win dows.h:387: error: previous declaration `long int InterlockedCompareExchange(lon g int*, long int, long int)' here E:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:16 67: error: declaration of C function `LONG InterlockedDecrement(volatile LONG*)' conflicts with ../../../../Programme/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_win dows.h:389: error: previous declaration `long int InterlockedDecrement(long int* )' here E:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:16 68: error: declaration of C function `LONG InterlockedExchange(volatile LONG*, L ONG)' conflicts with ../../../../Programme/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_win dows.h:390: error: previous declaration `long int InterlockedExchange(long int*, long int)' here E:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:16 72: error: declaration of C function `LONG InterlockedExchangeAdd(volatile LONG* , LONG)' conflicts with ../../../../Programme/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_win dows.h:391: error: previous declaration `long int InterlockedExchangeAdd(long in t*, long int)' here E:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:16 76: error: declaration of C function `LONG InterlockedIncrement(volatile LONG*)' conflicts with ../../../../Programme/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_win dows.h:388: error: previous declaration `long int InterlockedIncrement(long int* )' here mingw32-make[1]: *** [debug/glwidget.o] Error 1 mingw32-make[1]: Leaving directory `E:/Dev/Projekte-C++/QT/OpenGL' mingw32-make: *** [debug] Error 2
ich habe in die *.pro datei das notwendige 'QT += opengl' geschrieben - aber es funzt nicht.
mfg splinto -
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage