Results 1 to 4 of 4

Thread: qmake -query and installation directories

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default qmake -query and installation directories

    If this question is already addressed somewhere, apologies. Just point me to the answer.

    After building Qt in build directory X, I do a 'nmake INSTALL_ROOT=Y install' (on a Windows platform). Afterwards, if you run 'qmake -query QT_INSTALL_LIBS', the pathname still points to the build directory rather than the install directory.

    Am I doing something wrong? Is there a workaround?

    Thanks.

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

    Default Re: qmake -query and installation directories

    There used to be a -prefix option for configure for Windows but I heard it's not there anymore So other than patching the qmake binary there is probably no alternative. You might try with environment variables (QTDIR maybe? Or QMAKESPECS pointing to the absolute path to the proper specs file).
    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.


  3. #3

    Default Re: qmake -query and installation directories

    Quote Originally Posted by wysota View Post
    ... You might try with environment variables (QTDIR maybe? Or QMAKESPECS pointing to the absolute path to the proper specs file).
    I had QTDIR set so I know that doesn't work so I doubt QMAKESPECS will either but its worth a shot.

    Hmm. I wonder how the downloadable Qt intstaller program handles this: it works like it should.

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

    Default Re: qmake -query and installation directories

    It patches the qmake binary after the files are copied.
    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. MacOS settings
    By skaiser in forum Installation and Deployment
    Replies: 2
    Last Post: 19th July 2007, 07:47

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.