Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to customise Qt5's search paths (on OSX)?
Forum Updated to NodeBB v4.3 + New Features

How to customise Qt5's search paths (on OSX)?

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 999 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mkae
    wrote on last edited by
    #1

    Hi,

    I would like to customise Qt5's search paths in such a way that my Qt5 installation on OSX will use special absolute paths within a user-definable prefix in order to set up a "CI system for KF5":https://trac.macports.org/wiki/KDEProblems/KDEMacPortsCI/Status.

    Using the following two configure options I tell the build system which paths should be used:

    @-DCMAKE_INSTALL_BUNDLEDIR="Applications/KF5"
    -DDATA_INSTALL_DIR="Library/Application Support"@

    and then on OSX some application-specific files would be searched by Qt below

    @/Application/
    /Library/Application\ Support/@

    BUT - I would like to tell my Qt5 during its installation that it should use another prefix like

    @/opt/kdeci/inst/Application/
    /opt/kdeci/inst/Library/Application\ Support/@

    How could something like that be achieved?

    Is there any way to configure Qt5 to allow for that during build time

    OR

    would the Qt5 sources themselves need some patching for QStandardPaths as suggested by "this review for Windows":https://git.reviewboard.kde.org/r/115210/?

    Greets,
    Marko

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexwolf
      wrote on last edited by
      #2

      You can use QApplication::addLibraryPath() or QApplication::setLibraryPaths() for set custom paths.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mkae
        wrote on last edited by
        #3

        thanks alex for that hint. I wonder whether there are similar functions for the the other relevant folders...

        Good to know that those two exist. Will check on that.

        THANKS big time!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved