Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Compiling Qt5.7 on OS X 10.9
bludger last edited by
Currently I'm trying to compile Qt 5.7 on OS X 10.9 but I can't get make to work. In order to compile Qt I'm using shadow builds as I also want to build Qt for iOS later on. After configuring and compiling qmake it won't proceeded as there is 'nothing to be done' according to make (clang).
So, what I've done:
- Made three directories: source, build, install dir (named: clang_64)
- Run Qt Configure with the following parameters: $SOURCE_DIR/configure -v -prefix $BUILD_DIR -opensource -confirm-license -nomake examples -nomake tests -qt-sql-sqlite -plugin-sql-mysql -platform macx-clang
- Trying to run make
While running make inside the build directory it doesn't do anything besides saying there is nothing to do, even when there is a global makefile which should call qmake and produce makefiles for Qt modules.
Qt is now configured for building. Just run 'make'. Once everything is built, you must run 'make install'. Qt will be installed into /dev/Qt/5.7.0-src/build Prior to reconfiguration, make sure you remove any leftovers from the previous build. /dev/Qt/5.7.0-src/build/qtbase/bin/qmake -qtconf /dev/Qt/5.7.0-src/build/qtbase/bin/qt.conf -o Makefile ../src/qt.pro make: Nothing to be done for `first'.
The build directory is created and I'm able to execute qmake:
./qmake -v QMake version 3.0 Using Qt version 5.7.0 in /dev/Qt/5.7.0-src/build/lib
Some additional information:
I've grabbed the source file from the Qt Download page: http://download.qt.io/official_releases/qt/5.7/5.7.0/single/qt-everywhere-opensource-src-5.7.0.tar.gz
I'm using XCode version 6.2 and Clang version 6.0. I've checked the supported platforms and it says the versions are supported so I'm not sure what is wrong.
This problem persist when not using a shadow build.
Can someone help me with this?
bludger last edited by
After doing the exact same thing on a Windows machine I was able to compare all Makefiles. I noticed that the main Makefile on OSX was lacking all Qt' modules (SUBTARGETS was empty). So I started to find out why this happend. After a while I noticed that the .gitmodules file was in a different location comparing to the Windows setup. After moving it into the src/ dir the make command finally started to work.
I'm not sure why it moved but maybe it is a bug in Keka so it doesn't handle dot prefixed files correctly.