尝试使用cmake编译Musescore(截至2018年7月19日的Master分支),但cmake似乎找不到QT模块
使用在线安装程序安装了QT5
qmake -v
QMake version 3.1
Using Qt version 5.11.1 in /Users/me/Qt/5.11.1/clang_64/lib
根据其他答案的建议将其添加到Makefile中,但仍然不起作用
-DCMAKE_PREFIX_PATH="/Users/me/Qt/5.11.1/clang_64/lib/cmake"
-DCMAKE_PREFIX_PATH="/Users/me/Qt/5.11.1/clang_64/lib" \
-DCMAKE_PREFIX_PATH="/Users/me/Qt/5.11.1/clang_64" \
这是我做make -f Makefile.osx release
的错误
CMake Error at CMakeLists.txt:63 (include):
include could not find load file:
FindQt5
CMake Error at CMakeLists.txt:64 (include):
include could not find load file:
UsePkgConfig1
CMake Error at CMakeLists.txt:65 (include):
include could not find load file:
FindPulseAudio
CMake Error at CMakeLists.txt:66 (include):
include could not find load file:
GetCompilerVersion
CMake Error at CMakeLists.txt:67 (include):
include could not find load file:
CreatePrecompiledHeader
MuseScore SoundFont is up to date.
-- ALSA support disabled
-- PulseAudio support disabled
CMake Error at CMakeLists.txt:333 (include):
include could not find load file:
FindLame
CMake Error at CMakeLists.txt:379 (PKGCONFIG1):
Unknown CMake command "PKGCONFIG1".
-- Configuring incomplete, errors occurred!
See also "/Users/me/MuseScore/build.release/CMakeFiles/CMakeOutput.log".
xcodebuild: error: 'mscore.xcodeproj' does not exist.
xcodebuild: error: 'mscore.xcodeproj' does not exist.
make: *** [release] Error 66
我也尝试做brew qt方法,但是那也不起作用,得到了相同的错误(找不到模块)