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. Sudo make install fails on my mac
Forum Updated to NodeBB v4.3 + New Features

Sudo make install fails on my mac

Scheduled Pinned Locked Moved Installation and Deployment
18 Posts 5 Posters 7.1k Views 1 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.
  • A Offline
    A Offline
    andreyc
    wrote on last edited by
    #2

    [quote author="dhjdhj" date="1409455993"]Tried the release version from github[/quote]
    Could you specify "release version" of what have you tried from github.
    Is it some app that requires Qt or is it Qt itself?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dhjdhj
      wrote on last edited by
      #3

      qt5 from github (https://github.com/qtproject/qt5.git)

      First time I tried it, I checked out "release" and got some compile errors (forget what) and so I figured I'd try a newer branch so I checked out 5.4

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

        Hi,

        You should rather use the gitorious version which is the official repository.

        However, what configuration options 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
        • D Offline
          D Offline
          dhjdhj
          wrote on last edited by
          #5

          I was just following the instructions I found at http://qt-project.org/doc/qt-5/macosx.html although I did note that

          ./configure -platform macx-clang-32

          did not work and I had to remove the "-32"

          I didn't realize I wasn't using the official repository. Are they really different? Certainly happy to switch over if that will fix the problem.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dhjdhj
            wrote on last edited by
            #6

            I assume I should pull down git@gitorious.org:qt/qt5.git

            I'll try again

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

              github is a failsafe mirror, so it still official.

              Indeed, you should build Qt in 64 bit

              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
              • D Offline
                D Offline
                dhjdhj
                wrote on last edited by
                #8

                Yeah, the thing is, when I saw that -32, the first thing I tried to do was replace the -32 with -64 and I basically just got back

                The specified system/compiler is not supported:

                  /Volumes/External1/src/qt5/qtbase/mkspecs/macx-clang-64
                

                Please see the README file for a complete list.

                Needless to say, the README didn't have a complete list.

                However, I still want to point out that I had no problem BUILDING the system. It's only the 'make install' that failed.

                Anyway, I'm running the configure again now with just 'clang' and I'll try to build and install again.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dhjdhj
                  wrote on last edited by
                  #9

                  So, pretty much same issue --- make worked fine but sudo make install produced errors after copying numerous files

                  @
                  In file included from ../../3rdparty/assimp/code/DXFLoader.cpp:46:
                  In file included from ../../3rdparty/assimp/code/AssimpPCH.h:144:
                  ../../3rdparty/assimp/code/StringComparison.h:157:5: warning: 'register' storage
                  class specifier is deprecated [-Wdeprecated-register]
                  register int i = (int)b.length()-(int)a.length();
                  ^~~~~~~~~
                  ../../3rdparty/assimp/code/DXFLoader.cpp:87:71: error: cannot initialize a
                  member subobject of type 'Assimp::DXFImporter::LayerInfo *' with an rvalue
                  of type 'bool'
                  ...: buffer(0), groupCode(0), bRepeat(false), mDefaultLayer(false)
                  ^ ~~~~~
                  1 warning and 1 error generated.
                  make[4]: *** [.obj/debug/DXFLoader.o] Error 1
                  make[3]: *** [debug-install] Error 2
                  make[2]: *** [sub-threed-install_subtargets-ordered] Error 2
                  make[1]: *** [sub-src-install_subtargets] Error 2
                  make: *** [module-qt3d-install_subtargets] Error 2
                  @

                  [andreyc EDIT] Added @ around error messages.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andreyc
                    wrote on last edited by
                    #10

                    I would suggest to use prefix that is accessible for your regular user to avoid calling sudo
                    @
                    ./configure -prefix $HOME/Qt
                    make
                    make install
                    @

                    1 Reply Last reply
                    0
                    • JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #11

                      Hi,

                      I don't know the exact cause of this problem, but the problem lies somewhere with the 3rd-party Assimp software.

                      Assimp is only used in Qt 3D. The tricky part is, Qt 3D is not released yet; I don't know if that repository can be built and installed successfully on OS X or not. The problem should go away if you delete the qt3d subfolder before you configure, build and install Qt 5.

                      The easiest way get a copy of source code that only contains officially-released modules is by going to http://qt-project.org/downloads , click "Show Downloads" and scroll down to get the code (for your convenience, the latest version is http://download.qt-project.org/official_releases/qt/5.3/5.3.1/single/qt-everywhere-opensource-src-5.3.1.tar.gz )

                      However, if you really want to use git, follow the instructions at http://qt-project.org/wiki/Building_Qt_5_from_Git . Instead of checking out all the submodules yourself, check out the top level repo (qt5.git) only. Then, run the init-repository Perl script, which will checkout the correct submodules for you.

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dhjdhj
                        wrote on last edited by
                        #12

                        @andreyc --- good idea --- sudo make install is just a habit. I'll do that next time as I try again

                        @JKSH --- thanks, I will try deleting that folder and see what happens.

                        I do appreciate all the helpful suggestions.

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dhjdhj
                          wrote on last edited by
                          #13

                          If I do 'make install' without sudo I get immediate (and unsurprising) errors

                          @
                          Makefile install
                          cp -f "../../../lib/libQt5Bootstrap.a" "/usr/local/Qt-5.4.0/lib/libQt5Bootstrap.a"
                          cp: /usr/local/Qt-5.4.0/lib/libQt5Bootstrap.a: Permission denied
                          make[3]: [install_target] Error 1 (ignored)
                          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib -s "/usr/local/Qt-5.4.0/lib/libQt5Bootstrap.a"
                          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /usr/local/Qt-5.4.0/lib/libQt5Bootstrap.a(qvector.o) has no symbols
                          error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /usr/local/Qt-5.4.0/lib/libQt5Bootstrap.a is not writable (Permission denied)
                          make[3]: *** [install_target] Error 1
                          make[2]: *** [sub-bootstrap-install_subtargets] Error 2
                          make[1]: *** [sub-src-install_subtargets] Error 2
                          make: *** [module-qtbase-install_subtargets] Error 2
                          dhjmacpro:/Volumes/External1/src/qt5 $
                          @
                          [andreyc EDIT] Added @ around messages

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

                            Hi,

                            You forgot to set a prefix to point to a user writable location like andreyc suggested.

                            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
                            • D Offline
                              D Offline
                              drfrogsplat
                              wrote on last edited by
                              #15

                              I'm getting the same error when building qt3d (from git://gitorious.org/qt/qt3d.git master branch) against Qt5.4 just downloaded from Qt website:

                              @In file included from /Users/name/Development/Qt/source/qt3d/3rdparty/assimp/code/DXFLoader.cpp:46:
                              In file included from /Users/name/Development/Qt/source/qt3d/3rdparty/assimp/code/AssimpPCH.h:144:
                              /Users/name/Development/Qt/source/qt3d/3rdparty/assimp/code/StringComparison.h:157:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                              register int i = (int)b.length()-(int)a.length();
                              ^~~~~~~~~
                              /Users/name/Development/Qt/source/qt3d/3rdparty/assimp/code/DXFLoader.cpp:87:71: error: cannot initialize a member subobject of type 'Assimp::DXFImporter::LayerInfo *' with an rvalue of type 'bool'
                              DXFImporter::DXFImporter() : buffer(0), groupCode(0), bRepeat(false), mDefaultLayer(false)
                              ^ ~~~~~
                              1 warning and 1 error generated.@

                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                drfrogsplat
                                wrote on last edited by
                                #16

                                I'm getting the same error when building qt3d (from git://gitorious.org/qt/qt3d.git master branch) against Qt5.4 just downloaded from Qt website:

                                @In file included from /Users/name/Development/Qt/source/qt3d/3rdparty/assimp/code/DXFLoader.cpp:46:
                                In file included from /Users/name/Development/Qt/source/qt3d/3rdparty/assimp/code/AssimpPCH.h:144:
                                /Users/name/Development/Qt/source/qt3d/3rdparty/assimp/code/StringComparison.h:157:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
                                register int i = (int)b.length()-(int)a.length();
                                ^~~~~~~~~
                                /Users/name/Development/Qt/source/qt3d/3rdparty/assimp/code/DXFLoader.cpp:87:71: error: cannot initialize a member subobject of type 'Assimp::DXFImporter::LayerInfo *' with an rvalue of type 'bool'
                                DXFImporter::DXFImporter() : buffer(0), groupCode(0), bRepeat(false), mDefaultLayer(false)
                                ^ ~~~~~
                                1 warning and 1 error generated.@

                                1 Reply Last reply
                                0
                                • JKSHJ Offline
                                  JKSHJ Offline
                                  JKSH
                                  Moderators
                                  wrote on last edited by
                                  #17

                                  [quote author="drfrogsplat" date="1418879218"]I'm getting the same error when building qt3d (from git://gitorious.org/qt/qt3d.git master branch) against Qt5.4 just downloaded from Qt website:[/quote]
                                  Hi,

                                  Qt 3D has not yet been released. It is currently being rewritten, so it should not be used for serious projects.

                                  However, if you really want to try it out, use the dev branch. The master branch is abandoned.

                                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                  1 Reply Last reply
                                  0
                                  • JKSHJ Offline
                                    JKSHJ Offline
                                    JKSH
                                    Moderators
                                    wrote on last edited by
                                    #18

                                    [quote author="drfrogsplat" date="1418879218"]I'm getting the same error when building qt3d (from git://gitorious.org/qt/qt3d.git master branch) against Qt5.4 just downloaded from Qt website:[/quote]
                                    Hi,

                                    Qt 3D has not yet been released. It is currently being rewritten, so it should not be used for serious projects.

                                    However, if you really want to try it out, use the dev branch. The master branch is abandoned.

                                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                    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