I have compiled MuseScore error on vs2017
I compiled MuseScore on vs2017. I completely follow the requirements of this page, but I still get an error, and I can't find the problem there. Can a good person help me?
[Compile instructions (Windows - Visual Studio)]
Https://musescore.org/en/handbook/developers-handbook/compilation/compile-instructions-windows-visual-studio#fn:1
Error is as follows
4>libmscore.lib(property.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(read206.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(textlinebase.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(articulation.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(xmlwriter.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(letring.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(palmmute.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(slurtie.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(slur.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(tuplet.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(beam.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(textbase.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(edit.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(chord.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(lyrics.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(style.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(mscore.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(scoreElement.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>libmscore.lib(note.obj) : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>editstyle.obj : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>timeline.obj : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>inspectorBase.obj : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>qmlpluginapi.obj : error LNK2001: Unresolved external symbol "struct QMetaObject const Ms::staticMetaObject" (?staticMetaObject@Ms@@3UQMetaObject@@B)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual struct QMetaObject const * __cdecl Ms::MyWebUrlRequestInterceptor::metaObject(void)const " (?metaObject@MyWebUrlRequestInterceptor@Ms@@UEBAPEBUQMetaObject@@XZ)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual void * __cdecl Ms::MyWebUrlRequestInterceptor::qt_metacast(char const *)" (?qt_metacast@MyWebUrlRequestInterceptor@Ms@@UEAAPEAXPEBD@Z)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual int __cdecl Ms::MyWebUrlRequestInterceptor::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@MyWebUrlRequestInterceptor@Ms@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual struct QMetaObject const * __cdecl Ms::MyWebEnginePage::metaObject(void)const " (?metaObject@MyWebEnginePage@Ms@@UEBAPEBUQMetaObject@@XZ)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual void * __cdecl Ms::MyWebEnginePage::qt_metacast(char const *)" (?qt_metacast@MyWebEnginePage@Ms@@UEAAPEAXPEBD@Z)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual int __cdecl Ms::MyWebEnginePage::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@MyWebEnginePage@Ms@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual struct QMetaObject const * __cdecl Ms::MyWebView::metaObject(void)const " (?metaObject@MyWebView@Ms@@UEBAPEBUQMetaObject@@XZ)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual void * __cdecl Ms::MyWebView::qt_metacast(char const *)" (?qt_metacast@MyWebView@Ms@@UEAAPEAXPEBD@Z)
4>startcenter.obj : error LNK2001: Unresolved external symbol "public: virtual int __cdecl Ms::MyWebView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@MyWebView@Ms@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
4>loginmanager.obj : error LNK2001: Unresolved external symbol "public: virtual struct QMetaObject const * __cdecl Ms::ApiWebEngineRequestInterceptor::metaObject(void)const " (?metaObject@ApiWebEngineRequestInterceptor@Ms@@UEBAPEBUQMetaObject@@XZ)
4>loginmanager.obj : error LNK2001: Unresolved external symbol "public: virtual void * __cdecl Ms::ApiWebEngineRequestInterceptor::qt_metacast(char const *)" (?qt_metacast@ApiWebEngineRequestInterceptor@Ms@@UEAAPEAXPEBD@Z)
4>loginmanager.obj : error LNK2001: Unresolved external symbol "public: virtual int __cdecl Ms::ApiWebEngineRequestInterceptor::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@ApiWebEngineRequestInterceptor@Ms@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
Attachment | Size |
---|---|
complie Error.txt | 6.26 KB |
Comments
Do you have Qt's WebEngine part installed?
In reply to Do you have Qt's WebEngine… by Jojo-Schmitz
Yes, I have already installed qt 's WebEngine
In reply to Yes, I have already… by Iamxiaxia
You seem to have a lot of stuff installed that is not needed.
Did you run the msvc_build.bat? And have the PATH to Qt set up
In reply to You seem to have a lot of… by Jojo-Schmitz
but, The instructions say: "If no mscore.sln file was created, try running the msvc_build.bat..."
I have generated "mscore.sln"
In addition, I would like to ask "dependencies", is it correct in the main directory of the code?
As shown in the figure "03.png".
In reply to i have the PATH to Qt set up… by Iamxiaxia
run the bat file anyhow, use RelWithDebInfo as an argument to it
And yes, the dependencies directory looks right
In reply to i have the PATH to Qt set up… by Iamxiaxia
Where is the .git directory? Why that rather strange directory name, indicating you're trying to build 3.2.3 rather than master?
In reply to i have the PATH to Qt set up… by Iamxiaxia
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)