Failed to build 5.0.1



  • Building from source with MSVC2012 x64, with the following configure parameters:

    @-debug-and-release
    -opensource
    -no-accessibility
    -openvg
    -opengl desktop
    -no-angle
    -nomake examples
    -nomake tests
    -mp@

    Since building from source skips the init repository step where webkit can be disabled I simply delete the webkit folders.

    Here are the errors I get a few minutes into building:

    @ echo 2 /* CREATEPROCESS_MANIFEST_RESOURCE_ID / 24 / RT_MANIFEST */ "..
    \..\lib\Qt5Guid.dll.embed.manifest">....\lib\Qt5Guid.dll_manifest.rc
    if not exist ....\lib\Qt5Guid.dll del ....\lib\Qt5Guid.dll.embed.manif
    est>NUL 2>&1
    if exist ....\lib\Qt5Guid.dll.embed.manifest copy /Y ....\lib\Qt5Guid.
    dll.embed.manifest ....\lib\Qt5Guid.dll_manifest.bak
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /VERSION:5.01 /MANIFEST
    /MANIFESTFILE:....\lib\Qt5Guid.dll.embed.manifest /OUT:....\lib\Qt5Guid.dll @d
    :\Users\Dian\AppData\Local\Temp\nm9E3B.tmp
    Creating library ....\lib\Qt5Guid.lib and object ....\lib\Qt5Guid.exp
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    struct QMetaObject const * __cdecl QAccessible::metaObject(void)const " (?metaO
    bject@QAccessible@@UEBAPEBUQMetaObject@@XZ)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    void * __cdecl QAccessible::qt_metacast(char const *)" (?qt_metacast@QAccessibl
    e@@UEAAPEAXPEBD@Z)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    int __cdecl QAccessible::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt
    _metacall@QAccessible@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
    qguiapplication.obj : error LNK2019: unresolved external symbol "public: static
    void __cdecl QAccessible::updateAccessibility(class QAccessibleEvent *)" (?updat
    eAccessibility@QAccessible@@SAXPEAVQAccessibleEvent@@@Z) referenced in function
    "public: static void __cdecl QAccessible::updateAccessibility(class QObject *,in
    t,enum QAccessible::Event)" (?updateAccessibility@QAccessible@@SAXPEAVQObject@@H
    W4Event@1@@Z)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    class QWindow * __cdecl QAccessibleInterface::window(void)const " (?window@QAcc
    essibleInterface@@UEBAPEAVQWindow@@XZ)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    class QVector<struct QPair<class QAccessibleInterface *,class QFlags<enum QAcce
    ssible::RelationFlag> > > __cdecl QAccessibleInterface::relations(class QFlags<e
    num QAccessible::RelationFlag>)const " (?relations@QAccessibleInterface@@UEBA?AV
    ?$QVector@U?$QPair@PEAVQAccessibleInterface@@V?$QFlags@W4RelationFlag@QAccessibl
    e@@@@@@@@V?$QFlags@W4RelationFlag@QAccessible@@@@@Z)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    class QAccessibleInterface * __cdecl QAccessibleInterface::focusChild(void)cons
    t " (?focusChild@QAccessibleInterface@@UEBAPEAV1@XZ)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    class QColor __cdecl QAccessibleInterface::foregroundColor(void)const " (?foreg
    roundColor@QAccessibleInterface@@UEBA?AVQColor@@XZ)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    class QColor __cdecl QAccessibleInterface::backgroundColor(void)const " (?backg
    roundColor@QAccessibleInterface@@UEBA?AVQColor@@XZ)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    void __cdecl QAccessibleInterface::virtual_hook(int,void *)" (?virtual_hook@QAc
    cessibleInterface@@UEAAXHPEAX@Z)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: virtual
    class QAccessibleInterface * __cdecl QAccessibleEvent::accessibleInterface(void
    )const " (?accessibleInterface@QAccessibleEvent@@UEBAPEAVQAccessibleInterface@@X
    Z)
    qguiapplication.obj : error LNK2001: unresolved external symbol "public: static
    struct QMetaObject const QAccessible::staticMetaObject" (?staticMetaObject@QAcce
    ssible@@2UQMetaObject@@B)
    ....\lib\Qt5Guid.dll : fatal error LNK1120: 12 unresolved externals
    NMAKE : fatal error U1077: '"d:\Programs\Microsoft Visual Studio 11.0\VC\BIN\x86
    _amd64\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"d:\Programs\Microsoft Visual Studio 11.0\VC\BIN\nma
    ke.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    @

    Any ideas?



  • I'm just guessing that you have missed some dependencies. Are u sure about dependencies?



  • There shouldn't be any missing dependencies in this configuration.



  • I managed to build it with slightly different config parameters, not quite sure which one exactly did the trick, but I removed openvg and removed the -mp switch to use only a single core...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.