Results 1 to 17 of 17

Thread: qt-win-opensource-4.3.1-mingw.exe - qmake has my install path hard-coded into it

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qt-win-opensource-4.3.1-mingw.exe - qmake has my install path hard-coded into it

    But what if the patching is done by the installer?
    Look at option.h, from the qmake project:
    Qt Code:
    1. {
    2. public:
    3. enum LibraryLocation
    4. {
    5. PrefixPath,
    6. DocumentationPath,
    7. HeadersPath,
    8. LibrariesPath,
    9. BinariesPath,
    10. PluginsPath,
    11. DataPath,
    12. TranslationsPath,
    13. SettingsPath,
    14. DemosPath,
    15. ExamplesPath
    16. };
    17. static QString location(LibraryLocation);
    18. };
    To copy to clipboard, switch view to plain text mode 
    This is the class used to access the paths. It is a minimal version of QLibraryInfo.

    The paths are written by (and ONLY by) configure. Take a look in configureapp.cpp( from tools) in function Configure::generateConfigfiles(). Here is the only time those values are written somewhere.

    This leads me to believe that the installer actually uses configure to initially configure the destination paths, and it modifies qmake.

    There is no other explanation, or I don't see it right now.
    Last edited by marcel; 4th October 2007 at 07:43.

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.