Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Project ERROR: Cannot run compiler '/Applications/Xcode 8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'. Maybe you forgot to setup the environment?
Forum Updated to NodeBB v4.3 + New Features

Project ERROR: Cannot run compiler '/Applications/Xcode 8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'. Maybe you forgot to setup the environment?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
23 Posts 7 Posters 13.4k Views 2 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.
  • Y Offline
    Y Offline
    Yogikipl
    wrote on last edited by
    #11

    Hi,

    change:-
    darwin: cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH

    to

    darwin: cxx_flags += -isysroot $$sdk_path_device.value

    restart QT Creator, Same error

    mrjjM 1 Reply Last reply
    0
    • Y Yogikipl

      Hi,

      change:-
      darwin: cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH

      to

      darwin: cxx_flags += -isysroot $$sdk_path_device.value

      restart QT Creator, Same error

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #12

      @Yogikipl
      Hi, its not option just to use Qt 5.9.2 ?
      BUG report says it fixed in that version.

      1 Reply Last reply
      0
      • hskoglundH Online
        hskoglundH Online
        hskoglund
        wrote on last edited by
        #13

        @mrjj Release version of 5.9.2 is difficult to download right now, not available in MaintenanceTool yet.

        @Yogikipl: I tested and could reproduce your bug, when trying to compile the example Qt Quick Controls 2 - Gallery on my Mac. First my fix above wasn't complete, you need the full change (same that's coming in 5.9.2), so change the line (same as before)
        darwin: cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
        to these 5 lines:

        darwin {
            uikit:macx-xcode: \
        	    cxx_flags += -isysroot $$sdk_path_device.value
            else: \
        	    cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
        }
        

        Also it not sufficient just to restart Qt Creator. First, delete your .pro.user file, so you get to reselect the compiler(s) again. Then there's a problem with the caching of files, so try open and close the project a couple of times, to get the "green arrow" lit in Qt Creator and be able to compile.

        mrjjM Y 2 Replies Last reply
        1
        • hskoglundH hskoglund

          @mrjj Release version of 5.9.2 is difficult to download right now, not available in MaintenanceTool yet.

          @Yogikipl: I tested and could reproduce your bug, when trying to compile the example Qt Quick Controls 2 - Gallery on my Mac. First my fix above wasn't complete, you need the full change (same that's coming in 5.9.2), so change the line (same as before)
          darwin: cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
          to these 5 lines:

          darwin {
              uikit:macx-xcode: \
          	    cxx_flags += -isysroot $$sdk_path_device.value
              else: \
          	    cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
          }
          

          Also it not sufficient just to restart Qt Creator. First, delete your .pro.user file, so you get to reselect the compiler(s) again. Then there's a problem with the caching of files, so try open and close the project a couple of times, to get the "green arrow" lit in Qt Creator and be able to compile.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #14

          @hskoglund
          Ok, so its a build yourself version still :)

          hskoglundH 1 Reply Last reply
          0
          • mrjjM mrjj

            @hskoglund
            Ok, so its a build yourself version still :)

            hskoglundH Online
            hskoglundH Online
            hskoglund
            wrote on last edited by
            #15

            @mrjj yeah, the wiki says "August 2017" for 5.9.2 so there's plenty of time left :-)

            mrjjM 1 Reply Last reply
            0
            • hskoglundH hskoglund

              @mrjj yeah, the wiki says "August 2017" for 5.9.2 so there's plenty of time left :-)

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #16

              @hskoglund
              hehe and thats the "Original plan" so might go a bit over :)

              1 Reply Last reply
              0
              • hskoglundH hskoglund

                @mrjj Release version of 5.9.2 is difficult to download right now, not available in MaintenanceTool yet.

                @Yogikipl: I tested and could reproduce your bug, when trying to compile the example Qt Quick Controls 2 - Gallery on my Mac. First my fix above wasn't complete, you need the full change (same that's coming in 5.9.2), so change the line (same as before)
                darwin: cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
                to these 5 lines:

                darwin {
                    uikit:macx-xcode: \
                	    cxx_flags += -isysroot $$sdk_path_device.value
                    else: \
                	    cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
                }
                

                Also it not sufficient just to restart Qt Creator. First, delete your .pro.user file, so you get to reselect the compiler(s) again. Then there's a problem with the caching of files, so try open and close the project a couple of times, to get the "green arrow" lit in Qt Creator and be able to compile.

                Y Offline
                Y Offline
                Yogikipl
                wrote on last edited by
                #17

                @hskoglund Hi, we try to replace with
                darwin {
                uikit:macx-xcode:
                cxx_flags += -isysroot $$sdk_path_device.value
                else:
                cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
                }

                & create a new project, & also restart several time, but still there is same error.

                hskoglundH 1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #18

                  What happens if you run /Applications/Xcode 8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ in a terminal window ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  Y 1 Reply Last reply
                  0
                  • Y Yogikipl

                    @hskoglund Hi, we try to replace with
                    darwin {
                    uikit:macx-xcode:
                    cxx_flags += -isysroot $$sdk_path_device.value
                    else:
                    cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
                    }

                    & create a new project, & also restart several time, but still there is same error.

                    hskoglundH Online
                    hskoglundH Online
                    hskoglund
                    wrote on last edited by hskoglund
                    #19

                    @Yogikipl Did you forget the 2 backslashes? That might explain why you still get the error.

                    Y 1 Reply Last reply
                    0
                    • hskoglundH hskoglund

                      @Yogikipl Did you forget the 2 backslashes? That might explain why you still get the error.

                      Y Offline
                      Y Offline
                      Yogikipl
                      wrote on last edited by
                      #20

                      @hskoglund no, back slash are there, as you provide

                      1 Reply Last reply
                      0
                      • SGaistS SGaist

                        What happens if you run /Applications/Xcode 8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ in a terminal window ?

                        Y Offline
                        Y Offline
                        Yogikipl
                        wrote on last edited by
                        #21

                        @SGaist
                        when we run
                        /Applications/Xcode 8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
                        output :-
                        clang: error: no input files

                        G 1 Reply Last reply
                        0
                        • Y Yogikipl

                          @SGaist
                          when we run
                          /Applications/Xcode 8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
                          output :-
                          clang: error: no input files

                          G Offline
                          G Offline
                          Gwenael
                          wrote on last edited by
                          #22

                          I has the same error with version 5.9.0 and 5.9.1 installed on Sierra.
                          I just installed 5.9.2 Snapshot using the Online installer (also work with the MaintenanceTool.app and the problem is now solved !

                          1 Reply Last reply
                          1
                          • M Offline
                            M Offline
                            Mohammad Sherafat
                            wrote on last edited by
                            #23

                            I Resolved the problem with Xcode 14.2 only by removing space from XCode path.

                            "Xcode 14.2" renamed to "Xcode-14.2".

                            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