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:

Qt Code:
  1. make clean
  2. qmake -config release
  3. make
To copy to clipboard, switch view to plain text mode 

but I am getting several undefined references like:

Qt Code:
  1. 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:

Qt Code:
  1. LIBS += C:\Qt\4.7.3\bin\QtOpenGL4.dll
To copy to clipboard, switch view to plain text mode 

Thanks in advance.