PDA

View Full Version : OpenGl compile static



vicbr
18th August 2011, 23:49
Hi,

I wrote a small app with qt and opengl (code (https://github.com/vdamatto/A-star-search-algorithm)) and I want to compile it static now.

So i downloaded Qt library and compile it static using this guide (http://doc.trolltech.com/4.7/deployment-windows.html).

I added a line CONFIG += static to the pro file cd to the project location and hit:


make clean
qmake -config release
make

but I am getting several undefined references like:


qpixmapdata_gl.cpp:-1: error: undefined reference to `_imp___Z14qt_defaultDpiYv'

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

Thanks in advance.