Results 1 to 13 of 13

Thread: qmake using source files not in .pro file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    74
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default Re: qmake using source files not in .pro file

    Is there a kind of cache that I need to empty? Because those are source files from the previous project I tried to make.

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: qmake using source files not in .pro file

    have you posted the full pro file or part of it?

  3. #3
    Join Date
    Jul 2009
    Posts
    74
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default Re: qmake using source files not in .pro file

    That's the full file. It was auto-generated by qmake -project
    Something missing?

  4. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: qmake using source files not in .pro file

    are you running qmake in the same directory as the pro file?

  5. #5
    Join Date
    Jul 2009
    Posts
    74
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default Re: qmake using source files not in .pro file

    Yes. My command line is in the directory with the aforementioned .pro file, and I type "qmake MyHelloWorld.pro"

    BTW, the only QT-related entry in my PATH env-var is the [...]\qt\bin\ folder

  6. #6
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: qmake using source files not in .pro file

    may be try to remove +=
    SOURCES += helloWorld.cpp
    to
    SOURCES = helloWorld.cpp
    HEADERS = dummy.h

  7. The following user says thank you to nish for this useful post:

    Asperamanca (9th July 2009)

  8. #7
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: qmake using source files not in .pro file

    may be try to remove +=
    SOURCES += helloWorld.cpp
    to
    SOURCES = helloWorld.cpp
    HEADERS = dummy.h

    edit:
    also try to rename the folder, pro file to helloWorld

  9. #8
    Join Date
    Jul 2009
    Posts
    74
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default Re: qmake using source files not in .pro file

    Aaaahhh...now we're getting somewhere!

    Does qmake retains the variables last used? Even when re-booting the machine (which I did several times)?

  10. #9
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: qmake using source files not in .pro file

    so did your problem solved? its strange..

  11. #10
    Join Date
    Jul 2009
    Posts
    74
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default Re: qmake using source files not in .pro file

    Yep. That problem's solved. Now for the make...but I'll tinker around a bit before calling for help

Similar Threads

  1. Replies: 2
    Last Post: 28th June 2009, 12:39
  2. Generating .pro files from vcproj file or CMake file
    By ramazangirgin in forum Qt Programming
    Replies: 2
    Last Post: 17th February 2009, 09:37
  3. pass code from .pro file through to Makefile in qmake?
    By rholsen in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2008, 18:51
  4. Replies: 3
    Last Post: 8th July 2008, 19:37
  5. need script to change qmake .pro file
    By rajeshs in forum Qt Programming
    Replies: 5
    Last Post: 7th July 2007, 17:53

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.