CMake Error: QT5 target was not found
I wanted to compile MuseScore and followed this instruction: https://musescore.org/en/handbook/developers-handbook/compilation/compi…
Basically what I've done
1. Cloning MuseScore from git and go to MuseScore directory
2. Make a directory named my_build_dir
3. Go to my_build_dir
4. Run cmake .. -DCMAKE_INSTALL_PREFIX=my_install_dir
this gives these error:
CMake Error at src/main/CMakeLists.txt:205 (add_executable):
Target "mscore" links to target "Qt5::QuickControls2" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at src/main/CMakeLists.txt:205 (add_executable):
Target "mscore" links to target "Qt5::X11Extras" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at build/module.cmake:59 (add_library):
Target "appshell" links to target "Qt5::QuickControls2" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/appshell/CMakeLists.txt:135 (include)
CMake Error at build/module.cmake:59 (add_library):
Target "appshell" links to target "Qt5::X11Extras" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
src/appshell/CMakeLists.txt:135 (include)
CMake Error at thirdparty/KDDockWidgets/src/CMakeLists.txt:243 (add_library):
Target "kddockwidgets" links to target "Qt5::QuickControls2" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at thirdparty/KDDockWidgets/src/CMakeLists.txt:243 (add_library):
Target "kddockwidgets" links to target "Qt5::X11Extras" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
I have installed Qt5 before:
sudo apt-get install qtbase5-dev qttools5-dev qttools5-dev-tools qtwebengine5-dev \
qtscript5-dev libqt5xmlpatterns5-dev libqt5svg5-dev libqt5webkit5-dev
where might it go wrong?
Attachment | Size |
---|---|
log.txt | 44.93 KB |
Comments
Better start from https://github.com/musescore/MuseScore/wiki
And install Qt from their maintenance/installer tool instead of using the (possibly different versioned) repository packages.