Results 1 to 3 of 3

Thread: qmake -project problems

  1. #1
    Join Date
    Sep 2008
    Posts
    13
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default qmake -project problems

    Hi, I am a newbie with Qt/Qwt,
    Everything compiles perfectly if I use the .pro files that come with
    the qwt or qt examples. But if I build my own .pro file with this
    command "qmake -project" I get a .pro file that does not work

    The problem seems to have something to do with my PATH
    statement in Unix and I can not determine the problem in
    WindowsXP.

    What are the secrets of using qmake -project, and then qmake to
    get a good Makefile?

    thanks for any suggestions,
    Ken - Naperville, IL USA

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qmake -project problems

    How exactly it doesn't work? Do you get any error messages?

  3. #3
    Join Date
    Sep 2008
    Posts
    13
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up Re: qmake -project problems

    Thank you Jacek for your kind reply. I believe I traced the problem to my PATH statement in WindowsXP.

    the problem was that every .pro file had a line in it with both "/" and "\"
    like this:
    C:\Qt\4.4.2\bin/moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 sliders.h -o

    I am sorry I can not quote the error - but it said that moc.exe was not found and the compilation failed and stopped at that point.

    In this thread a kind user named "Spirit" helped me fix my path statement
    <URL: http://www.qtcentre.org/forum/f-qt-p...html#post82112 >

    and that seems to have fixed the problem.

    thank you again for taking the time to try and help a newbie. I certainly appreciate your kindness.

    Ken - USA

Similar Threads

  1. making qmake create VisualStudio console app project file?
    By akos.maroy in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2008, 14:45
  2. Replies: 3
    Last Post: 8th July 2008, 19:37
  3. qmake project dependencies
    By akos.maroy in forum Newbie
    Replies: 1
    Last Post: 15th June 2008, 13:52
  4. qmake -project does not work
    By Caius Aérobus in forum Installation and Deployment
    Replies: 2
    Last Post: 7th February 2008, 17:55
  5. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

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.