Problem compiling snap of Musescore 3.0 with BUILD_WEBENGINE=On
Hi! I'm one of the maintainers of the Musescore snap and I've been trying to create a 3.0 version of it, but I'm hitting a compilation problem (this is the snapcraft.yml that I'm using: https://git.launchpad.net/musescore-snap/tree/snap/snapcraft.yaml?h=cor… )
When I try to create the snap from it in Launchpad, I get an error like this one:
-- Installing: /build/musescore/parts/musescore/install/usr/share/mime/packages/musescore.xml
CMake Error at mscore/cmake_install.cmake:41 (file):
file INSTALL cannot find "//QtWebEngineProcess".
Call Stack (most recent call first):
cmake_install.cmake:63 (include)
make[1]: *** [install/strip] Error 1
make: *** [install] Error 2
Makefile:128: recipe for target 'install/strip' failed
make[1]: Leaving directory '/build/musescore/parts/musescore/build/build.release'
Makefile:138: recipe for target 'install' failed
make PREFIX=/usr UPDATE_CACHE=FALSE -j4
make PREFIX=/usr UPDATE_CACHE=FALSE install DESTDIR=/build/musescore/parts/musescore/install
Failed to run 'make PREFIX=/usr UPDATE_CACHE=FALSE install DESTDIR=/build/musescore/parts/musescore/install' for 'musescore': Exited with code 2.
(Full log here: https://launchpadlibrarian.net/403984383/buildlog_snap_ubuntu_bionic_am…)
QtWebEngineProcess should be there, as I'm including the libqt5webenginecore5 package: https://packages.ubuntu.com/search?suite=bionic§ion=all&arch=any&ke… , so I guess that the path gets corrupted somehow...Could this be related to this other bug https://musescore.org/en/node/280651 ?
I've also tried to build it with BUILD_WEBENGINE=off
, and then it works OK, so I've uploaded it to the edge channel.
Comments
This
file INSTALL cannot find "//QtWebEngineProcess
, that double /, may indicate that some variable (between the slashes) expands to nothing?Not sure how or whther this does relate to #280651: 3.0 does not compile, but it does indeed look like it
Could you please post here an output of
qmake -query
in your build environment? In order to build MuseScore correctly you should have aqmake
binary in yourPATH
which knows the correct Qt directories for the used Qt installation. The relevant qmake variable forQtWebEngineProcess
searching should beQT_INSTALL_LIBEXECS
.In reply to Could you please post here… by dmitrio95
I had the same issue, could be qmake is /usr/lib/qtchooser/qmake of Qt4
In reply to I had the same issue, could… by fabricesalvaire
There is an issue in build/FindQt5.cmake, this line
find_program(QT_QMAKE_EXECUTABLE qmake)
find qmake-qt4 on somes platforms like Fedora.
In reply to There is an issue in build… by fabricesalvaire
if you change that line in build/FindQT5.cmake to
find_program(QT_MAKE_EXECUTABLE qmake-qt5)
then it finds the right one when you have both qt4 and qt5 installed. This allows you to build with webengine on
the issue only presents when you have both installed.
In reply to if you change that line in… by timsoft
On Debian, setting
QT_SELECT=qt5
environment variable also helps in case qtchooser defaults to a "wrong" Qt installation on that system. Maybe that can be relevant to other systems too.In reply to if you change that line in… by timsoft
I did but we can improve the cmake macro