Thanks for the help, Jon. The build process for MuseScore is complex and uses
tools that I am not experienced with.
Let's try small steps.
Using Qt Creator, how does one start a "Debug" build?
I have a "Default" kit, where CMake is generated with the command line
options
-DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_INSTALL_PREFIX=../win32install
This should generate Makefiles for a debug build, right?
I start the build using Debug / Start Debugging / Start Debugging.
Using this process, I get the same problem that you say you only get with
the "Release" build.
------------------------------------------------------------------------------------
The compilation instructions for Windows appear to be incorrect when using
Qt Creator 3.6.1.
When the CMakeLists.txt file is first opened, you enter a project
configuration page. You are presented with a list of "kits": Default, Debug,
Release, etc. I unselected everything except Default. Each "kit" has an
associated folder. I set the release folder to E:\MuseScore\build.qtc. Then
clicking on "Configure Project" brings a dialog for running CMake.
------------------------------------------------------------------------------------
The problem I'm running into comes from QT_WRC_EXECUTABLE not being set.
It appears to be defined in E:\MuseScore\build\mingw32.mingw.cmake:
${CMAKE_CURRENT_LIST_DIR}/wrc.bat)
and used in E:\MuseScore\mscore\CMakeLists.txt:
COMMAND ${QT_WRC_EXECUTABLE} -i mscore.rc -o
${PROJECT_BINARY_DIR}/mscore.res
The generated make file is mscore\CMakeFiles\mscore.dir\build.make and the
result is:
resfile.o: ../mscore/data/mscore.rc
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold
--progress-dir=E:\MuseScore\build.qtc\CMakeFiles
--progress-num=$(CMAKE_PROGRESS_150) "Generating ../resfile.o"
cd /d E:\MuseScore\mscore\data && -i mscore.rc -o
E:/MuseScore/build.qtc/mscore.res
cd /d E:\MuseScore\mscore\data &&
\home\ws\.wine\drive_c\MingW\bin\windres.exe
E:/MuseScore/build.qtc/mscore.res -o E:/MuseScore/build.qtc/resfile.o
Notice that wine.bat has the same problem.
Manually fixing the build.make file fixes the problem, at least until the
make files are re-created:
resfile.o: ../mscore/data/mscore.rc
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold
--progress-dir=E:\MuseScore\build.qtc\CMakeFiles
--progress-num=$(CMAKE_PROGRESS_150) "Generating ../resfile.o"
cd /d E:\MuseScore\mscore\data && E:/MuseScore\build\wrc.bat -i
mscore.rc
-o E:/MuseScore/build.qtc/mscore.res
cd /d E:\MuseScore\mscore\data && E:/MuseScore\build\wine.bat
\home\ws\.wine\drive_c\MingW\bin\windres.exe
E:/MuseScore/build.qtc/mscore.res -o E:/MuseScore/build.qtc/resfile.o
The build runs to 98% and then starts getting a ton of undefined references:
[ 97%] Building CXX object mscore/CMakeFiles/mscore.dir/qmledit.cpp.obj
[ 97%] Building CXX object
mscore/CMakeFiles/mscore.dir/pluginManager.cpp.obj
[ 97%] Building CXX object
mscore/CMakeFiles/mscore.dir/mscore_automoc.cpp.obj
[ 98%] Linking CXX executable MuseScore.exe
CMakeFiles\mscore.dir/objects.a(qrc_musescore.cpp.obj): In function
`Z24qInitResources_musescorev':
E:/MuseScore/build.qtc/mscore/qrc_musescore.cpp:43033: undefined reference
to `qRegisterResourceData(int, unsigned char const*, unsigned char const*,
unsigned char const*)'
CMakeFiles\mscore.dir/objects.a(qrc_musescore.cpp.obj): In function
`Z27qCleanupResources_musescorev':
E:/MuseScore/build.qtc/mscore/qrc_musescore.cpp:43041: undefined reference
to `qUnregisterResourceData(int, unsigned char const*, unsigned char const*,
unsigned char const*)'
CMakeFiles\mscore.dir/objects.a(qrc_musescorefonts-MScore.cpp.obj): In
function `Z36qInitResources_musescorefonts_MScorev':
E:/MuseScore/build.qtc/mscore/qrc_musescorefonts-MScore.cpp:9763: undefined
reference to `qRegisterResourceData(int, unsigned char const*, unsigned char
const*, unsigned char const*)'
CMakeFiles\mscore.dir/objects.a(qrc_musescorefonts-MScore.cpp.obj): In
function `Z39qCleanupResources_musescorefonts_MScorev':
E:/MuseScore/build.qtc/mscore/qrc_musescorefonts-MScore.cpp:9771: undefined
reference to `qUnregisterResourceData(int, unsigned char const*, unsigned
char const*, unsigned char const*)'
CMakeFiles\mscore.dir/objects.a(qrc_musescorefonts-Gootville.cpp.obj): In
function `Z39qInitResources_musescorefonts_Gootvillev':
E:/MuseScore/build.qtc/mscore/qrc_musescorefonts-Gootville.cpp:5122:
undefined reference to `qRegisterResourceData(int, unsigned char const*,
unsigned char const*, unsigned char const*)'
CMakeFiles\mscore.dir/objects.a(qrc_musescorefonts-Gootville.cpp.obj): In
function `Z42qCleanupResources_musescorefonts_Gootvillev':
... and on and on ...
--
View this message in context:
http://dev-list.musescore.org/Qt-Creator-CmakeFiles-lrelease-Error-1-in-first-compilation-attempt-tp7579826p7579841.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer