Compiling in Win7 help needed
Hi
I tried to compile Musescore 2.0.1 as described.
(https://musescore.org/en/developers-handbook/compilation/compile-instru…-)
but in Ot Creator i am getting build error
19:27:22: Uruchamianie kroków budowania dla projektu mscore...
19:27:22: Uruchamianie "E:\Qt\Tools\mingw491_32\bin\mingw32-make.exe"
[ 0%] Automatic moc for target mscore
[ 0%] Built target mscore_automoc
[ 0%] Built target mops2
[ 0%] Built target mops1
[ 0%] Automatic moc for target qtsingleapp
[ 0%] Built target qtsingleapp_automoc
[ 0%] Building CXX object thirdparty/singleapp/src/CMakeFiles/qtsingleapp.dir/qtsingleapplication.cpp.obj
g++.exe: error: source/MuseScore-2.0.1-build/all.h: No such file or directory
thirdparty\singleapp\src\CMakeFiles\qtsingleapp.dir\build.make:60: recipe for target 'thirdparty/singleapp/src/CMakeFiles/qtsingleapp.dir/qtsingleapplication.cpp.obj' failed
mingw32-make[2]: *** [thirdparty/singleapp/src/CMakeFiles/qtsingleapp.dir/qtsingleapplication.cpp.obj] Error 1
CMakeFiles\Makefile2:6847: recipe for target 'thirdparty/singleapp/src/CMakeFiles/qtsingleapp.dir/all' failed
mingw32-make[1]: *** [thirdparty/singleapp/src/CMakeFiles/qtsingleapp.dir/all] Error 2
mingw32-make: *** [all] Error 2
makefile:148: recipe for target 'all' failed
19:27:24: Proces "E:\Qt\Tools\mingw491_32\bin\mingw32-make.exe" zakończył się kodem wyjściowym 2.
Błąd budowania / instalowania projektu mscore (zestaw narzędzi: Desktop Qt 5.4.2 MinGW 32bit)
Podczas wykonywania kroku "Make"
19:27:24: Czas trwania: 00:02.
What i am doing wrong and what should i do to make it right?
My guess is that somewhere i mixed up directories, as it states:
g++.exe: error: source/MuseScore-2.0.1-build/all.h: No such file or directory
But this file is there (was copied by CMake to "MuseScore-2.0.1-build" directory)
Comments
The path "source/MuseScore-2.0.1-build/all.h" seems to hint at that you did not not follow the handbook by the letter...
In reply to The path by Jojo-Schmitz
I'm a bit behind reading posts, but notice he's using Qt 5.4.2, which was recently released. I haven't upgraded to 5.4.2 so has anyone else compiled MS with this version?
In reply to I'm a bit behind reading by schepers
Yes, I have, no problems so far, except for some messages I hadn't seen before, so they may be due to the upgrade:
Warning: libpng warning: iCCP: known incorrect sRGB profile (:0, )
Shows up 7 times, I guess some of the internal PNGs are not up to speed in that respect?
As far as I can see it got to be 7 out of the following
data/paper1.png
data/paper2.png
data/paper3.png
data/paper4.png
data/paper5.png
data/splash.png
data/mscore.png
data/icons/png/window-close.png
data/icons/png/window-close@2x.png
data/icons/png/window-close-hover.png
data/icons/png/window-close-hover@2x.png
data/icons/png/window-float.png
data/icons/png/window-float@2x.png
data/musescore-logo-transbg-m.png
data/musescore_logo_full.png
data/icons/mscore.png
In reply to Yes, I have, no problems so by Jojo-Schmitz
Those libpng warnings have been fixed now
Ok so this problem is resolved. I had a space in catalog name.
Now mixed up directories. I really don`t wanna instal programs on C drive, so i specified %PATH% for all required directories as specified in Compile instructions to respective directories on E drive but Qt (or rather CMake) stubbornly look for them on C.
CMake Error at CMakeLists.txt:20 (project):
The CMAKE_CXX_COMPILER:
C:/Qt/Tools/mingw491_32/bin/g++.exe
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:20 (project):
The CMAKE_C_COMPILER:
C:/Qt/Tools/mingw491_32/bin/gcc.exe
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Configuring incomplete, errors occurred!
See also "E:/MuseScore-2.0.1source/MuseScore-2.0.1-build/CMakeFiles/CMakeOutput.log".
See also "E:/MuseScore-2.0.1source/MuseScore-2.0.1-build/CMakeFiles/CMakeError.log".
Where else can it be specified to look for these directories on C other than system path and Qt Creator preferences?