[Solved] Failed to compile MuseScore on Linux – Configure step failed with status 1

• Jan 23, 2023 - 23:18

Hello. I am trying to compile the debug version of MuseScore onto my Linux Mint machine.

OS: Linux Mint 20.3 x86_64
Kernel: 5.4.0-137-generic

I am following the instructions provided by the GitHub, Ubuntu page, and (depreciated?) Ubuntu Git page

I have installed all dependencies, including all optional ones.

When I run make revision I get this error

make: *** No rule to make target 'revision'.  Stop.

Pressing forward anyway I run cmake -P build.cmake -DCMAKE_BUILD_TYPE=Release clean which runs successfully. Then I run cmake -P build.cmake -DCMAKE_BUILD_TYPE=Debug which results in an error. Here is my full output:

QMake version 3.1
Using Qt version 5.15.0 in /opt/Qt/5.15.0/gcc_64/lib
-- QT_LOCATION: /opt/Qt
-- QT_VERSION: 5.15.0
-- QT_COMPILER: gcc_64
-- SOURCE_PATH:       /home/my_name/MuseScore
-- BUILD_PATH:        /home/my_name/MuseScore/builds/Linux-Qt5.15.0-gcc_64-Make-Debug
-- INSTALL_PATH:      /home/my_name/MuseScore/builds/Linux-Qt5.15.0-gcc_64-Make-Debug/install
-- MSCORE_EXECUTABLE: /home/my_name/MuseScore/builds/Linux-Qt5.15.0-gcc_64-Make-Debug/install/bin/mscore
-- CPUS: 4
-- GENERATOR: Unix Makefiles
-- BUILD_TYPE: Debug

~~~~ Actualizing Configure step ~~~~

CONFIGURE_ARGS:  -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/home/my_name/MuseScore/builds/Linux-Qt5.15.0-gcc_64-Make-Debug/install -DCMAKE_BUILD_TYPE=Debug -DBUILD_64=ON
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detected CPU Architecture: x86_64
-- Using Compiler GCC 9.4.0
-- Detected CPU Architecture: x86_64
-- MUSESCORE_BUILD_CONFIG dev
-- MSCORE_UNSTABLE TRUE
-- MSCORE_RELEASE_CHANNEL devel
-- MUSESCORE_VERSION_FULL 4.1.0
-- VERSION 4.1b-
-- MUSESCORE_REVISION: 
QMake version 3.1
Using Qt version 5.15.0 in /opt/Qt/5.15.0/gcc_64/lib
-- Configuring mscore_freetype
-- Detected CPU Architecture: x86_64
CMake Error at build/cmake/FindSndFile.cmake:108 (message):
  Could not find: sndfile
Call Stack (most recent call first):
  CMakeLists.txt:179 (include)


-- Configuring incomplete, errors occurred!
See also "/home/my_name/MuseScore/builds/Linux-Qt5.15.0-gcc_64-Make-Debug/CMakeFiles/CMakeOutput.log".
CMake Error at build.cmake:232 (message):
  Configure step failed with status 1.  See output above for details.

I have also installed the dependency found in this help forum

sudo apt-get install libsndfile-dev

which didn't help.

I have attached the output log file (converted from .log to .txt)

Can someone help me with this? Thanks.


I got it to build! If you have the same problem, I recommend uninstalling Qt and reinstalling it to get the latest version of 5.15. For me this is 5.15.2

Between 5.15.0 and 5.15.2, Qt changed the default install directory. It is now home/my_name/Qt. Make sure to update $PATH to reflect this change.

I also had to install some packages

sudo apt-get install libsndfile-dev
sudo apt-get install libasound2-dev

Then everything went smoothly afterward.

My machine is 10+ years old and it only took me around 18 minutes to build. For a modern machine I would expect around a 5 minute build time.

Attachment Size
CMakeOutput.txt 87.54 KB

Comments

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