Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Failed to build 5.0.1
Qt 6.11 is out! See what's new in the release blog

Failed to build 5.0.1

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    utcenter
    wrote on last edited by
    #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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alizadeh91
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • U Offline
        U Offline
        utcenter
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • U Offline
          U Offline
          utcenter
          wrote on last edited by
          #4

          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...

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved