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. Where does Qt-Creator get the "System Environment" from?
QtWS25 Last Chance

Where does Qt-Creator get the "System Environment" from?

Scheduled Pinned Locked Moved Installation and Deployment
pathpkg-config
1 Posts 1 Posters 1.3k Views
  • 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.
  • H Offline
    H Offline
    hackdev
    wrote on 12 May 2015, 08:56 last edited by hackdev
    #1

    Hi there,

    I would like to add the the pkg-config installation directory to the PATH, and I want to set the PKG_CONFIG_PATH variable. However, I don't want to do it on a project basis. I want to do it only once for all projects.

    I understand that Qt-Creator doesn't use the bash environment, and nor does it uses anything set in .profile, /etc/paths, or /etc/paths.d.

    There used to be a solution for this. That is, to use the ~/.MacOSX/environment.plist as stated here https://forum.qt.io/topic/5716/qt-creator-doesn-t-recognize-path-variable-on-mac-osx/2, but this doesn't seem to work on osx yosemite.

    Some people claim that putting it in a startup file like ~/Library/LaunchAgents/my.startup.plist works, as stated here http://apple.stackexchange.com/questions/106355/setting-the-system-wide-path-environment-variable-in-mavericks, but I couldn't get it to work.

    Hence my question: where does Qt-Creator get the "System Environment" from? Because I would like to modify that source directly. Furthermore, is it possible to do this from the .pro file? That is, is it possible to do something like PATH += ${PATH}:x/y/z in a .pro file, and alter the Build environment? That would be even more convenient.

    Thank you.

    1 Reply Last reply
    1

    1/1

    12 May 2015, 08:56

    • Login

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