c++ - QT creator with mingw, glew linking errors -


i've been trying around 3/4 days link glew qt creator, i´m unable to. i've tried msvc , mingw 64 & 32 bits. right i´m using mingw 32 bits, , 32bits glew compiled mingw.

this code in .pro file:

qt       += core gui opengl  config += c++11  includepath += c:/lib/glew-gcc-debug-1.10.0-win32/include/gl  libs += -lglew32.dll -lc:/lib/glew-gcc-debug-1.10.0-win32/bin -lc:/lib/glew-gcc-debug-1.10.0-win32/lib   target = test template = app   sources += \     glslprogram.cpp \     glutils.cpp \     main.cpp \     mainview.cpp \     mainwindow.cpp \     sceneline.cpp \     dialog.cpp \     viewpositiondialog.cpp  headers  += \     glslprogram.h \     glutils.h \     mainview.h \     scene.h \     mainwindow.h \     sceneline.h \     dialog.h \     viewpositiondialog.h  forms += \     dialog.ui \     viewpositiondialog.ui  other_files += \     shader/scenebasic2.dat 

and is output:

g++ -wl,-subsystem,windows -mthreads -o debug\test.exe object_script.test.debug  -lmingw32 -lc:/qt/qt5.5.0/5.5/mingw492_32/lib -lqtmaind -lshell32 -lglew32.dll -lc:/lib/glew-gcc-debug-1.10.0-win32/bin -lc:/lib/glew-gcc-debug-1.10.0-win32/lib -lqt5opengld -lqt5widgetsd -lqt5guid -lqt5cored  ./debug\glutils.o: in function `zn7glutils19checkforopenglerrorev': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:34: undefined reference `glgeterror@0' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:39: undefined reference `glgeterror@0' makefile.debug:112: recipe target 'debug\test.exe' failed ./debug\glutils.o: in function `zn7glutils10dumpglinfoeb': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:46: undefined reference `glgetstring@4' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:47: undefined reference `glgetstring@4' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:48: undefined reference `glgetstring@4' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:49: undefined reference `glgetstring@4' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:52: undefined reference `glgetintegerv@8' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:53: undefined reference `glgetintegerv@8' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/glutils.cpp:63: undefined reference `glgetintegerv@8' ./debug\mainview.o: in function `zn8mainview12initializeglev': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/mainview.cpp:113: undefined reference `glclearcolor@16' ./debug\sceneline.o: in function `zn9sceneline9initsceneev': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:279: undefined reference `glclearcolor@16' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:280: undefined reference `glenable@4' ./debug\sceneline.o: in function `zn9sceneline6renderepf': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:325: undefined reference `glclear@4' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:336: undefined reference `gldrawarrays@12' ./debug\sceneline.o: in function `zn9sceneline6renderedpf': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:350: undefined reference `glclear@4' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:360: undefined reference `gldrawarrays@12' ./debug\sceneline.o: in function `zn9sceneline6rendereddddddpf': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:393: undefined reference `glclear@4' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:417: undefined reference `gldrawarrays@12' c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:421: undefined reference `gldrawarrays@12' ./debug\sceneline.o: in function `zn9sceneline6resizeeii': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/sceneline.cpp:441: undefined reference `glviewport@16' ./debug\sceneline.o: in function `zn5scenec2ev': c:\development\test\build-test-desktop_qt_5_5_0_mingw_32bit-debug/../test/scene.h:4: undefined reference `vtable scene' collect2.exe: error: ld returned 1 exit status mingw32-make[1]: leaving directory 'c:/development/test/build-test-desktop_qt_5_5_0_mingw_32bit-debug' makefile:34: recipe target 'debug' failed 

hope can help.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -