Thanks for your patience. I started my developer life working on Sun
workstations (Linux did not exist) using RCS for source control. For the
last 10 years, I have been working almost exclusively with PHP and
JavaScript. I used to be pretty good with Makefiles, but that was a long
time ago.

I checked out a number of your suggestions.

I double-checked the paths in Qt.bat. I found that the C:\Windows\system32
path was commented out (my error) and restored it. There are some warnings
about CMake being last in the path. I think the intent is that it be after
Qt, but I made sure it was at the very end.

I deleted my MuseScore folder and re-cloned it. When I use File / Open File
or Project... and select the CMakeLists.txt file, I see this error
reported:/ Cannot run "git rev-parse --git-dir E:\MuseScore" in
"E:\MuseScore": / so I added C:\PF86\Git\Cmd to the path and tried again.

This time, I saw a Configure Project page and when I pressed the Configure
Project button, fthe "pathfinder" appeared. I ran CMake with the arguments
I'm supposed to give it, and the generated output ends with /-- Build files
have been written to:
E:/build-MuseScore-Desktop_Qt_5_6_0_MinGW_32bit-Default/. That's not right.
I was supposed to change the build directory first, but was never offered an
obvious place to change it.

Try again. This time I clicked on the Details button and changed the Default
to E:\MuseScore\built.qtc. What about all those other "kits"? Do I edit them
or do I unselect them? I decided to unselect them. Then I ran the CMake. It
now ended with /-- Build files have been written to: E:/MuseScore/built.qtc/

So I tried to build. Thanks to Marc, I looked in the compile output window
and found:

07:56:10: Running steps for project mscore...
07:56:10: Starting: "C:\PF86\Qt\Tools\mingw492_32\bin\mingw32-make.exe"
lrelease
Scanning dependencies of target lrelease
The system cannot find the path specified.
CMakeFiles\lrelease.dir\build.make:56: recipe for target
'CMakeFiles/lrelease' failed
mingw32-make[3]: *** [CMakeFiles/lrelease] Error 1
CMakeFiles\Makefile2:162: recipe for target 'CMakeFiles/lrelease.dir/all'
failed
mingw32-make[2]: *** [CMakeFiles/lrelease.dir/all] Error 2
CMakeFiles\Makefile2:169: recipe for target 'CMakeFiles/lrelease.dir/rule'
failed
makefile:222: recipe for target 'lrelease' failed
mingw32-make[1]: *** [CMakeFiles/lrelease.dir/rule] Error 2
mingw32-make: *** [lrelease] Error 2
07:56:10: The process "C:\PF86\Qt\Tools\mingw492_32\bin\mingw32-make.exe"
exited with code 2.
Error while building/deploying project mscore (kit: Desktop Qt 5.6.0 MinGW
32bit)
When executing step "Make"
07:56:10: Elapsed time: 00:00.

The target at line 56 is:

CMakeFiles/lrelease:
        E:\MuseScore\build\gen-qt-projectfile E:/MuseScore > mscore.pro
        E:\MuseScore\build\gen-qt-projectfile E:/MuseScore/share/instruments >
instruments.pro
        C:\PF86\Qt\5.6\mingw49_32\bin\lrelease.exe 
E:/MuseScore/share/locale/*.ts

where line 56 is the line that writes to mscore.pro. 

mscore.pro exists in E:\MuseScore\built.qtc. I can't find instruments.pro
anywhere. I can run the first command manually (without the redirection to
mscore.pro) and the output exactly matches the output of mscore.pro. No
errors are reported.

Unfortunately, I can also run the second line (without redirection) and I
get what looks like reasonable output.

I generated the instruments.pro by hand. I'm guessing it goes the same place
as score.pro. I then ran the lrelease command by hand and all output looked
reasonable.

This was all from a DOS window that had my normal path. So I tried again,
this time with the same settings as from my Qt.bat file. Again, no problems.

So I decided to try to build by hand. Again using the same environment as
from my Qt.bat, I moved to C:\MuseScore and ran mingw32-make -f
Makefile.mingw release.  Here is the output with debug on:

if not exist build.release\nul mkdir build.release
CreateProcess(D:\Users\tony\AppData\Local\Temp\make10884-1.bat,D:\Users\tony\AppData\Local\Temp\make10884-1.bat,...)
Putting child 00E6B380 (release) PID 15149200 on the chain.
Recipe of 'release' is being run.
Live child 00E6B380 (release) PID 15149200
Main thread handle = 000000C0
The system cannot find the path specified.
Reaping losing child 00E6B380 PID 15149200
Cleaning up temp batch file D:\Users\tony\AppData\Local\Temp\make10884-1.bat
Makefile.mingw:28: recipe for target 'release' failed
mingw32-make: *** [release] Error 1
Removing child 00E6B380 PID 15149200 from chain.

The build.release folder is actually created. The win32install folder is
not. The two commands in the makefile look very similar:

        if not exist build.release\nul mkdir build.release
        if not exist win32install\nul mkdir win32install

OK, so maybe my use of C:\PF86 as a link is a problem. The places where
problems appear don't seem related to the C:\PF86 link. I will keep trying
but maybe something obvious will occur to someone.






--
View this message in context: 
http://dev-list.musescore.org/Qt-Creator-CmakeFiles-lrelease-Error-1-in-first-compilation-attempt-tp7579826p7579834.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

Reply via email to