Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Need help with Qt 5.4 and xcode 6.2 on OS X 0.10.2 Yosemite

Need help with Qt 5.4 and xcode 6.2 on OS X 0.10.2 Yosemite

Scheduled Pinned Locked Moved Qt Creator and other tools
qt creator 3.0xcodeosx yosemiteqt 5.4
6 Posts 2 Posters 27.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.
  • K Offline
    K Offline
    kenchan
    wrote on last edited by
    #1

    Hi, I posted this to the General and Desktop forum but did not get any interest so I moved it to here. Can anyone here help me?

    I am using Qt 5.4 on OSX 10.10.2. When I build the release version I get the following error...

    /Applications/Xcode6.app/Contents/Developer/Toolchains/XCodeDefault.xctoolchain/usr/bin/clang++ No such file or directory.

    Xcode is in /Applications/Xcode.app but the debug build works fine with that, How can I fix this and have both the debug and the release build work correctly?

    I am using Qt Creator 3.3.0 to build my apps.

    Any help would be very much appreciated.
    Thank you.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sandy.martel23
      wrote on last edited by
      #2

      Make sure that 'xcode-select -p' return the right Xcode, or fix it with 'xcode-select -s'.

      I build the debug and release like this:

      export PATH=/usr/bin:/bin:/usr/sbin:/sbin
      ./configure -debug-and-release -prefix /usr/local/Qt-5.4.1 -nomake examples -sdk macosx10.9
      make
      sudo make install

      worked like a charm on multiple machines.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kenchan
        wrote on last edited by
        #3

        Thank you very much for your reply,

        xcode-select -p returns /Applications/Xcode.app/Contents/Developer which is correct.

        I am using qmake from Qt Creator to build my app the qmake call from QT Creator for the release version is...
        qmake /<my app pro file path> -r -spec macx-clang CONFIG+=x86_64

        This is the same as for the debug build (without CONFIG+=debug).

        The debug build does not throw the error mentioned in the first post. Any ideas as to what is going wrong here?

        Many thanks.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kenchan
          wrote on last edited by
          #4

          Hello again,

          I think the answer I need here is why does the wrong Xcode.app path get into my Release make file but not my Debug make file.?

          Does anyone have any ideas about this?

          Many thanks.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sandy.martel23
            wrote on last edited by
            #5

            Sorry, I was under the impression that you were trying to build Qt itself.
            So the error is while building your code. All I can say is I never seen this and have no such error with Qt Creator 3.3.2.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kenchan
              wrote on last edited by
              #6

              Thanks anyway Sandy. This is a weird one to be sure.

              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