Results 1 to 20 of 20

Thread: Folder structure of Qt SDK

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

    Default Folder structure of Qt SDK

    Do you know any resource describing in detail Qt SDK folder structure?

    For example, I'm wondering why some of dll files are in c:\qt\2009.03\bin and in c:\qt\2009.03\qt\bin at the same time? Having the same name they have different sizes (QtCore4 - 2*016*256 bytes in the first folder and 2*730*496 bytes in the second folder). What's the difference between dll files with the same names in both folders?

    SDK default installation path is c:\qt\2009.03 and qt ends up being installed in c:\qt\2009.03\qt. Shouldn't qt be rather installed in let's say c:\qt-4.5.2 instead? Can I split SDK's qt from the rest of SDK and point SDK to the new location of qt?

    Thanks in advance for all replays.

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

    Default Re: Folder structure of Qt SDK

    One is the Qt tree, the other is Qt Creator tree. Qt Creator is compiled against the bleeding-edge version of Qt that is not stable enough to be released so two versions of Qt are needed - one for Creator itself and the other for your applications.
    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. The following user says thank you to wysota for this useful post:

    piotr.dobrogost (13th July 2009)

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

    Default Re: Folder structure of Qt SDK

    QtCreator is apparently compiled with Visual Studio (on Windows), and I think the qt framework libs are compiled with MinGW.
    Is this true?

    Wouldn't this be more in line with Windows tradition to put Qt Creator and its dependencies in Program Files folder?

    Wouldn't this be more logical to put framework in its canonical place c:\qt-version ?

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

    Default Re: Folder structure of Qt SDK

    No. Take a look that the "bin" directory contains the mingw runtime dll. At least my version does

    Wouldn't this be more in line with Windows tradition to put Qt Creator and its dependencies in Program Files folder?
    Let no-one stop you from doing that. Currently the SDK is practically a drop-in installation but if you want to complicate things, please do. It should work just fine.

    Wouldn't this be more logical to put framework in its canonical place c:\qt-version ?
    What is "canonical" about C:\qt-version? I don't think messing the root of C drive by default is a good idea.
    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. #5
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Folder structure of Qt SDK

    It should have been c:\qt\version instead of c:\qt-version

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

    Default Re: Folder structure of Qt SDK

    I still see nothing "canonical" in it In general there is no rule where Qt should be placed.
    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.


  8. #7
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    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?

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

    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

  10. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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.


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

    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

  12. #11
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    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?

  13. #12
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    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?

  14. #13
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    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?

  15. #14
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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.


  16. #15
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    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

  17. #16
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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.


  18. #17
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    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.

  19. #18
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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.


  20. #19
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    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?

  21. #20
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.