[Qt-interest] qmake does not find source files

Schimkowitsch Robert Robert.Schimkowitsch at andritz.com
Tue Oct 4 09:25:27 CEST 2011


That doesn't make much sense.
 
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.
 
Also, I couldn't find anything about that in the qmake documentation.
 
 
Kind regards

Robert Schimkowitsch 



________________________________

From: joerg.bornemann at nokia.com [mailto:joerg.bornemann at nokia.com] 
Sent: Tuesday, October 04, 2011 9:15 AM
To: Schimkowitsch Robert; qt-interest at qt.nokia.com
Subject: RE: qmake does not find source files


The source files are added verbatim to SOURCES and thus are relative to your .pro file.

Try prepending $$PWD/ like in  
$$PWD/algdiv1.cpp

Oh and sorry for the top-quoting...


BR,

Jörg

________________________________

From: qt-interest-bounces+joerg.bornemann=nokia.com at qt.nokia.com [qt-interest-bounces+joerg.bornemann=nokia.com at qt.nokia.com] on behalf of ext Schimkowitsch Robert [Robert.Schimkowitsch at andritz.com]
Sent: 04 October 2011 09:02
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] qmake does not find source files



Hi all, 

I have a puzzling problem loading a .pro file: It does not seem to find it's source files. 

The .pro file looks like this: 

QT    -= gui 
TARGET = prk 
CONFIG += staticlib 
TEMPLATE = lib 

include(../../tclglobal.pri) 

include(../../tclalg/frei/alg.pri) 
include(../../tclat/frei/at.pri) 
include(../../tclcae/frei/cae.pri) 
include(../../tclcaep/frei/caep.pri) 
include(../../tcldh/frei/dh.pri) 
...and so on 

The .pri files look like this: 

SOURCES += algdiv1.cpp 

HEADERS +=        \ 
    alg.h         \ 
    algcdbtypes.h \ 
    algtypes.h    \ 
    algversion.h  


So the .pro file includes the .pri files, which should in turn find their sources. 
Instead, I get 
"WARNING: Failure to find:" for about every source file in my project. 

What's wrong? 

Kind regards 


Robert Schimkowitsch 
Automation
Development Control Center Systems 
ANDRITZ HYDRO GmbH
EURO PLAZA - Building D
Wienerbergstrase 41
1120 Vienna, Austria 
Phone (+43/1) 81195-6767
Fax (+43/1) 81195-6954
e-mail: robert.schimkowitsch at andritz.com 
Internet: www.andritz-hydro.com <file://www.andritz-hydro.com>  

________________________________

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. 

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 

Thank You. 

________________________________

#####################################################################################
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
#####################################################################################

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111004/3faed22a/attachment.html 


More information about the Qt-interest-old mailing list