Results 1 to 13 of 13

Thread: QMake make install problems

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Posts
    23
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMake make install problems

    Remember that you have to run qmake after files file1.qm and file2.qm are created for this to work.
    But that's the point ! qm-files are create during make and make is called after qmake...
    So I have to call qmake twice during the build+installation process !

    qmake => creates makefiles
    make => builds application binaries
    make translation => creates translation binaries (qm-files)
    qmake => creates makefiles again !!!
    make install => installs application+translation binaries

    The problem is, that the first qmake ignores all install-target files that are not yet built.
    For the application binary, Trolltech seems to have implemented a "special" solution with the reserved "target" target.
    But there seems to be no such a solution for other files, right ?

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

    Default Re: QMake make install problems

    Quote Originally Posted by Comer352l View Post
    But that's the point ! qm-files are create during make and make is called after qmake...
    So I have to call qmake twice during the build+installation process !
    qm files are not created by make. At least not by default - qm files are created by calling lrelease on the project file. You don't need to recreate qm files during every compilation, only once during a final release (you can work on ts files in the meantime). I'm sure calling qmake once more in this situation is not a problem.

Similar Threads

  1. Mac OS X install problems
    By rickbsgu in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2006, 06:31
  2. Mac OSX install Tiger intel&ppc qmake
    By patrik08 in forum Installation and Deployment
    Replies: 3
    Last Post: 6th July 2006, 18:54
  3. make install with debug_and_release_target
    By aba in forum Qt Programming
    Replies: 0
    Last Post: 17th April 2006, 19:28
  4. make install equivalent in qmake ...
    By momesana in forum Newbie
    Replies: 3
    Last Post: 20th February 2006, 21:46
  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
  •  
Qt is a trademark of The Qt Company.