You should have OpenGL enabled if you added the QT+=opengl switch to the project file. Now the question is whether this OpenGL library is what the aux library was linked against. Versions might differ and both the libraries may be prepared for different compilers (like MSVC vs MinGW). Which one are you using?