Compiling Mscore on Fedora
Hello,
I am trying to compile Mscore on Fedora 10.
I got latest SVN,I installed Qt 4.6, all needed dependencies, according to instructions from here
. Unfortunately I haven't succed. Please look:
[piotr@localhost trunk]$ make release
if test ! -d build; \
then \
mkdir build; \
cd build; \
cmake -DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=""/usr/local"" \
../mscore; \
make lrelease; \
make -j `grep -c processor /proc/cpuinfo`; \
else \
echo "build directory does already exist, please remove first with 'make clean'"; \
fi;
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Found Doxygen: /usr/bin/doxygen
found Doxygen
-- configured /home/piotr/mscore/trunk/mscore/Doxyfile.in --> /home/piotr/mscore/trunk/build/Doxyfile
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.6.0
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
Qt lib found at /home/piotr/qtsdk-2009.05/qt/lib
Alsa detected.
-- jack (jack audio connection kit) >= 0.98.0 found
portaudio detected /usr/include /usr/lib -lportaudio -lm -lpthread
-- Configuring incomplete, errors occurred!
make[1]: Wejście do katalogu `/home/piotr/mscore/trunk/build'
make[1]: *** Brak reguł do wykonania obiektu `lrelease'. Stop.
make[1]: Opuszczenie katalogu `/home/piotr/mscore/trunk/build'
make[1]: Wejście do katalogu `/home/piotr/mscore/trunk/build'
make[1]: *** Nie podano obiektów i nie znaleziono makefile. Stop.
make[1]: Opuszczenie katalogu `/home/piotr/mscore/trunk/build'
make: *** [release] Błąd 2
Any help will be appreciate.
Best.
Comments
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
You need g++ to compile MuseScore.
In reply to Missing c++ compiler by [DELETED] 5
I installed g++ (on fedora gcc-c++) and started release. But still having troubles:
/home/piotr/mscore/trunk/mscore/mscore/xml.cpp: In member function ‘void Xml::valueTypeTag(const char*, ValueType)’:
/home/piotr/mscore/trunk/mscore/mscore/xml.cpp:71: warning: ‘s’ may be used uninitialized in this function
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/timesig.cpp.o
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/lyrics.cpp.o
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/bsp.cpp.o
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/volta.cpp.o
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/simplebutton.cpp.o
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/image.cpp.o
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/keyfinder.cpp.o
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/pitchspelling.cpp.o
[ 28%] Building CXX object mscore/CMakeFiles/mscore.dir/musedata.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/keysig.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/arpeggio.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/breath.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/glissando.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/lilypond.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/exportly.cpp.o
/home/piotr/mscore/trunk/mscore/mscore/exportly.cpp: In member function ‘void ExportLy::writeVoiceMeasure(MeasureBase*, Staff*, int, int)’:
/home/piotr/mscore/trunk/mscore/mscore/exportly.cpp:4026: warning: unused variable ‘punkt’
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/box.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/measurebase.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/editdrumset.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/editstaff.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/drumset.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/tremolo.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/repeat.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/voltaproperties.cpp.o
[ 29%] Building CXX object mscore/CMakeFiles/mscore.dir/chordproperties.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/restproperties.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/newwizard.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/transposedialog.cpp.o
/home/piotr/mscore/trunk/mscore/mscore/transposedialog.cpp:310: warning: unused parameter ‘useDoubleSharpsFlats’
/home/piotr/mscore/trunk/mscore/mscore/transposedialog.cpp:365: warning: unused parameter ‘key’
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/bb.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/harmony.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/chordedit.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/plugins.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/tempotext.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/excerptsdialog.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/excerpt.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/stafftext.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/instrument.cpp.o
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/durationtype.cpp.o
/home/piotr/mscore/trunk/mscore/mscore/durationtype.cpp: In member function ‘void Duration::print() const’:
/home/piotr/mscore/trunk/mscore/mscore/durationtype.cpp:517: warning: ‘s’ may be used uninitialized in this function
[ 30%] Building CXX object mscore/CMakeFiles/mscore.dir/event.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/rendermidi.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/articulation.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/metaedit.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/fifo.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/spacer.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/magbox.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/voiceselector.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/capella.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/scscore.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/sccursor.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/scchord.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/scnote.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/scpart.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/sctext.cpp.o
[ 31%] Building CXX object mscore/CMakeFiles/mscore.dir/scmeasure.cpp.o
[ 32%] Building CXX object mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:25:21: error: sndfile.h: Nie ma takiego pliku ani katalogu
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp: In member function ‘bool Score::saveAudio(const QString&, const QString&, QString)’:
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:42: error: ‘SF_FORMAT_WAV’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:42: error: ‘SF_FORMAT_PCM_16’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:44: error: ‘SF_FORMAT_OGG’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:44: error: ‘SF_FORMAT_VORBIS’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:46: error: ‘SF_FORMAT_FLAC’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:46: error: ‘SF_FORMAT_PCM_16’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:76: error: ‘SF_INFO’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:76: error: expected `;' before ‘info’
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:78: error: ‘class QFileInfo’ has no member named ‘channels’
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:79: error: ‘class QFileInfo’ has no member named ‘samplerate’
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:80: error: ‘class QFileInfo’ has no member named ‘format’
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:81: error: ‘SNDFILE’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:81: error: ‘sf’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:81: error: ‘SFM_WRITE’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:81: error: ‘sf_open’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:83: error: ‘sf_strerror’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:155: error: ‘sf_writef_float’ was not declared in this scope
/home/piotr/mscore/trunk/mscore/mscore/exportaudio.cpp:173: error: ‘sf_close’ was not declared in this scope
make[3]: *** [mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o] Error 1
make[3]: Leaving directory `/home/piotr/mscore/trunk/build'
make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Error 2
make[2]: Leaving directory `/home/piotr/mscore/trunk/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/piotr/mscore/trunk/build'
make: *** [release] Error 2
Hope, it's not fatal.
Thanks for help.
In reply to I installed g++ (on fedora by perotinus
You also need libsndfile.
In reply to You also need libsndfile. by [DELETED] 3
Yes, I've got it: libsndfile and libsndfile-devel. It's in my /usr/lib/
I've updated libsndfile-devel and restared 'make release'. This time I did 33%:
/home/piotr/mscore/trunk/mscore/mscore/importove.cpp: In member function ‘OVE::MusicData* OveToMScore::getCrossMeasureElementByPos(int, int, const OVE::MeasurePos&, int, OVE::MusicDataType)’:
/home/piotr/mscore/trunk/mscore/mscore/importove.cpp:1855: warning: comparison between signed and unsigned integer expressions
[ 33%] Building CXX object mscore/CMakeFiles/mscore.dir/ove.cpp.o
/home/piotr/mscore/trunk/mscore/mscore/ove.cpp:1: error: stray ‘\357’ in program
/home/piotr/mscore/trunk/mscore/mscore/ove.cpp:1: error: stray ‘\273’ in program
/home/piotr/mscore/trunk/mscore/mscore/ove.cpp:1: error: stray ‘\277’ in program
make[3]: *** [mscore/CMakeFiles/mscore.dir/ove.cpp.o] Błąd 1
make[3]: Opuszczenie katalogu `/home/piotr/mscore/trunk/build'
make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Błąd 2
make[2]: Opuszczenie katalogu `/home/piotr/mscore/trunk/build'
make[1]: *** [all] Błąd 2
make[1]: Opuszczenie katalogu `/home/piotr/mscore/trunk/build'
make: *** [release] Błąd 2
In reply to I've updated libsndfile-devel by perotinus
I removed the Byte-Order-Mark in ove.cpp for r. 2902. SVN update and see if you get further this time.
In reply to I removed the Byte-Order-Mark by David Bolton
It works! I finished compilation (it took 3 hours on celeron 2.8), but I am not sure it's clear, because there were hundreds of warnings. Most of them about undefined or unused variables. I installed and started MuseScore, but it's really unstable -at least in comparison with 0.9.5 which I run formerly. I will post about problems I encounter.
Many thanks for help.
Best regards,
Piotr