Error [pluginDocumentation] Error -1073741701
Hello, I´m new here and also a new plugin developer,
This is the first time that I was the tool QT Creator and also programming in QML and c++.
I will install the main source code of MuseScore, with the help of "https://musescore.org/en/handbook/developers-handbook/compilation/compi…" and "https://musescore.org/en/handbook/developers-handbook/compilation/compi…".
But after the first Debugging the error << [pluginDocumentation] Error -1073741701 >> came and stop the build process. I don´t know how to fix this error and I hope that someone can help me to fix this error.
Comments
It indicates that you don't have the Path set correctly when launching QtCreator
In reply to It indicates that you don't… by jeetee
How I can fix this. Which Path is it? The Path to the source code or CMake?
In reply to How I can fix this. Which… by Sam009
The path to Qt, for building master with 5.9.3, the following must be added to the Path environment variable in the environment in which you run the build (mentioned at https://musescore.org/en/handbook/developers-handbook/compilation/compi…)
C:\Qt\5.9.3\mingw53_32\bin;C:\Qt\Tools\mingw530_32\bin;
You can add this from within QtCreator.
1. Have the project open and go to the Projects tab
2. When in the build settings, scroll all the way down
3. The last item should be called something like 'system environment'; expand it
4. Locate the Path variable in there and edit it: Leave everything that's in it as is; just add the above mentioned in front of the existing value
5. Close QtCreator
6. Reopen it and rebuild.
In reply to The path to Qt, for building… by jeetee
I did that with this path: C:\Qt\5.9.3\mingw53_32\bin
C:\Qt\5.9.4\mingw53_32\bin
C:\Qt\Tools\mingw530_32\bin
C:\Qt\Tools\mingw530_32\lib
C:\Qt\Tools\QtCreator\bin
C:\Program Files\CMake\cmake-3.10.3-win32-x86\bin
C:\Program Files\Jack
However, the same error came back after the step 6.
I take the by the Dependencies step "this archis" and not all the other libraries like libVorbis, libVorbisFile, libOgg , Portaudio ...
I have to make also the Path form the lib and i686-w64-mingw32 from the archive into the 'system environment'?
The Path all exists. Could it be possible that I forgot a path?
In reply to I did that with this path: C… by Sam009
Also the system asks me if I will save the new modification on Cmake or the project. I select CMake.
In reply to Also the system asks me if I… by Sam009
Yeah, this annoys me too and I never know what to pick. I think it doesn't matter either way though
In reply to Yeah, this annoys me too and… by Jojo-Schmitz
Yes, I did not know what was right, but also believe that it does not change. Then that is correct.
In reply to Also the system asks me if I… by Sam009
Wait..
I don't recall Changing Path in the System Environment under Build Environment asking me such a thing; even more so that this setting is not CMake specific…
Anyhow, if you can choose to save modifications either on cmake or on the project, I'd advise you to always save it to the project.
Even just within MuseScore, building master requires Qt5.9, but building 2.x requires Qt5.4. They both could be using the same cmake, but definitely need different settings. Settings specific to a project should be stored on the project-level.
Just to be entirely clear I've added a screenshot of the setting I'm talking about (in the shot, building master with Qt5.9.3). All I've added upon editing Path is the highlighted part in front of what was already there.
If you've installed everything else in their default location, then you don't need to do anything more. Not even start QtCreator from a special script or anything; just run it from the start menu and open your project.
In reply to Wait… by jeetee
I will then delete the file "CMakeLists.txt.user" and start over again. Should I then install CMake again because it could be that CMake have overwritten. Then I save on Project.
I already have a Path, I'm supposed to put all new Path in there, but in this Path there are still others Paths who are not dealing with QT or Camke,... .
In reply to Wait… by jeetee
Thanks, that helped me. Can now build the program. It was a issue into the Path.
Just another question is it possible to run the program after the build? Because for me it is written "no executable file specified", by Run %{sourceDir}\win32install\bin\MuseScore.exe
Although the source code is open.
In reply to Thanks, that helped me. Can… by Sam009
During entering that value, that file indeed does not exist (yet). As you can see in the screenshot of the instruction pages, it is also in red text there to indicate this warning.
However, if your build was successful then pressing either 'Run' or 'Debug' should work.
In reply to During entering that value,… by jeetee
My build was successful, but if I debug or run the message came that the "no executable file specified".
By Project -> Run %{sourceDir}\win32install\bin\MuseScore.exe is still red after a build.
In reply to My build was successful, but… by Sam009
But CMAKE_PREFIX_PATH does point to that win32install directory?
In reply to But CMAKE_PREFIX_PATH does… by Jojo-Schmitz
No to C:/Qt/5.9.3/mingw53_32
CMAKE_INSTALL_PREFIX point to \MuseScore_git\win32install
But inside the directory win32install\bin I have a MuseScore.exe and this I can run after a click. was that the built program?
In reply to No to C:/Qt/5.9.3/mingw53_32… by Sam009
That's what I meant, sorry.
But why C:/Qt/5.9.3/mingw53_32 and not C:/Qt/5.9.4/mingw53_32?
CMAKE_INSTALL_PREFIX should be set to ..\win32install
In reply to That's what I meant, sorry… by Jojo-Schmitz
I use C:/Qt/5.9.3/mingw53_32 since my QT-cersion is 5.9.3 and I use the Desktop Qt 5.9.3 MinGW 32 bit, as explained in the tutorial. Does that make another difference if I use 5.9.3 or 5.9.4?
Yes it is, CMAKE_INSTALL_PREFIX is set to ...\MuseScore_git\win32install
In reply to I use C:/Qt/5.9.3/mingw53… by Sam009
doesn't make a diff as long as used consistently
In reply to I use C:/Qt/5.9.3/mingw53… by Sam009
..\win32install and ...\MuseScore_git\win32install
are not the same. It should be set to the first one.
In reply to ..\win32install and … by jeetee
Or make sure they are the same (they will is MuseScore_git is your code checkout directory)
In reply to Or make sure they are the… by Jojo-Schmitz
So I have to change it?
I have Build directory "C:\Users\sam\MuseScore_git\build.qtc" and the "CMAKE_INSTALL_PREFIX is C:/Users/sam/MuseScore_git/win32install"
Normaly MuseScore_git is my checkout directory since there are all files.
build.qtc directory and the win32install directory.
In reply to So I have to change it?… by Sam009
No, looks good
In reply to No, looks good by Jojo-Schmitz
But how I can run the program after the build, since if i make a run then the problem"no such file or directory" came that he don't find the file/MuseScore.exe, but this exist.
In reply to But how I can run the… by Sam009
There got to be a typo somewhere
In reply to There got to be a typo… by Jojo-Schmitz
Ok, you mean by the Executable: %{sourceDir}\win32install\bin\MuseScore.exe. There i make copy past from the tutorial page . Or i have to change %{sourceDir} ?
In reply to Ok, you mean by the… by Sam009
no idea
In reply to Ok, you mean by the… by Sam009
You can try replacing the value of the Executable field (
%{sourceDir}\win32install\bin\MuseScore.exe
) with the full path to the built executable.After having built, click the Browse... button on the right of that field and navigate to the MuseScore.exe that has been built.
In reply to You can try replacing the… by jeetee
Yes now it runs. I change the Path, and make the full Path to MuseScore.exe.
Thanks for the help and I'm sorry for the many questions. :)
In reply to I did that with this path: C… by Sam009
C:\Qt\5.9.3\mingw53_32\bin
and
C:\Qt\5.9.4\mingw53_32\bin
??
In reply to C:\Qt\5.9.3\mingw53_32\bin… by Jojo-Schmitz
I have both installed because in the description was update to 5.9.4
I did not know which one to take, so the two in the Path.
Should I take only one, if yes which the 5.9.4?
In reply to I have both installed… by Sam009
yes, only one. And the same version as used elsewhere
Could also be 5.9.5 meanwhile (I'm using that)
In reply to yes, only one. And the same… by Jojo-Schmitz
Ok,
I use Desktop Qt 5.9.3 MinGw 32 bit
and I have now :
C:\Qt\5.9.3\mingw53_32\bin
C:\Qt\Tools\mingw530_32\bin
C:\Qt\Tools\mingw530_32\lib
C:\Qt\Tools\QtCreator\bin
C:\Program Files\CMake\cmake-3.10.3-win32-x86\bin
C:\Program Files\Jack
But the error [pluginDocumentation] Error -1073741701 is still there after 75%(+-) of the build the error came.
Is it possible that i forgot somthing?
Just as an aside though; you mention you want to be a plugin developer. There is no need at all for you to try and build MuseScore for yourself then, unless you wish to work on the plugin framework and what it enables plugins to do.
OK, I know this is old but I am having this same issue and tried many different variances of Qt & C-makes and played with the settings to no avail.
Finally I got through by doing this:
1) go to your Musescore folder, then to manual folder and open up the Cmakelist.txt in notepad.
2) go find the following lines near the end and comment them out or remove it;
3) Then compile and run should be free of the error << [pluginDocumentation] Error -1073741701 >>.
I have no idea what the consequence of this is. I was just wanting to modify the Piano Tutor version by Tom Cuninnotta do fix up serial port and change LED colour for sharp notes. And was stuck with above error using Qt version 9.
Note: Without doing the above, I had no error compile it using shell but got the error if I try with Qt creator. I wanted to do it in Qt Creator to play with debug function, but of course with error above I couldn't run debug. Now I can.
In reply to OK, I know this is old but I… by nghiapham@outl…
Qt version 9???
I guess you mean 5.9
And the 3.x branch, not the master branch
In reply to Qt version 9??? by Jojo-Schmitz
Beg your pardon, Qt creator version 9.
qt 5.9.4
In reply to Qt version 9??? by Jojo-Schmitz
..