Sudo make install fails on my mac
-
Tried the release version from github, failed to install with an error so I figured it was a minor bug and so I cleaned everything and switched to 5.4. It built fine but when I tried to do make install, I got the following warning and error
@
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'
DXFImporter::DXFImporter() : 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 code.
-
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
-
Hi,
You should rather use the gitorious version which is the official repository.
However, what configuration options did you use ?
-
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.
-
I assume I should pull down git@gitorious.org:qt/qt5.git
I'll try again
-
github is a failsafe mirror, so it still official.
Indeed, you should build Qt in 64 bit
-
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.
-
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.
-
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.
-
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 -
Hi,
You forgot to set a prefix to point to a user writable location like andreyc suggested.
-
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.@ -
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.@ -
[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.
-
[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.