Results 1 to 1 of 1

Thread: How to write a correct .pri file ? Qtcreator does not include my sources ....

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default How to write a correct .pri file ? Qtcreator does not include my sources ....

    I have the next .pri file :

    Qt Code:
    1. INCLUDEPATH += D:/MY_path/MY_folder
    2.  
    3. SOURCES += file1.cpp \
    4. file2.cpp \
    5. file3.cpp
    6.  
    7. HEADERS += file1.h \
    8. file2.h \
    9. file3.h
    To copy to clipboard, switch view to plain text mode 

    Ok, I want to add this file to some projects, which are located at several paths in my C or D drive (So I cannot write ../path/path .... to define relative paths or simply I dont want )

    I use at the .pro file where I want to have the 'my_project' files :
    Qt Code:
    1. include(d:/MY_path/MY_folder/my_project.pri)
    To copy to clipboard, switch view to plain text mode 

    In the example I show, QtCreator detects only headers....
    (I see the .folder with the .pri file and the Headers folder, but not the Sources folder).

    Any help ? Thanks

    Solved....
    You must use absolute paths .....
    Last edited by tonnot; 23rd March 2011 at 12:08. Reason: Solved

Similar Threads

  1. Replies: 2
    Last Post: 2nd November 2010, 05:15
  2. how to use lib and include wxwidget in QTcreator
    By nhs_0702 in forum Qt Programming
    Replies: 1
    Last Post: 16th April 2010, 10:48
  3. i want write TOrrent client on QTCreator
    By nhs_0702 in forum Qt Programming
    Replies: 0
    Last Post: 26th March 2010, 07:32
  4. INCLUDE lib in qtcreator
    By shenakan in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2009, 18:12
  5. Replies: 2
    Last Post: 24th May 2009, 17:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.