Hi,
I wrote a small app with qt and opengl (code) and I want to compile it static now.
So i downloaded Qt library and compile it static using this guide.
I added a line CONFIG += static to the pro file cd to the project location and hit:
make clean
qmake -config release
make
make clean
qmake -config release
make
To copy to clipboard, switch view to plain text mode
but I am getting several undefined references like:
qpixmapdata_gl.cpp:-1: error: undefined reference to `_imp___Z14qt_defaultDpiYv'
qpixmapdata_gl.cpp:-1: error: undefined reference to `_imp___Z14qt_defaultDpiYv'
To copy to clipboard, switch view to plain text mode
What I am doing wrong? Do I need to add the libs to the pro file? How do I do this and more important what libs should I use?
I tried something like this with no result:
LIBS += C:\Qt\4.7.3\bin\QtOpenGL4.dll
LIBS += C:\Qt\4.7.3\bin\QtOpenGL4.dll
To copy to clipboard, switch view to plain text mode
Thanks in advance.
Bookmarks