Results 1 to 3 of 3

Thread: help explaining qmake generated make file

  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default help explaining qmake generated make file

    Hi,

    Since I am on a central administrated PC, and I want to work with Qt4 and KDevelop > 3.0 I had to install both Qt4 and KDevelop on not default locations.
    But when I try to compile a Qt4 test project I get an error that says that <Qt path>/src/moc does not exist.
    So wondering where this path is in the make file I found out that qmake generates this:
    $(MOC):
    ( cd $(QTDIR)/src/moc && $(MAKE) )
    I thought this has to do with my custom install so I went to check the makefile on my working qt3 installation with a project that compiles.
    And there too, qmake generates the same above code in the makefile.
    But neither may Qt3 nor Qt4 installation has $(QTDIR)/src/moc, so what I don't understand is, why does this work for the Qt3 make file?

    Thanks.

    EDIT:
    never mind I figured it out.
    For a reason i still need to figure out qmake generates a makfile with a MOC variable set to /bin/moc and not $(QTDIR)/bin/moc, so it trys to make moc out of source, whic the path to does not exist since this is the installation location not the src location of Qt4.
    Last edited by high_flyer; 3rd August 2006 at 20:26.

  2. #2
    Join Date
    Jan 2006
    Posts
    46
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: help explaining qmake generated make file

    Which is the path to the qmake executable that is generating the mentioned Makefile?
    How are you running KDevelop? I mean, what is the environment from which you start KDevelop?
    Kandalf
    There's no place like ~

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: help explaining qmake generated make file

    I figured it all out - KDevelop uses PATH to call qmake, so all though QTDIR is given to it correctly it will run the qmake that it finds first in PATH.

Similar Threads

  1. Replies: 1
    Last Post: 18th July 2006, 12:06
  2. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11
  3. make install equivalent in qmake ...
    By momesana in forum Newbie
    Replies: 3
    Last Post: 20th February 2006, 21:46
  4. Replies: 3
    Last Post: 12th January 2006, 17:41
  5. Replies: 1
    Last Post: 11th January 2006, 14:15

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.