You are not logged in.

1

Friday, January 18th 2008, 8:57am

qmake - link debug app with Qt release

Hi,

I'm working on a Qt projet on Windows. I use a .pro file to build a release and debug (CONFIG += debug_and_release) version of my project on Visual Studio.

I would like to use the release version of Qt DLL in both configurations (even in debug mode). Up to now, I need to modify the visual studio project by hand...

Is it possible to add some commands in the .pro file to avoid the use of the debug lib of Qt?

This post has been edited 1 times, last edit by "r_boman" (Jan 18th 2008, 9:08am)


2

Friday, January 18th 2008, 10:17am

RE: qmake - link debug app with Qt release

the best would be to have Qt compiled release only

in your .pro files
CONFIG -= release
CONFIG += debug
Nicolas

3

Friday, January 18th 2008, 10:51am

Thanks for your answer.

I have not compiled Qt (it comes from the Qt installer). You mean I should compile Qt in release mode only?

In that case, I think that qmake will still add "QtCore4d.lib" and "QtCore4d.lib" references in my project in the debug configuration.


Maybe I need to explain the context:
- I need to debug my app. That's why I need to compile it in debug.
- I use a VTK (http://www.vtk.org/) display widget and I have to use the release version of VTK even in debug for performance reasons. This version use the release version of Qt.
- Consequently I must use the release version of Qt everywhere (otherwise I have 2 qApp!)