help installing QT to compile MuseScore

• Nov 3, 2019 - 12:03

I wanted to try to compile musescore again after not doing so for a few years.
I'm following the instructions I found here to install on the the Mac
https://musescore.org/en/handbook/developers-handbook/compilation/compi…

One step is to install Qt, so I'm doing so and the installation asks me the following:
Screenshot 2019-11-03 at 13.01.04.png
What should I do here?

Attachment Size
Screenshot 2019-11-03 at 13.01.04.png 71.04 KB

Comments

In reply to by jim.newton.562

Now when I try to compile musescore, I get the following error: does that mean I didn't install Qt correctly?

-- JACK (Jack Audio Connection Kit) >= 0.98.0 found. jack support enabled.
PortAudio found. PortAudio support enabled. INCDIR /usr/local/Cellar/portaudio/19.20140130/include, LIBDIR /usr/local/Cellar/portaudio/19.20140130/lib, 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:35 (QT5_ADD_RESOURCES):
Unknown CMake command "QT5_ADD_RESOURCES".

-- Configuring incomplete, errors occurred!
xcodebuild: error: 'mscore.xcodeproj' does not exist.
xcodebuild: error: 'mscore.xcodeproj' does not exist.
make: *** [release] Error 66

In reply to by Jojo-Schmitz

Great. Thanks. That helped.

I tried the following installation options:

Screenshot 2019-11-03 at 17.40.57.png

Now I get the following error
error: Build input file cannot be found: '/Users/jimka/Repos/MuseScore/build.release/thirdparty/singleapp/src/qtsingleapp_automoc.cpp' (in target 'qtsingleapp' from project 'mscore')

** BUILD FAILED **

The following build commands failed:
CompileC /Users/jimka/Repos/MuseScore/build.release/thirdparty/singleapp/src/mscore.build/Release/qtsingleapp.build/Objects-normal/x86_64/qtsingleapp_automoc.o /Users/jimka/Repos/MuseScore/build.release/thirdparty/singleapp/src/qtsingleapp_automoc.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [release] Error 65

Attachment Size
Screenshot 2019-11-03 at 17.40.57.png 86.01 KB

In reply to by shoogle

OK, I removed and re-installed Qt, this time including the Qt WebEngine. When I recompile, it still get errors, I'm attaching the log file. This error doesn't look Qt related to me.

** BUILD FAILED **

The following build commands failed:
CompileC /Users/jimka/Repos/MuseScore/build.release/thirdparty/freetype/mscore.build/Release/mscore_freetype.build/Objects-normal/x86_64/mscore_freetype_automoc.o /Users/jimka/Repos/MuseScore/build.release/thirdparty/freetype/mscore_freetype_automoc.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [release] Error 65

Attachment Size
make.release.log_.txt 97.35 KB

In reply to by BSG

Thanks for the suggestion, but yes $PATH contains /Users/jimka/sw/Qt/5.9.8/clang_64/bin and Qt is installed in /Users/jimka/sw/Qt. I've verified that that directory does actually exist:

[jims-mbp:~/Repos/MuseScore] jimka% ls -l /Users/jimka/sw/Qt/5.9.8/clang_64/bin
total 41064
drwxr-xr-x 3 jimka staff 96 Nov 3 21:57 Assistant.app
drwxr-xr-x 3 jimka staff 96 Nov 3 21:57 Designer.app
drwxr-xr-x 3 jimka staff 96 Nov 3 21:57 Linguist.app
-rwxr-xr-x 1 jimka staff 46324 Apr 9 2019 canbusutil
-rwxr-xr-x 1 jimka staff 6344 Apr 7 2019 fixqt4headers.pl
-rwxr-xr-x 1 jimka staff 246388 Apr 9 2019 lconvert
-rwxr-xr-x 1 jimka staff 71308 Apr 10 2019 licheck_mac
-rwxr-xr-x 1 jimka staff 464784 Apr 9 2019 lrelease
-rwxr-xr-x 1 jimka staff 857684 Apr 9 2019 lupdate
-rwxr-xr-x 1 jimka staff 76292 Apr 9 2019 macchangeqt
-rwxr-xr-x 1 jimka staff 211012 Apr 9 2019 macdeployqt
-rwxr-xr-x 1 jimka staff 813472 Apr 7 2019 moc
drwxr-xr-x 3 jimka staff 96 Nov 3 21:57 pixeltool.app
-rwxr-xr-x 1 jimka staff 69968 Apr 9 2019 qcollectiongenerator
-rwxr-xr-x 1 jimka staff 71480 Apr 9 2019 qdbus
-rwxr-xr-x 1 jimka staff 202012 Apr 7 2019 qdbuscpp2xml
drwxr-xr-x 3 jimka staff 96 Nov 3 21:57 qdbusviewer.app
-rwxr-xr-x 1 jimka staff 77660 Apr 7 2019 qdbusxml2cpp
-rwxr-xr-x 1 jimka staff 1380304 Apr 9 2019 qdoc
-rwxr-xr-x 1 jimka staff 5866768 Apr 9 2019 qgltf
-rwxr-xr-x 1 jimka staff 176128 Apr 9 2019 qhelpconverter
-rwxr-xr-x 1 jimka staff 36660 Apr 9 2019 qhelpgenerator
-rwxr-xr-x 1 jimka staff 116800 Apr 7 2019 qlalr
-rwxr-xr-x 1 jimka staff 6149204 Nov 3 21:58 qmake
drwxr-xr-x 3 jimka staff 96 Nov 3 21:57 qml.app
-rwxr-xr-x 1 jimka staff 917760 Apr 9 2019 qmlcachegen
-rwxr-xr-x 1 jimka staff 110048 Apr 9 2019 qmleasing
-rwxr-xr-x 1 jimka staff 220428 Apr 9 2019 qmlimportscanner
-rwxr-xr-x 1 jimka staff 160092 Apr 9 2019 qmllint
-rwxr-xr-x 1 jimka staff 103492 Apr 9 2019 qmlmin
-rwxr-xr-x 1 jimka staff 150332 Apr 9 2019 qmlplugindump
-rwxr-xr-x 1 jimka staff 159840 Apr 9 2019 qmlprofiler
-rwxr-xr-x 1 jimka staff 65372 Apr 9 2019 qmlscene
-rwxr-xr-x 1 jimka staff 24872 Apr 9 2019 qmltestrunner
-rwxr-xr-x 1 jimka staff 335252 Apr 9 2019 qscxmlc
-rw-rw-rw- 1 jimka staff 85 Nov 3 21:58 qt.conf
-rwxr-xr-x 1 jimka staff 62672 Apr 9 2019 qtattributionsscanner
-rwxr-xr-x 1 jimka staff 70184 Apr 9 2019 qtdiag
-rwxr-xr-x 1 jimka staff 34348 Apr 9 2019 qtpaths
-rwxr-xr-x 1 jimka staff 32516 Apr 9 2019 qtplugininfo
-rwxr-xr-x 1 jimka staff 290216 Apr 9 2019 qwebengine_convert_dict
-rwxr-xr-x 1 jimka staff 720728 Apr 7 2019 rcc
-rwxr-xr-x 1 jimka staff 49240 Apr 7 2019 syncqt.pl
-rwxr-xr-x 1 jimka staff 407676 Apr 7 2019 uic
-rwxr-xr-x 1 jimka staff 69616 Apr 9 2019 xmlpatterns
-rwxr-xr-x 1 jimka staff 19008 Apr 9 2019 xmlpatternsvalidator
[jims-mbp:~/Repos/MuseScore] jimka%

In reply to by Jojo-Schmitz

Hi Jojo, are you sure I need to use Qt 5.9 ? I ask because the compilations instructions page https://musescore.org/en/handbook/developers-handbook/compilation/compi… seems to indicate (but is ambiguous) that 5.12 should be used. The text states:

Qt 5.12 is shipped via an online installer. Download the open source version of Qt (not the commercial version), open the DMG and run the online installer. By default it will install Qt 5.12 in your home directory.

This says that 5.12 is the default, but it does not indicate whether to accept the default or not.

In reply to by jim.newton.562

I am sure that the official macOS builds use Qt 5.9. I'm also pretty sure that you can use Qt 5.12 too (as the Windows builds use that), but that'd mean the resulting package won't run on macOS 10.1. and 10.11.
And this stuff in the developers' handbook is not always up-to-date...
We want back and forth (and back again) on this

In reply to by Jojo-Schmitz

Currently we have one mac build and its required (business requirement) run on MacOS 10.10 and 10.11; it is a bad idea, therefore, to use Qt 5.12, as any benefit you gain by doing so, including both new features and freedom from bugs fixed between the two releases, would not be available in the released product. Thus, it is best to build and test against 5.9 on a Mac.

In reply to by jim.newton.562

Sigh, building with the newest Qt doesn't help either.

error: Build input file cannot be found: '/Users/jimka/Repos/MuseScore/build.release/awl/awl_automoc.cpp' (in target 'awl' from project 'mscore')

** BUILD FAILED **

The following build commands failed:
CompileC /Users/jimka/Repos/MuseScore/build.release/awl/mscore.build/Release/awl.build/Objects-normal/x86_64/awl_automoc.o /Users/jimka/Repos/MuseScore/build.release/awl/awl_automoc.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [release] Error 65

Attachment Size
make-release.txt 150.7 KB

In reply to by jim.newton.562

It is strange because the error says file not found '/Users/jimka/Repos/MuseScore/build.release/awl/awl_automoc.cpp', yet I see the file there.

bash-3.2$ file '/Users/jimka/Repos/MuseScore/build.release/awl/awl_automoc.cpp'
/Users/jimka/Repos/MuseScore/build.release/awl/awl_automoc.cpp: c program text, ASCII text
bash-3.2$

Have you tried a clean build? Inside the MuseScore folder, run:

make clean

This will delete the build.release folder and CMake configuration. Next time you compile it will start again from scratch rather than using cached files. This shouldn't be necessary for most builds, but it might be necessary if you installed new dependencies or made changes to your Qt setup.

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