Failure to compile on OS X

• Dec 23, 2015 - 22:51

I'm attempting to follow the instructions at https://musescore.org/en/developers-handbook/compilation/compile-instru…. I downloaded and configured everything listed in the first section, but the actual compilation is still failing. Following make -f Makefile.osx release, I get the following output:

mkdir build.release; \
cd build.release; \
cmake -DCMAKE_INSTALL_PREFIX="../applebuild" -DCMAKE_BUILD_TYPE=RELEASE \
.. -G Xcode; \
xcodebuild -project mscore.xcodeproj -target lrelease; \
xcodebuild -project mscore.xcodeproj -configuration Release -target ALL_BUILD; \

mkdir: build.release: File exists
-- Found unsuitable Qt version "" from NOTFOUND
found Doxygen
-- Could NOT find LATEX (missing: LATEX_COMPILER)
-- latex command LATEX_COMPILER not found but usually required. You will probably get warnings and user interaction on doxy run.
-- makeindex command MAKEINDEX_COMPILER not found but usually required.
-- dvips command DVIPS_CONVERTER not found but usually required.
-- configured /Users/isaacweiss/MuseScore/build/Doxyfile.in --> /Users/isaacweiss/MuseScore/build.release/Doxyfile
-- Checking for module 'libpulse'
-- Package 'libpulse' not found
Disabling ALSA support due to OS X or MINGW build.
-- Found lame: /usr/local/Cellar/lame/3.99.5/lib/libmp3lame.dylib
-- jack (jack audio connection kit) >= 0.98.0 found
portaudio detected /usr/local/Cellar/portaudio/19.20140130/include /usr/local/Cellar/portaudio/19.20140130/lib -L/usr/local/Cellar/portaudio/19.20140130/lib -lportaudio -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
libvorbis detected /usr/local/Cellar/libvorbis/1.3.5/include /usr/local/Cellar/libvorbis/1.3.5/lib -L/usr/local/Cellar/libvorbis/1.3.5/lib -lvorbis
libogg detected /usr/local/Cellar/libogg/1.3.2/include /usr/local/Cellar/libogg/1.3.2/lib -L/usr/local/Cellar/libogg/1.3.2/lib -logg
libsndfile detected /usr/local/Cellar/libsndfile/1.0.26/include /usr/local/Cellar/libsndfile/1.0.26/lib -L/usr/local/Cellar/libsndfile/1.0.26/lib -lsndfile
CMake Error at mtest/CMakeLists.txt:27 (QT5_ADD_RESOURCES):
Unknown CMake command "QT5_ADD_RESOURCES".

-- Configuring incomplete, errors occurred!
See also "/Users/isaacweiss/MuseScore/build.release/CMakeFiles/CMakeOutput.log".
xcodebuild: error: 'mscore.xcodeproj' does not exist.
Could not find service "com.apple.CoreSimulator.CoreSimulatorService" in domain for uid: 506
xcodebuild: error: 'mscore.xcodeproj' does not exist.
make: *** [release] Error 66

Can anybody figure out what this means and assist me? Thanks.


Comments

In reply to by Isaac Weiss

Maybe you don't have the right file permissions?

cd ~/Qt/5.4/clang_64/bin
chmod u+x *

This gives the user ("u") execute permission ("x") to all files ("*") in the directory. Other permissions are read ("r") and write ("w") (you shouldn't need write permission).

Or maybe you are not the "owner" of the files?

cd ~/Qt/5.4/clang_64/bin
sudo chown your_username *

Then repeat commands to set permissions.

In reply to by Isaac Weiss

Discovered something strange: dragging ~/Qt/5.4/clang_64/bin into the terminal window, its path is copied as Qt.4/5.4/clang_64/bin. Why might this be?

EDIT: Here's why it might be. The folder Qt somehow has a file extension (of .4), which is hidden. Can I safely delete that extension?

In reply to by Isaac Weiss

Should be safe. If not you can always put it back.

If needs be you can change the paths in all of the commands I wrote (and also in any files or commands you used from the Mac compilation guide) to include the ".4", but I'd try renaming the directory first to avoid the hassle.

I've done everything I can to set up the build environment for the current master, with Qt 5.6, and my best efforts have failed.

fatal error:
'QWebEngineView' file not found
#include <QWebEngineView>
^
1 error generated.

** BUILD FAILED **

The following build commands failed:
ProcessPCH++ /var/folders/vs/65z0fdgh8xzgp7001s6w9f680000gt/C/com.apple.DeveloperTools/7.3-7D175/Xcode/SharedPrecompiledHeaders/all-czsxrpwbhbaslqdspwbhefnghgix/all.h.pch build.release/all.h normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [release] Error 65

So, I find myself once again desperate for the help of anyone who knows what that means. Thanks.

Do you still have an unanswered question? Please log in first to post your question.