[Qt-creator] win32 set when debugging on linux
Christian Hönig
christian at hoenig.cc
Tue Nov 25 17:28:43 CET 2008
Hi,
first of all ... thanks for this very cute program ;-). I use QtCreator at
work and at home on a daily basis and run the daily snapshots. Yes, I really
like its simplicity, speed and its working code completion (I had hard fights
with KDevelop before).
Now I found something interesting:
I run a linux machine with Qt 4.4. We have a fairly complex set of .pro and
.pri files to build one of our projects. I extracted the main parts from those
files:
--------------%<--------------%<--------------%<--------------
[...]
# Detect the local path
win32 {
LOCAL_DIR = "winpath"
} else {
LOCAL_DIR = "linuxpath"
}
[...]
DESTDIR = $${LOCAL_DIR}$${SEP}bin$${SEP}$${DEBUG_OR_RELEASE}
[...]
TARGET = mybin
--------------%<--------------%<--------------%<--------------
If I run qmake and make, DESTDIR is always set to 'linuxpath' as it should and
everything is fine. But when I try to either start or debug mybin, I always
get "Failed to start program. Path or permissions wrong?". To trace the
problem I started QtCreator using strace and the following occured when I
started 'mybin' through QtCreator:
[...]
stat("/[...]/winpath/mybin", 0x7fbc2133dc28) = -1 ENOENT (No such file or
directory)
lstat("/[...]/winpath/mybin", 0x7fff3e2194a0) = -1 ENOENT (No such file or
directory)
[...]
So obviously it is running the win32 settings from my configuration while it
should run "/[...]/linuxpath/mybin" instead. This is with 20081125 x86_64
snapshot.
Thanks and
take care, have fun
/christian
More information about the Qt-creator-old
mailing list