[Fedora 21] Building from source problem

• Jul 18, 2015 - 22:19

I am experiencing problems building MuseScore.

I thought these errors were related to 2.0.2 only, but I tried to rebuild 2.0.1 and I have the same errors:


[fabrizio@localhost MuseScore-2.0.2]$ make release
if test ! -d build.release; then mkdir build.release; fi; \
cd build.release; \
export PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/fabrizio/.local/bin:/home/fabrizio/bin:/usr/java/jdk1.8.0_40/bin/; \
cmake -DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=""/usr/local"" ..; \
make lrelease; \
make manpages; \
make -j `grep -c processor /proc/cpuinfo`; \

CMake Warning at build/FindQt5Transitional.cmake:30 (find_package):
By not providing "FindQt5UiTools.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5UiTools", but CMake did not find one.

Could not find a package configuration file provided by "Qt5UiTools" with
any of the following names:

Qt5UiToolsConfig.cmake
qt5uitools-config.cmake

Add the installation prefix of "Qt5UiTools" to CMAKE_PREFIX_PATH or set
"Qt5UiTools_DIR" to a directory containing one of the above files. If
"Qt5UiTools" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:46 (include)

found Doxygen
-- latex command LATEX_COMPILER not found but usually required. You will probably get warnings and user interaction on doxy run.
-- makeindex command MAKEINDEX_COMPILER not found but usually required.
-- dvips command DVIPS_CONVERTER not found but usually required.
-- configured /home/fabrizio/Scaricati/MuseScore-2.0.2/build/Doxyfile.in --> /home/fabrizio/Scaricati/MuseScore-2.0.2/build.release/Doxyfile
-- Found pulseaudio: /usr/lib64/libpulse.so
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindFreetype.cmake:138 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:190 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/fabrizio/Scaricati/MuseScore-2.0.2/build.release/CMakeFiles/CMakeOutput.log".
make[1]: ingresso nella directory "/home/fabrizio/Scaricati/MuseScore-2.0.2/build.release"
make[1]: *** Nessuna regola per generare l'obiettivo "lrelease". Arresto.
make[1]: uscita dalla directory "/home/fabrizio/Scaricati/MuseScore-2.0.2/build.release"
make[1]: ingresso nella directory "/home/fabrizio/Scaricati/MuseScore-2.0.2/build.release"
make[1]: *** Nessuna regola per generare l'obiettivo "manpages". Arresto.
make[1]: uscita dalla directory "/home/fabrizio/Scaricati/MuseScore-2.0.2/build.release"
make[1]: ingresso nella directory "/home/fabrizio/Scaricati/MuseScore-2.0.2/build.release"
make[1]: *** Nessun obiettivo specificato e nessun makefile trovato. Arresto.
make[1]: uscita dalla directory "/home/fabrizio/Scaricati/MuseScore-2.0.2/build.release"
Makefile:38: set di istruzioni per l'obiettivo "release" non riuscito
make: *** [release] Errore 2

It seems to be related to my Qt installation. Here are the packages installed:

qt.i686 1:4.8.6-30.fc21 @updates
qt.x86_64 1:4.8.6-30.fc21 @updates
qt-common.noarch 1:4.8.6-30.fc21 @updates
qt-creator.x86_64 3.4.2-1.fc21 @updates
qt-creator-data.noarch 3.4.2-1.fc21 @updates
qt-mobility-common.i686 1.2.2-0.17.20140317git169da60c.fc21
qt-mobility-common.x86_64 1.2.2-0.17.20140317git169da60c.fc21
qt-mobility-location.i686 1.2.2-0.17.20140317git169da60c.fc21
qt-mobility-location.x86_64 1.2.2-0.17.20140317git169da60c.fc21
qt-mobility-sensors.i686 1.2.2-0.17.20140317git169da60c.fc21
qt-mobility-sensors.x86_64 1.2.2-0.17.20140317git169da60c.fc21
qt-settings.noarch 21-3.fc21 @updates
qt-x11.i686 1:4.8.6-30.fc21 @updates
qt-x11.x86_64 1:4.8.6-30.fc21 @updates
qt3.x86_64 3.3.8b-63.fc21 @updates
qt5-qtbase.x86_64 5.4.2-1.fc21 @updates
qt5-qtbase-common.noarch 5.4.2-1.fc21 @updates
qt5-qtbase-devel.x86_64 5.4.2-1.fc21 @updates
qt5-qtbase-gui.x86_64 5.4.2-1.fc21 @updates
qt5-qtdeclarative.x86_64 5.4.2-2.fc21 @updates
qt5-qtdeclarative-devel.x86_64 5.4.2-2.fc21 @updates
qt5-qtdoc.noarch 5.4.2-1.fc21 @updates
qt5-qtlocation.x86_64 5.4.2-1.fc21 @updates
qt5-qtquickcontrols.x86_64 5.4.2-1.fc21 @updates
qt5-qtscript.x86_64 5.4.2-1.fc21 @updates
qt5-qtsensors.x86_64 5.4.2-1.fc21 @updates
qt5-qtsvg.x86_64 5.4.2-1.fc21 @updates
qt5-qtsvg-devel.x86_64 5.4.2-1.fc21 @updates
qt5-qttools.x86_64 5.4.2-1.fc21 @updates
qt5-qttools-common.noarch 5.4.2-1.fc21 @updates
qt5-qttools-devel.x86_64 5.4.2-1.fc21 @updates
qt5-qttools-libs-clucene.x86_64 5.4.2-1.fc21 @updates
qt5-qttools-libs-designer.x86_64 5.4.2-1.fc21 @updates
qt5-qttools-libs-designercomponents.x86_64
qt5-qttools-libs-help.x86_64 5.4.2-1.fc21 @updates
qt5-qtwebkit.x86_64 5.4.2-1.fc21 @updates
qt5-qtwebkit-devel.x86_64 5.4.2-1.fc21 @updates
qt5-qtx11extras.x86_64 5.4.2-1.fc21 @updates
qt5-qtxmlpatterns.x86_64 5.4.2-1.fc21 @updates
qt5-qtxmlpatterns-devel.x86_64 5.4.2-1.fc21 @updates
qtwebkit.i686 2.3.4-6.fc21 installed
qtwebkit.x86_64 2.3.4-6.fc21 installed

Comments

Maybe unrelated, but
PATH=/usr/lib64/qt-3.3/bin:/
looks suspicious

Do you have freetype installed?

sudo apt-get install libssl-dev libfreetype6-dev libfreetype6

In reply to by Jojo-Schmitz

With yum the packages you told me aren't available to install, but I think I have it:

[fabrizio@localhost ~]$ yum list installed | grep freetype
freetype.i686 2.5.3-16.fc21 @updates
freetype.x86_64 2.5.3-16.fc21 @updates
freetype-freeworld.x86_64 2.5.3-5.fc21 installed

The fact is that I've built MuseScore many times before this, without any problem... so maybe is related to updates or new software that I've recently installed.

I got the list of packages that depends on Qt3 and they are many so it's unlikely that this was installed recently. But I find it suspicious too, since MuseScore requires Qt5 right??

There are more issues with 2.0.2.
There was a change in the CMakeLists.tx file that prevents the package from build.
The error is:
[100%] Built target pluginDocumentation
Install the project...
-- Install configuration: "RELEASE"
-- Installing: /home/thomas/MageiaSVN/mscore/BUILDROOT/mscore-2.0.2-1.mga5.x86_64/usr/share/applications/mscore.desktop
CMake Error at cmake_install.cmake:40 (file):
file INSTALL cannot find
"/home/thomas/MageiaSVN/mscore/BUILD/MuseScore-2.0.2/build/mscore.1.gz".

Makefile:66: recipe for target 'install' failed
make: *** [install] Error 1
error: Bad exit status from /home/thomas/MageiaSVN/mscore/BUILDROOT/rpm-tmp.nOJJca (%install)

After removing the man compression lines, it builds great.
I made a patch as attached.
The manual compression will be done by macros when bulding the package. And we at Mageia us XZ compression for the manuals.

and BTW is this correct: file %{_datadir}/mime/packages/musescore.xml was added since 2.0.1 and file %{_datadir}/pixmaps/mscore.png was removed since 2.0.1?

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