I have a serious problem running a compiled project, because the
executable path in "Run settings" is incorrect, and cannot be changed.
I do not use shadow building, so the run path is determined from the
DESTDIR in the .pro file.
That .pro file is a subdirs project, and consists of multiple static
libs (which generate .a-Files), and a single application which comes
last.
Within the application the DESTDIR is determined based on the platform:
TCLPLATFORM="unknown"
win32-g++ {
# Platform for MinGW
TCLPLATFORM="win32gnu"
}
TCLDESTEXTENSION=".utils"
DESTDIR = $$join(TCLPLATFORM,,"../../",$$TCLDESTEXTENSION)
The executable is compiled to the correct path, which implies that the
compiler knows it's platform is "win32-g++". It generates a DESTDIR of
"../../win32gnu.utils"
However, Creator when parsing the .pro file does not seem to know that I
have set the build settings to MinGW, because it falls back to the
default of
DESTDIR = "../../unknown.utils"
This now appears as executable path in the run settings, and I can no
longer start the application from Creator.
The strange part is that I have one computer where everything works
correctly - the executable path in the "run" settings is equal to the
path the executable is built to.
Now I copy the whole source tree including all .pro and .pri files, but
excluding any .pro.user files to two other computers. Opening the same
project there leads to the incorrect path, as described above.
Of the two computers with have the problem, one has Qt Creator 2.3.1,
one has 2.3.0
The computer that works has Qt Creator 2.3.0
I test on all three with Qt 4.7.3 MinGW build settings.
So the problem does not seem to be related to the Creator version.
Neither does is seem to be related to sources and project structure,
since I use the exact same files on both computers.
Anything I could try?
Kind regards
Robert Schimkowitsch
#####################################################################################
This message and any attachments are solely for the use of the intended
recipients. They may contain privileged and/or confidential information or
other information protected from disclosure. If you are not an intended
recipient, you are hereby notified that you received this email in error and
that any review, dissemination, distribution or copying of this email and any
attachment is strictly prohibited. If you have received this email in error,
please contact the sender and delete the message and any attachment from your
system.
Thank You.
ANDRITZ HYDRO GmbH
Rechtsform/ Legal form: Gesellschaft mit beschrankter Haftung / Corporation
Firmensitz/ Registered seat: Wien
Firmenbuchgericht/ Court of registry: Handelsgericht Wien
Firmenbuchnummer/ Company registration: FN 61833 g
DVR: 0605077
UID-Nr.: ATU14756806
#####################################################################################
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator