Failure to compile on OS X
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
Your Qt installation is not correct. See step 7 here https://musescore.org/en/developers-handbook/compilation/compile-instru… To verify, type qmake -v (it should tell you the version of Qt).
In reply to Your Qt installation is not by [DELETED] 5
I did do step 7 (and verified it just now by opening the file, and then running
source ~/.profile
again). But when I runqmake -v
, I get-bash: qmake: command not found
.In reply to I did do step 7 (and verified by Isaac Weiss
Then you don't have Qt in
~/Qt/5.4/clang_64/bin
where ~ is your HOME directory (on Mac/Users/YOURUSERNAME
)In reply to Then you don't have Qt in by [DELETED] 5
(I'm familiar with the use of ~.) This is what I have installed there:
Note the path bar at the bottom—this is the right folder, isn't it?
In reply to (I'm familiar with the use of by Isaac Weiss
yes, looks good. qmake is in this directory?
If yes, can you type
echo $PATH
and verify that this directory is actually in the $PATH.In reply to yes, looks good. qmake is in by [DELETED] 5
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/isaacweiss/Qt/5.4/clang_64/bin
seems to indicate yes.In reply to /opt/local/bin:/opt/local/sbi by Isaac Weiss
If
/Users/isaacweiss/Qt/5.4/clang_64/bin
is in your PATH and it contains the qmake binary, then typingqmake -v
must give you something.In reply to (I'm familiar with the use of by Isaac Weiss
Maybe you don't have the right file permissions?
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?
Then repeat commands to set permissions.
In reply to Maybe you don't have the by shoogle
This is increasingly bizarre. The terminal keeps telling me "No such file or directory."
And qmake -v gets back "Command not found."
In reply to This is increasingly bizarre. 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 Discovered something strange: 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.
In reply to Should be safe. If not you by shoogle
Success! Compilation is running. Thank you both for your help.
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.
In reply to I've done everything I can to by Isaac Weiss
Can you make sure that if you run
qmake -v
, you really use Qt 5.6. If yes, can you make sure that you installed the QWebengine module? Open Maintenance.app in the Qt folder and check if you can install it. If you need more real time help, you can find me on IRCIn reply to Can you make sure that if you by [DELETED] 5
That was it—when I installed 5.6, I had unchecked the box for QWebEngine to save download time. I'm getting that now, and I'll report back later. Thank you very much!
In reply to That was it—when I installed by Isaac Weiss
I re-installed that component and everything is working fine. Thanks!