[Qt-interest] qmake does not find source files
Schimkowitsch Robert
Robert.Schimkowitsch at andritz.com
Wed Oct 5 10:19:48 CEST 2011
Frankly, there was a little frustration doing the talking.
Having read a while ago that ".pro" and ".pri" files were essentially the same, and also having read that source file paths are relative to the ".pro"-files, I concluded the same must go for ".pri" files.
Then I changed that for a few dozen projects.
THEN I double-checked.
I agree, once you know, it does make sense from a technical standpoint, at least.
Kind regards
Robert Schimkowitsch
-----Original Message-----
From: Joerg Bornemann [mailto:joerg.bornemann at nokia.com]
Sent: Wednesday, October 05, 2011 10:00 AM
To: Schimkowitsch Robert
Cc: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] qmake does not find source files
On Tue, 2011-10-04 at 09:25 +0200, ext Schimkowitsch Robert wrote:
> That doesn't make much sense.
It might be inconvenient but its totally sensible.
The include(foo.pri) copies the content of foo.pri just like the C
preprocessor does. No magic, no surprise.
> The .pro file naturally needs to know where the .pri files is. But it
> shouldn't require knowledge of the source location within that .pri
> file. That would create a bunch of unneccessary dependencies causing
> the .pri file and it's sources to be less easily transferred or moved.
If you just prepend $$PWD to your source files in a .pri there are no
dependencies which prevent you from moving the folder where the .pri
file is located.
> Also, I couldn't find anything about that in the qmake documentation.
Actually, that might be the biggest problem. :-)
We have
http://doc.qt.nokia.com/4.7/qmake-function-reference.html#include-filename
http://doc.qt.nokia.com/4.7/qmake-variable-reference.html#pwd
But the reader must connect these loose strings him/herself.
BR,
Jörg
#####################################################################################
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 beschränkter Haftung / Corporation
Firmensitz/ Registered seat: Wien
Firmenbuchgericht/ Court of registry: Handelsgericht Wien
Firmenbuchnummer/ Company registration: FN 61833 g
DVR: 0605077
UID-Nr.: ATU14756806
#####################################################################################
More information about the Qt-interest-old
mailing list