Qt-interest Archive, June 2007
Qt4.3 compiled release, app compiling debug
Message 1 in thread
I used:
configure -release -static -fast
when I downloaded Qt4.3.0 for windows
It created only release version of libraries (which is what I want)
But If I specified
CONFIG -= debug_and_release
CONFIG -= release
CONFIG += debug
in my project file, meaning I want to debug my applications.
When compiling, it tried to also link with debug version of Qt, which
is not compiled. Therefore it fails.
But I need debug configuration to get debugging info into my
application. Is there any way to configure Qt to use release version
of qt libraries, but other settings as in debug (-g, -O0, etc ...)
when compiling in debug mode?
Or maybe qmake should do that automatically if Qt is configured with
"-release". :) But it does not ....
I tried looking at mkspecs, but I saw no way to change it in there.
Martin Petricek
--
[ signature omitted ]
Message 2 in thread
On 11.06.07 18:21:15, BH wrote:
> I used:
> configure -release -static -fast
> when I downloaded Qt4.3.0 for windows
> It created only release version of libraries (which is what I want)
>
> But If I specified
> CONFIG -= debug_and_release
> CONFIG -= release
> CONFIG += debug
> in my project file, meaning I want to debug my applications.
> When compiling, it tried to also link with debug version of Qt, which
> is not compiled. Therefore it fails.
>
> But I need debug configuration to get debugging info into my
> application. Is there any way to configure Qt to use release version
> of qt libraries, but other settings as in debug (-g, -O0, etc ...)
> when compiling in debug mode?
If you want to build your application in debug mode with qmake, you need
to build Qt in debug or debug-and-release mode period.
The only other way is to use a different buildsystem that lets you
choose which Qt libs to link to.
Andreas
--
[ signature omitted ]