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. Qt Creator doesn't recognize PATH-variable on Mac OSX
QtWS25 Last Chance

Qt Creator doesn't recognize PATH-variable on Mac OSX

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 7.9k 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
    Hedge
    wrote on last edited by
    #1

    After building Qt on my 32 Bit Mac for the last four hours, I did "sudo qmake install".
    I also changed the the PATH-variable in .profile according to this tutorial http://doc.qt.nokia.com/4.7-snapshot/install-mac.html

    When I do "echo PATH" in a bash it returns:

    @/usr/local/Trolltech/Qt-4.7.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
    @

    Qt Creator still doesn't recognize it in Settings -> Qt4.

    I'm also too dumb to add the SDK in the list on my own (can't jump to that folder in the Finder and can't input it directly).

    Please help me out!

    1 Reply Last reply
    1
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      If your PATH is modified in .bashrc or the like, then this change is not visible to Qt Creator if you start it from the Finder!

      It is visible, if you start it on a bash terminal with

      @
      open /Applications/Qt\ Creator.app
      @

      You can modify the environment in Qt Creator on the project pane at build and/or run settings. Or you can add the PATH to your global environment by adding an entry to a ~/.MacOSX/environment.plist file. See Apple's docs on "Environment Variables":http://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hedge
        wrote on last edited by
        #3

        Thanks, it works now.

        Sadly I encountered another problem.
        I can compile and run the examples shipping with the SDK, but when I open my own project (which comes from Windows) a window pops up saying

        bq. No valid Qt-versions could be found.
        Please add a valid version at extras/settings or by using the sdk-installation-utility.
        (I freely translated this text).

        For some reasons I can't change any setting at all (all of them are greyed out). All I can do is close the project.

        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