Results 1 to 5 of 5

Thread: building only qmake?

  1. #1
    Join Date
    Jun 2008
    Posts
    49
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question building only qmake?

    I wonder if it is possible, when building Qt from source code, to build only qmake, but none of thq Qt libraries? My project uses qmake as a build tool, but is actually not depent on Qt as a library.

    I'm trying to achieve this by specifying --make tools --nomake libs to the configure script, but it will still want to build libs as well.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: building only qmake?

    Since QMake is such a major tool in Qt, I would imagine that just "configure" would actually build QMake, as it's required to build the makefiles used for the examples and demos.

  3. #3
    Join Date
    Jun 2008
    Posts
    49
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: building only qmake?

    Quote Originally Posted by fatjuicymole View Post
    Since QMake is such a major tool in Qt, I would imagine that just "configure" would actually build QMake, as it's required to build the makefiles used for the examples and demos.
    hm, that is actually true. but 'installing' qmake, so that it also finds the spec files - is that special in some way?

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: building only qmake?

    I don't think so, it embeds the base directory it was built from and uses that to find the specs. I noticed that when I built a Qt dist and then renamed the directory afterwards - everything stopped working (couldn't find the mkspecs file) until I renamed it back.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: building only qmake?

    You can run make install_mkspecs, if you want. But you can just copy the mkspecs directory yourself.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QMAKE: Building static library without -fPIC
    By rainman110 in forum Qt Programming
    Replies: 1
    Last Post: 2nd May 2012, 17:07
  2. qmake sux a lot
    By singermornings in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 09:33
  3. Building documentation with qmake
    By nurtsi in forum Installation and Deployment
    Replies: 3
    Last Post: 27th April 2008, 21:58
  4. Replies: 0
    Last Post: 29th May 2007, 07:28
  5. Win32 qmake: building a static library
    By Amanda in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2006, 20:32

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.