Errors tryin to odo Local build
I have started to setup environment to do a local build of Master.
When I try to do a build from Qt, I get errors that seem to come from source code in aeolus directory
Examples:
Qlist does not name a type - from synthesizer.h
Qstring does not name a type - addsynth.h
Is this due to a wrong setup, or is there a way to get around?
I am new to this environment, so I may have missed something;
I have installed CMake, Qt and GitHub deskstop
Created a GitHub account
Made a fork and downloaded a clone
Finally I imported MuseScore into Qt as a CMake project
Comments
Aeolus should be disabled. Which OS? Did you follow the approprite steps from https://musescore.org/en/handbook/developers-handbook#Compilation ?
In reply to Aeolus should be disabled… by Jojo-Schmitz
OS is Win10
I tried to follow the instructions for compilation with Qt 4.0x but they do not relate very well to Qt 5.8, which is the suggested version.
I have tried to import into Qt leaving out Aeolus but i still get errors that some of the header files can not be found. (i,e, sndfile.h, ladspaplugin.h)
Is there more details that I can try to collect to help pinpoint the problem?
In reply to OS is Win10… by Niels Erik Nielsen 2
Just follow both pages for Windows to the letter
In reply to OS is Win10… by Niels Erik Nielsen 2
Specifically make sure the build/run targets have been adjusted correctly. This hasn't changed between master and 2.x
In reply to Specifically make sure the… by jeetee
I have teied to follow the steps as described.
I open the project in Qt and set the build directory axcording to the Handbook. (build.qtc).
When I hit "Configure oroject" nothing seems to happen.
https://musescore.org/da/developers-handbook/compilation/compile-instru…
In reply to I have teied to follow the… by Niels Erik Nielsen 2
You mean the dialog shown in the picture does not appear? What version of QtCreator are you using?
In reply to You mean the dialog shown in… by Marc Sabatella
Qt installer is 3.0.2
Installed Qt 5.8 and MnGW 5.3.0 as shown i Handbook.
Cmake 3.0.2 for x64
GutHubDesktop 1.0.11
I think I will make a fresh installation and document with screenshots.
It may be a little while though as I have some problems after latest Windows 10 update.
In reply to Qt installer is 3.0.2… by Niels Erik Nielsen 2
Should be Qt 5.9.x meanwhile, and I'm using CMake 3.10.1 currently
In reply to Shpould be Qt 5.9.x… by Jojo-Schmitz
Sorry for the misspelling.
I am at Qt 5.9.3, Cmake 3.10.1.
I tried to comment out the two lines, that were reported in error, and the configuration was completed without further error, but I guess I may get problems further in.
In reply to You mean the dialog shown in… by Marc Sabatella
Back again.
Managed to solve some of the problems.
I created the Qt.bat file as it is shown in the %PATH% summary
https://musescore.org/da/handbook/compile-instructions-windows-mingw-gi…
but failed to recognize that CMake was installed C:\Program Files\CMake --- (not (Program Files x86))
I chose to use GitHubDesktop, which does not install a PATH to git.exe. So I had to add that to Qt.bat.
I then started Qt and opened CmakeLists.txt
Configuration started automatically, but produced errors in line 432 and 568.
Error: string no output variable specified
432: string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
568: string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)
Because of this the configuration failed.
Any suggestions, please?
In reply to Back again… by Niels Erik Nielsen 2
Yes, I've been fighting this as well, unfortunately I don't remember how I solved it.
Good idea with the PATH to GitHub for Windows, I'll steal it ;-)
The CMake PATH should be correct, if you pick the 32bit installer of it, like the handbook tells you.
Edit: you did notice the recent changes in https://musescore.org/en/handbook/qt-creator-4x-compile-instructions?
In reply to Yes, I've been fighting this… by Jojo-Schmitz
Finally managed to get the configuration OK.
Tried building a Debug version, but get errors from because of a missing sndfile.h
From ..\audiofile\audiofile.h and ...\zerberus\sfz.cpp
I have been running GitHubDesktop, which reports that upstream has been fetched.
Any suggestions?
In reply to Finally managed to get the… by Niels Erik Nielsen 2
You need those (see https://musescore.org/en/handbook/developers-handbook/compilation/compi…) and can get them from the files links to in the handbook.
See https://musescore.org/en/handbook/developers-handbook/compilation/compi…
In reply to You need those (see https:/… by Jojo-Schmitz
Thanks for the help. I guess I should have read the manual more carefully ;)
After installing the dependency libraries, everything went fine, until meeting
include
I located types.h in ...\include\sec_api\sys. I tried copying it directly into ...\include
and changed the include statments to just #include
I assume that there may be a more correct way to solve this, but it seemed to work out fine, until the build process ended with just
[resfile.o] Error 1
and no further explanation.
Not much to go on, Any ideas?
In reply to Thanks for the help. I guess… by Niels Erik Nielsen 2
include -> should be "include
In reply to include -> should be … by Niels Erik Nielsen 2
once again: the include statment if for sys slash types.h
In reply to once again: the include… by Niels Erik Nielsen 2
That missing / wrong include is new to me, the result.o issue is not, unfortunately again I don't remember how I got it fixed. There should be a longer thread about this in the forum.
In reply to That missing / wrong include… by Jojo-Schmitz
This thread seems to adresse the issue, but the way I read it, a fix has been applied sine time ago.
https://musescore.org/en/node/181796
In reply to This thread seems to adresse… by Niels Erik Nielsen 2
I wonder whether that made it into the 2.2 branch too (even if it probably is not relevant for you, I last saw it when trying to build from that branch)
Edit; apparently it has not. Now need to find out whether it'd help or work there...