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

    I guess c:\qt\version is the default installation folder of qt framework (qt-win-opensource-4.5.2-mingw.exe)

    I moved qt from c:\qt\2009.03\qt to c:\qt\4.5.2 and everything else to c:\program files\Qt SDK. Now in Qt Creator in Tools/Options/Qt4/Qt Versions when I'm choosing c:\qt\4.5.2 as a new path to qt framework I get "The Qt Version c:\qt\4.5.2 is not installed. Run make install". Running make install gives "Nothing to do in `install'". How can I fix this?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Folder structure of Qt SDK

    Quote Originally Posted by piotr.dobrogost View Post
    I moved qt from c:\qt\2009.03\qt to c:\qt\4.5.2
    I'm afraid you cannot move a Qt installation like that because qmake knows the installation directory. What does "qmake -v" output?
    J-P Nurmi

  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

    Quote Originally Posted by jpn View Post
    I'm afraid you cannot move a Qt installation like that because qmake knows the installation directory. What does "qmake -v" output?
    >qmake -v
    QMake version 2.01a
    Using Qt version 4.5.2 in C:\Qt\4.5.2\lib

  4. #4
    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 jpn View Post
    I'm afraid you cannot move a Qt installation like that because qmake knows the installation directory.
    How could qmake know the installation directory?

  5. #5
    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: Folder structure of Qt SDK

    Quote Originally Posted by piotr.dobrogost View Post
    I guess c:\qt\version is the default installation folder of qt framework (qt-win-opensource-4.5.2-mingw.exe)
    Default doesn't mean "canonical".

    I moved qt from c:\qt\2009.03\qt to c:\qt\4.5.2 and everything else to c:\program files\Qt SDK.
    That's probably a bad idea as J-P already noticed. If you want to do such things it's probably better to download Creator and Qt as two separate packages (instead of the SDK which is a sum of the two mentioned bundles) and install them in their final destinations in the first place.

    By the way, Piotr - please adjust your mail server, we're getting bounces from it.

    <xx@xxx.dobrogost.pl>: host dobrogost.pl[89.161.204.73] said: 553
    sorry.... we don't relay a mail... nie dostarczamy poczty z nie naszych
    adresow email... (in reply to RCPT TO command)
    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.


  6. #6
    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
    That's probably a bad idea as J-P already noticed.
    I think it's a good idea, actually.
    Let's treat it as an exercise, can we?

    Quote Originally Posted by wysota View Post
    If you want to do such things it's probably better to download Creator and Qt as two separate packages (instead of the SDK which is a sum of the two mentioned bundles) and install them in their final destinations in the first place.
    There should be nothing magical about moving a product which is thought of as drop-in installation according to your own words

    Do you have any information on where and how is configuration of qt framework stored so that I could update it after moving qt?

  7. #7
    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

    I installed qt-win-opensource-4.5.2-mingw.exe in c:\qt\4.5.2 folder.
    Now Qt Creator doesn't complain when I set qt's folder to c:\qt\4.5.2
    Side note: I still would like to know where and how is configuration of qt framework stored so that I could update it manually after moving qt to another place?

    Now, when I try to build a project I get the following error

    Running build steps for project qt_test...
    Starting: C:/Qt/4.5.2/bin/qmake.exe D:/projects/qt-test/qt_test.pro -spec C:/Qt/2009.03/qt/mkspecs/win32-g++ -r CONFIG+=debug_and_release
    Failure to read QMAKESPEC conf file c:/Qt/2009.03/qt/mkspecs/win32-g++\qmake.conf.

    I have QMAKESPEC environment variable set properly to c:/qt/4.5.2/mkspecs/win32-g++\qmake.conf

    The question is why does Qt Creator still have the old path to spec?

  8. #8
    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: Folder structure of Qt SDK

    Quote Originally Posted by piotr.dobrogost View Post
    I think it's a good idea, actually.
    It's not but have it your way...

    Let's treat it as an exercise, can we?
    Be my guest.

    There should be nothing magical about moving a product which is thought of as drop-in installation according to your own words
    It's practically a drop-in installation. There is nothing magical apart the need to patch paths in qmake and a bunch of other files which is exactly what the "installer" does.

    Do you have any information on where and how is configuration of qt framework stored so that I could update it after moving qt?
    It's embedded into qmake binary. You'd have to patch it or rebuild qmake with the proper paths. Which is one of the reasons for such things not being good ideas.

    Quote Originally Posted by piotr.dobrogost View Post
    How could qmake know the installation directory
    I guess I already answered that...
    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.


  9. #9
    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

    It's the first drop-in installation I see that remembers, in binary file (sic!), where it was installed and thus can't be freely moved...

    Could you please comment on my post #13?
    http://www.qtcentre.org/forum/p-fold...stcount13.html

  10. #10
    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: Folder structure of Qt SDK

    Quote Originally Posted by piotr.dobrogost View Post
    Could you please comment on my post #13?
    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.

    Correct me if I'm wrong but you are passing an invalid path to -spec and expect it to work, right?
    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.


  11. #11
    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.

  12. #12
    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: 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.


  13. #13
    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?

  14. #14
    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: 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.