Build with Ninja fails: error: dependency cycle
Reported version
3.x-dev
Type
Development
Frequency
Few
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project
> cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=./RelWithDebInfo -DBUILD_PORTAUDIO=OFF -DBUILD_PORTMIDI=OFF -DBUILD_JACK=OFF -G Ninja ..
> ninja -j4
ninja: error: dependency cycle: mops1 -> CMakeFiles/mops1 -> all.h -> libmscore/libmscore_autogen -> libmscore/CMakeFiles/libmscore_autogen -> mops1
I'm on Gentoo Linux.
This is the first time I tried to compile MuseScore.
Used current master (commit 1279610c)
Comments
See libmscore/CMakeListe.txt, at the end and CMakeLists.txt, lines 750-755, maybe Ninja needs a similar treatment?
I am having that same error here on windows 10, mingw. How did you fix the issue?
There that issue doesn't exist as far as I can tell (I'm using MinGW too and it works)
Hmm, not in the current latest 3.x at least, but there was such an issue a couple days ago, got fixed pretty quickly then though
Hey, was it solved? I am having the same issue with Ubuntu 20.04 and QtCreator 4.14.0, Qt 5.15.2. Branch: MuseScore 3.6.1.
In reply to Hey, was it solved? I am… by Ludwig van Benteuer
I don't remember what exactly had to be done, but it was something like cleaning and rebuilding. Not something we had to push a fix to master for.
Unfortunately, just cleaning and rebuilding didn't work. There are some other reports here, also refering to MuseScore: https://bugs.gentoo.org/684722 and here: https://gentoobrowse.randomdan.homeip.net/packages/media-sound/musescore
There is also a report on CMake, but for another software: https://gitlab.kitware.com/cmake/cmake/-/issues/17599
Workaround: use Qt 5.12.8 instead of 5.15.
Or 5.12.10, the latest
In reply to (No subject) by Jojo-Schmitz
Which is the workaround to compile Musescore 3.6.x on Ubuntu 20.0.4?
Using Qt 5.12.8 - 5.12.10, not 5.15
In reply to Using Qt 5.12.8 or later by Jojo-Schmitz
I have Qt 5.12.8 but Musescore require 5.15
No, the 3.x branches do not, they require 5.9 or later, only the master branch does require 5.15