Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. Build Qt Source (mac): 'make' immediately hits an error ?
QtWS25 Last Chance

Build Qt Source (mac): 'make' immediately hits an error ?

Scheduled Pinned Locked Moved Solved Qt Contribution
7 Posts 3 Posters 1.2k 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.
  • D Offline
    D Offline
    davecotter
    wrote on last edited by davecotter
    #1

    got all the way through instructions to the point where i execute make. but immediately got this error:

    luna:clang_64 davec$ make
    Scanning dependencies of target Bootstrap
    [  0%] Building CXX object qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/global/qendian.cpp.o
    In file included from /Volumes/Developer/depot/Qt5_Source/Src/qtbase/src/corelib/global/qendian.cpp:41:
    In file included from /Volumes/Developer/depot/Qt5_Source/Src/qtbase/src/corelib/global/qendian.h:44:
    In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/qfloat16.h:1:
    In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/../../../../Src/qtbase/src/corelib/global/qfloat16.h:44:
    In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/qglobal.h:1:
    In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/../../../../Src/qtbase/src/corelib/global/qglobal.h:1417:
    In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/qtypeinfo.h:1:
    /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/../../../../Src/qtbase/src/corelib/global/qtypeinfo.h:43:10: fatal error: 'variant' file not
          found
    #include <variant>
             ^~~~~~~~~
    1 error generated.
    make[2]: *** [qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/global/qendian.cpp.o] Error 1
    make[1]: *** [qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/all] Error 2
    make: *** [all] Error 2
    luna:clang_64 davec$ 
    
    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #6

      @davecotter said in Build Qt Source (mac): 'make' immediately hits an error ?:

      Apple LLVM version 9.1.0 (clang-902.0.39.2)

      This version doesn't seem to support std::variant. See https://stackoverflow.com/questions/15417619/how-do-you-update-xcode-on-osx-to-the-latest-version to update XCode

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • D Offline
        D Offline
        davecotter
        wrote on last edited by
        #2

        anyone have a hint?

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #3

          What's your clang version?

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          0
          • D Offline
            D Offline
            davecotter
            wrote on last edited by davecotter
            #4
            Apple LLVM version 9.1.0 (clang-902.0.39.2)
            Target: x86_64-apple-darwin18.7.0
            Thread model: posix
            InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
            

            i realize that's outside the "supported versions", however i doubt that is the issue?

            i have searched the entire "Src" directory, there is no "version" file, there is only several "version.h" and "version.hpp"

            another possibly relevant factor is that i moved the "Src" directory AFTER i issued the init-repository call, could that screw things up?

            -dave

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

              Hi,

              Let's take a step back.

              Which version of Qt are you trying to build ?
              Which version of Xcode did you install ?
              Which configure parameters did you use ?

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

              1 Reply Last reply
              0
              • VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by
                #6

                @davecotter said in Build Qt Source (mac): 'make' immediately hits an error ?:

                Apple LLVM version 9.1.0 (clang-902.0.39.2)

                This version doesn't seem to support std::variant. See https://stackoverflow.com/questions/15417619/how-do-you-update-xcode-on-osx-to-the-latest-version to update XCode

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                1 Reply Last reply
                2
                • D Offline
                  D Offline
                  davecotter
                  wrote on last edited by
                  #7

                  yes, i upgraded to xcode 10 and it started working

                  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