Results 1 to 9 of 9

Thread: configure.exe not honoring QMAKESPEC?

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

    Question configure.exe not honoring QMAKESPEC?

    I configured & compiled Qt 4.3.5 using MinGW, and I'm running into a problem. I simply moved the directory structure from C:\src\qt-all-opensource-src-4.3.5 to C:\usr\qt-all-opensource-src-4.3.5

    but now I can't run configure.exe -platform win32-g++ , as it somehow insists on the old location of mkspecs:

    Qt Code:
    1. Generating Makefiles...
    2. Could not find mkspecs for your QMAKESPEC(win32-g++) after trying:
    3. C:/src/qt-all-opensource-src-4.3.5\mkspecs
    4. Error processing project file: C:/usr/qt-all-opensource-src-4.3.5/projects.pro
    5. Qmake failed, return code 3
    To copy to clipboard, switch view to plain text mode 

    even if explicitly set QMAKESPEC by:

    Qt Code:
    1. set QMAKESPEC=C:\usr\qt-all-opensource-src-4.3.5\mkspecs
    To copy to clipboard, switch view to plain text mode 

    the result is the same. what might I be doing wrong?

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: configure.exe not honoring QMAKESPEC?

    QMAKESPEC has to be set to a Compiler type, not a path. so win32-g++ is correct.
    Your problem is that you can't move around the Qt installation without modifying/creating qt.conf

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

    Default Re: configure.exe not honoring QMAKESPEC?

    Quote Originally Posted by ChristianEhrlicher View Post
    QMAKESPEC has to be set to a Compiler type, not a path. so win32-g++ is correct.
    yes, I tried this was well - and got the the same results

    Quote Originally Posted by ChristianEhrlicher View Post
    Your problem is that you can't move around the Qt installation without modifying/creating qt.conf
    I see. is there a way to include qt.conf with the Qt installation itself? from the documentation it seems that one would have to include qt.conf with the applicaiton being developed, in essence hard-coding Qt's location.

    how does the Qt installer do all this? it replaces the hard-coded directories somehow?

  4. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: configure.exe not honoring QMAKESPEC?

    Your qt-installation isn't much more than an application.

    The installer is modifying the shared libs afaik.

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

    Default Re: configure.exe not honoring QMAKESPEC?

    Quote Originally Posted by ChristianEhrlicher View Post
    Your qt-installation isn't much more than an application.
    I'm not sure what you mean

    I have Qt installed somewhere, and I have my projects, several of them, depending on qmake & some on the Qt libs. I wouldn't want to hard-code the locaiton of Qt into any of my own projects, as the location differs between development systems and of course between platforms as well.

    Quote Originally Posted by ChristianEhrlicher View Post
    The installer is modifying the shared libs afaik.
    I see... I searched all the files in the directory structure for the path that is supposedly 'burned in', but didn't find it anywhere. so if it is, it's not stored as a plain string.

    Is there a way to re-create the Qt windows installer?

  6. #6
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: configure.exe not honoring QMAKESPEC?

    Quote Originally Posted by akos.maroy View Post
    I'm not sure what you mean
    Why don't you simply create a qt.conf for your Qt installation and try it out???

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

    Default Re: configure.exe not honoring QMAKESPEC?

    Quote Originally Posted by ChristianEhrlicher View Post
    Why don't you simply create a qt.conf for your Qt installation and try it out???
    I looked at the qt.conf page you sent, and from that page I deducted that I'd have to put the qt.conf file not into the Qt installation itself, but into the application I'm developing. am I misunderstanding something? where would I put the qt.conf file in the Qt installation directory structure?

  8. #8
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: configure.exe not honoring QMAKESPEC?

    into your bin dir like you would when it's a simple qt application...

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

    Default Re: configure.exe not honoring QMAKESPEC?

    Quote Originally Posted by ChristianEhrlicher View Post
    into your bin dir like you would when it's a simple qt application...
    oh, in $QT_DIR/bin ... thanks - worked like a charm!

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.