Qt 5.2 build error with Visual 2013 (Unresolved symbol from JSC)



  • Hi,

    I'm trying to build Qt 5.2 to be able to use it with Visual Studio 2013. I did the following commands:
    @
    git clone https://git.gitorious.org/qt/qt5.git qt5
    cd qt5
    git checkout stable
    perl init-repository --no-webkit
    configure -debug-and-release -opensource -nomake examples -nomake tests -confirm-license
    nmake
    @

    The compilation fail when building Qt5Qmld.dll with the following errors:
    @
    cd qml\ && ( if not exist Makefile F:\qtbuild\qt5\qtbase\bin\qmake F:\qtbuild\qt5\qtdeclarative\src\qml\qml.pro -o Makefile ) && nmake -f Makefile
    nmake -f Makefile.Debug all
    echo 2 /* CREATEPROCESS_MANIFEST_RESOURCE_ID / 24 / RT_MANIFEST */ "F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll.embed.manifest">F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll_manifest.rc
    if not exist F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll if exist F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll.embed.manifest del F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll.embed.manifest
    if exist F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll.embed.manifest copy /Y F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll.embed.manifest F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll_manifest.bak
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x66000000 /DEBUG /DLL /VERSION:5.21 /MANIFEST /MANIFESTFILE:F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll.embed.manifest /OUT:F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll @C:\Users\Kevin\AppData\Local\Temp\nm591F.tmp
    Creating library F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.lib and object F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.exp
    YarrInterpreter.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::newlineCharacterClass(void)" (?newlineCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
    YarrJIT.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ)
    YarrPattern.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ)
    YarrInterpreter.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::wordcharCharacterClass(void)" (?wordcharCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
    YarrJIT.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ)
    YarrPattern.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ)
    YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::digitsCreate(void)" (?digitsCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::digitsCharacterClass(void)" (?digitsCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
    YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::spacesCreate(void)" (?spacesCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::spacesCharacterClass(void)" (?spacesCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
    YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::nondigitsCreate(void)" (?nondigitsCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nondigitsCharacterClass(void)" (?nondigitsCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
    YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::nonspacesCreate(void)" (?nonspacesCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nonspacesCharacterClass(void)" (?nonspacesCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
    YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::CharacterClass * __cdecl JSC::Yarr::nonwordcharCreate(void)" (?nonwordcharCreate@Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nonwordcharCharacterClass(void)" (?nonwordcharCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
    F:\qtbuild\qt5\qtbase\lib\Qt5Qmld.dll : fatal error LNK1120: 7 unresolved externals
    @

    Does anyone have any idea on how to fix this errors?

    Thanks.



  • I've successfully builded Qt by cleaning and doing configure/nmake again.
    @
    git submodule foreach --recursive "git clean -dfx"
    configure -debug-and-release -opensource -nomake examples -nomake tests -confirm-license
    nmake
    @


Log in to reply
 

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