Cmake error while building from sources

• Jul 28, 2010 - 15:07

Hello,
I tried to build mscore from sources but I have a problem. I am on 32 bit Fedora 12, I installed qt-sdk-2010.04 (qt-4.6.3),

[piotr@localhost mscore-0.9.6.1]$ 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 GNU
-- 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
-- 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
-- Found Doxygen: /usr/bin/doxygen
found Doxygen
-- configured /home/piotr/Pobrane/mscore-0.9.6.1/mscore/Doxyfile.in --> /home/piotr/Pobrane/mscore-0.9.6.1/build/Doxyfile
CMake Error at CMakeLists.txt:101 (message):
Fatal error: QT (version >= 4.6.0) required. Cmake tries to detect QT4 by
searching for 'qmake' in your PATH.If you have QT4 installed, make sure
qmake is found in your PATH. If you compiled QT4 yourself make sure your
new qmake ist found _first_ in your PATH.


Comments

In reply to by [DELETED] 3

It look strange, but it looks that the system cannot find qmake:

[piotr@localhost mscore-0.9.6.1]$ qmake -version
bash: qmake: nie znaleziono polecenia (command not found)

I installed qt-sdk and added it to the PATH according to these instruction:
Put qmake in the $PATH
Append the following to ~/.bashrc
if [ -d ~/qtsdk-2010.02/qt/bin ] ; then
PATH=~/qtsdk-2010.02/qt/bin:"${PATH}"
fi
Then run
source .bashrc

In reply to by perotinus

If you installed qt-sdk-2010.04, you should change your bashrc with the good version.
if [ -d ~/qtsdk-2010.04/qt/bin ] ; then
PATH=~/qtsdk-2010.04/qt/bin:"${PATH}"
fi

If you compile the trunk, be aware that it's in heavy development mode. Read this for more info.
So if you want to use MuseScore, compile the branch (branches/mscore-0-9-6) or use a package for your platform. See [[nodetitle:Download]]

In reply to by [DELETED] 5

Although I have updated data base (su updatedb) I had to restart my computer and after that 'make release' started. Unfortunately I encontered some more problems:

[ 32%] Building CXX object mscore/CMakeFiles/mscore.dir/scpageformat.cpp.o
[ 32%] Building CXX object mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:25:21: error: sndfile.h: Nie ma takiego pliku ani katalogu
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp: In member function ‘bool Score::saveAudio(const QString&, const QString&, QString)’:
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:42: error: ‘SF_FORMAT_WAV’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:42: error: ‘SF_FORMAT_PCM_16’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:44: error: ‘SF_FORMAT_OGG’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:44: error: ‘SF_FORMAT_VORBIS’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:46: error: ‘SF_FORMAT_FLAC’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:46: error: ‘SF_FORMAT_PCM_16’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:76: error: ‘SF_INFO’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:76: error: expected ‘;’ before ‘info’
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:78: error: ‘class QFileInfo’ has no member named ‘channels’
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:79: error: ‘class QFileInfo’ has no member named ‘samplerate’
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:80: error: ‘class QFileInfo’ has no member named ‘format’
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:81: error: ‘SNDFILE’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:81: error: ‘sf’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:81: error: ‘SFM_WRITE’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:81: error: ‘sf_open’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:83: error: ‘sf_strerror’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:155: error: ‘sf_writef_float’ was not declared in this scope
/home/piotr/Pobrane/mscore-0.9.6.1/mscore/mscore/exportaudio.cpp:173: error: ‘sf_close’ was not declared in this scope
make[3]: *** [mscore/CMakeFiles/mscore.dir/exportaudio.cpp.o] Błąd 1
make[3]: Opuszczenie katalogu `/home/piotr/Pobrane/mscore-0.9.6.1/build'
make[2]: *** [mscore/CMakeFiles/mscore.dir/all] Błąd 2
make[2]: Opuszczenie katalogu `/home/piotr/Pobrane/mscore-0.9.6.1/build'
make[1]: *** [all] Błąd 2
make[1]: Opuszczenie katalogu `/home/piotr/Pobrane/mscore-0.9.6.1/build'
make: *** [release] Błąd 2

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