Results 1 to 20 of 20

Thread: Folder structure of Qt SDK

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    133
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10
    Thanked 4 Times in 3 Posts

    Default Re: Folder structure of Qt SDK

    Quote Originally Posted by wysota View Post
    I already did - the path is hardcoded into qmake so that you can have different installations of Qt and switch them by activating different qmakes.
    Bizzare way of customization I have to admin.
    Why to hardcode any path?
    Couldn't just qmake read specific environment variable?
    Wouldn't that be more flexible solution?

    Quote Originally Posted by wysota View Post
    Correct me if I'm wrong but you are passing an invalid path to -spec and expect it to work, right?
    No. I can't change -spec parameter direclty from within Qt Creator. I thought it would have been taken from QMAKESPEC environment variable so I set it properly to c:/qt/4.5.2/mkspecs/win32-g++\qmake.conf However this doesn't change anything; Qt Creator still shows old, wrong path to the specification file.

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

    Default Re: Folder structure of Qt SDK

    Quote Originally Posted by piotr.dobrogost View Post
    Bizzare way of customization I have to admin.
    Why to hardcode any path?
    Couldn't just qmake read specific environment variable?
    Wouldn't that be more flexible solution?
    It does read environment variables. But in case one isn't provided it can either refuse to cooperate or do something useful. It does something useful. Unfortunately Windows doesn't support links in its filesystem as this would be even simpler.

    No. I can't change -spec parameter direclty from within Qt Creator. I thought it would have been taken from QMAKESPEC environment variable so I set it properly to c:/qt/4.5.2/mkspecs/win32-g++\qmake.conf However this doesn't change anything; Qt Creator still shows old, wrong path to the specification file.
    Well... works for me (note the last part) when I set the specs manually:
    Starting: /usr/bin/qmake /home/(...)/appserver.pro -r CONFIG+=debug -spec bogusspec
    Still doing things properly is probably a better idea. I don't know why you're so eager to separate the installation into two parts when there is one that is already separated and would work perfectly fine for you.
    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
    Join Date
    May 2009
    Posts
    133
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10
    Thanked 4 Times in 3 Posts

    Default Re: Folder structure of Qt SDK

    Can you take a look at Projects/Build Settings/Build Steps settings in creator and tell me where the value of -spec parameter is taken from?

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

    Default Re: Folder structure of Qt SDK

    It's taken from qmake -query QMAKE_MKSPECS but I'd advise to take the source code of Creator and check that our 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. Default folder in Qt Creator
    By brunelch in forum Qt Tools
    Replies: 1
    Last Post: 16th July 2009, 17:07
  2. Replies: 1
    Last Post: 7th June 2009, 09:22
  3. Path to the previous folder
    By Zergi in forum Newbie
    Replies: 2
    Last Post: 15th July 2008, 18:24
  4. failing to achieve desired size of a BitField structure
    By nass in forum General Programming
    Replies: 8
    Last Post: 13th February 2007, 13:29
  5. Replies: 1
    Last Post: 1st March 2006, 11:43

Tags for this Thread

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.