Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, January 2008
Eclipse integration: different Qt versions for debug / release builds


Message 1 in thread

Hi everybody!
Is it possible to specify two different versions for the debug / release
build targets in eclipse Qt integration?
What I'd like to do is to use a normal Qt build to build debug target, and a
static Qt build to build release target, without changing it every time in
the "Use QT Version" selector in "Qt Properties" in "Project Properties"
dialog...
Thanks!
Davide

Message 2 in thread

On Fri, Jan 25, 2008 at 10:10:40AM +0100, Davide Pippa wrote:
> Hi everybody!
> Is it possible to specify two different versions for the debug / release
> build targets in eclipse Qt integration?
> What I'd like to do is to use a normal Qt build to build debug target, and a
> static Qt build to build release target, without changing it every time in
> the "Use QT Version" selector in "Qt Properties" in "Project Properties"
> dialog...
> Thanks!
> Davide

Hi.. You can just disable "qmake makefile generator" in eclipse and then
create two directories like "debug" and "release" and create correct
makefiles in them. Something like this should be enough:

mkdir debug release
cd debug
/path/to/qt-debug/qmake ../project.pro
cd ../release
/path/to/qt-release/qmake ../project.pro

Since generated makefiles checks for .pro files updates, you can call
qmake only once.

I use almost same hack, but with CMake build system. and it works.

However don't forget that eclipse will use "default" version for code
completion.

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: Digital signature