I have compiled MuseScore error on vs2017

• Sep 6, 2019 - 15:17

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

In reply to by Jojo-Schmitz

  1. i have the PATH to Qt set up.
  2. When I execute the "msvc_build.bat" file, I get an error. As shown in the figure "02.png".
    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".

Attachment Size
03.png 10.56 KB
04.png 22.28 KB
01.png 7.16 KB
02.png 1.22 KB
05.png 5.48 KB

Do you still have an unanswered question? Please log in first to post your question.