Building problem
Hello everyone! I have some problems with building musescore project. I have the same problem as a https://musescore.org/en/node/294149. I need your help.
P.S If you write video about compiling (windows 7, visual studio 2017) I will be happy.
Comments
.
Just use the steps outlined in the developers' handbook, https://musescore.org/en/handbook/developers-handbook/compilation/compi…
In reply to Just use the steps outlined… by Jojo-Schmitz
After "3.png" I install dependencies.7z and extract in the main directory. After that I open Visual Studio and run msvc_build.bat using the argument "relwithdebinfo". Next I open musescore.sln. The I follow instructions and build mscore as a main project and INSTALL project.
In reply to After "3.png" I install… by kotelifelif
And then what fails?
Did you also follow the steps at https://musescore.org/en/handbook/developers-handbook/compilation/compi…?
In reply to And then what fails? by Jojo-Schmitz
Yes, sure. I want only start this project, that is why I don't checkout master. Also CMAKE is located in Program Files (but the path is added in PATH variable).
In reply to Yes, sure. I want only start… by kotelifelif
that is why I don't checkout master ??? Which branch are you trying to build then?
And again: what exactly goes wrong, what errors do you get?
In reply to that is why I don't checkout… by Jojo-Schmitz
Master. Is it important? I don't want to commit my changes to github.
In reply to Master. Is it important? I… by kotelifelif
above you said you don't checkout master, now you say you do...
Anyway: what goes wrong?
In reply to above you said you don't… by Jojo-Schmitz
I mean that I work in master.
In reply to I mean that I work in master. by kotelifelif
Which is what you should. Or on a branch based on master (if you intend to send a pull request)
In reply to Which is what you should. Or… by Jojo-Schmitz
At first I want only to launch this application. After building mscore I get this mistakes (https://musescore.org/en/node/294149).
In reply to At first I want only to… by kotelifelif
Aha. Why then opening a new thread?
IMHO these errors mean that at some point you did not fully follow the developers' handbook
Does your PATH contain
C:\Qt\5.12.5\msvc2017_64\bin
and%ProgramFiles(x86)%\Cmake\bin
?Are you on a 64bit machine and Windows version?
In reply to Aha. Why then opening a new… by Jojo-Schmitz
My Windows is 64 bit and PATH comtain msvc, but Cmake in ProgramFiles.
In reply to My Windows is 64 bit and… by kotelifelif
I think cmake needs top be in PATH too, but I'm not really sure about it. It is for me and works here
In reply to I think cmake needs top be… by Jojo-Schmitz
I have added cmake in PATH. I have found, when I launch msvc_build.bat, I have got this message "Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)".
In reply to I have added cmake in PATH… by kotelifelif
That is OK, not needed
In reply to That is OK, not needed by Jojo-Schmitz
Also I get warnings (c4099, c4267, c4456, c4702) and information, that alsa and pulseaudio are disabled.
In reply to Also I get warnings (c4099,… by kotelifelif
Reg. the warnings see my PR https://github.com/musescore/MuseScore/pull/5291, but they are just that, warnings.
Alsa and Pulsaudio are disabled for Windows, that much is normal too
In reply to Reg. the warnings see my PR… by Jojo-Schmitz
I tried to build again and got the following errors ( I give example 1 of them):
Error C1083 Cannot open include file: 'ui_cellproperties.h': No such file or directory (compiling source file C:\Users\user\Desktop\musescore\MuseScore\mscore\drumtools.cpp) mscore c:\users\user\desktop\musescore\musescore\mscore\palette.h
In reply to I tried to build again and… by kotelifelif
I guess you'd need to rebase, such a bug got introduced like yesterday and fixed today
In reply to I guess you'd need to rebase… by Jojo-Schmitz
I have LNK2001 error.
In reply to I have LNK2001 error. by kotelifelif
more context needed. It might be better if you'd join the developers' chat on Telegram
In reply to I have LNK2001 error. by kotelifelif
I beliebe that problem is solved meanwhile (you're Alexander fon Telegram, aren't you?), but for the benefit of others:
Make sure the path to the MuseScore sources is
* not too long
* doesn't contain spaces
* doesn't contain any non-ASCII letters (like e.g. a cyrillic username)
I've added that to the MSVC instructions in the developers' handbook (and you may confirm which of those was the issue for you?)