Static OpenGL libraries don't work



  • Hello guys,

    I have compiled the Qt libraries with Intel Compiler successfully, with the following configuration:

    configure -platform win64-icc -static -opensource -debug-and-release -developer-build -exceptions -accessibility -stl -opengl

    Now the thing is done, and I'm recompiling a program that uses OpenGL (after changing QtCreator's settings to the new compiled Qt, and after adding the static command to the program's qmake file), but the program doesn't find any libraries for OpenGL, and complains about missing them:

    @
    09:02:53: Running build steps for project VectorField3D...
    09:02:53: Configuration unchanged, skipping qmake step.
    09:02:53: Starting: "D:\QtSDK\mingw\bin\mingw32-make.exe"
    d:\qtsrc\4.8.0-static\bin\qmake.exe -spec d:\QtSrc\4.8.0-static\mkspecs\win32-g++ CONFIG+=declarative_debug -o Makefile VectorField3D.pro
    D:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Debug
    mingw32-make.exe[1]: Entering directory C:/Users/Sam/Dropbox/common_src/VectorField/VectorField3D' g++ -mthreads -Wl,-subsystem,windows -o debug\VectorField3D.exe object_script.VectorField3D.Debug -L"d:\QtSrc\4.8.0-static\lib" -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmaind debug\resources.qrc -L../../libsrc/Qwt/qwt-6.0.1-win-Qt-4.8.0/lib -lqwtd -lQtSvgd -lQtOpenGLd -lQtGuid -lQtCored glu32.lib opengl32.lib delayimp.lib d:\QtSrc\4.8.0-static\lib\QtGuid.lib gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib msimg32.lib d:\QtSrc\4.8.0-static\lib\QtCored.lib kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib mingw32-make.exe[1]: Leaving directoryC:/Users/Sam/Dropbox/common_src/VectorField/VectorField3D'
    g++: glu32.lib: No such file or directory
    g++: opengl32.lib: No such file or directory
    g++: delayimp.lib: No such file or directory
    g++: gdi32.lib: No such file or directory
    g++: comdlg32.lib: No such file or directory
    g++: oleaut32.lib: No such file or directory
    g++: imm32.lib: No such file or directory
    g++: winmm.lib: No such file or directory
    g++: winspool.lib: No such file or directory
    g++: msimg32.lib: No such file or directory
    g++: kernel32.lib: No such file or directory
    g++: user32.lib: No such file or directory
    g++: shell32.lib: No such file or directory
    g++: uuid.lib: No such file or directory
    g++: ole32.lib: No such file or directory
    g++: advapi32.lib: No such file or directory
    g++: ws2_32.lib: No such file or directory
    mingw32-make.exe[1]: *** [debug\VectorField3D.exe] Error 1
    mingw32-make.exe: *** [debug] Error 2
    09:02:54: The process "D:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
    Error while building project VectorField3D (target: Desktop)
    When executing build step 'Make'
    @

    What did I do wrong?

    Any help would be highly appreciated.

    Thanks.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.