所以我正在尝试安装QtLocation。我在 C:\QT 中创建了 qt5vars.cmd,完全按照所述文本。这是我的错误:
C:QTQT5>REM Set up Microsoft Visual Studio 2013, where <arch> is c
amd64, c x86, etc.
The syntax of the command is incorrect.
C:QTQT5>CALL "C:Program Files (x86)Microsoft Visual Studio 12.0VC
vcvarsall.bat" <arch>
C:QTQT5>configure -debug -nomake examples -opensource
'configure' is not recognized as an internal or external command,
operable program or batch file.
C:QTQT5>
谁能指出我的问题?我刚刚安装了Microsoft视觉工作室,它位于
C:Program Files (x86)Microsoft Visual Studio 12.0
编辑:发现问题是我需要添加x86,此外只有完整的背景包括make和配置,因此我下载了完整的软件包。
现在我有一个新的错误
moc_qqmlenginedebugservice_p.cpp
moc_qdebugmessageservice_p.cpp
moc_qv4debugservice_p.cpp
moc_qqmlconfigurabledebugservice_p.cpp
moc_qqmlabstractprofileradapter_p.cpp
moc_qv4profileradapter_p.cpp
moc_qqmlprofiler_p.cpp
moc_qabstractanimationjob_p.cpp
moc_qqmlbind_p.cpp
moc_qqmlconnections_p.cpp
moc_qqmldelegatemodel_p.cpp
moc_qqmldelegatemodel_p_p.cpp
moc_qqmllistmodel_p.cpp
moc_qqmllistmodel_p_p.cpp
moc_qqmllistmodelworkeragent_p.cpp
moc_qqmlobjectmodel_p.cpp
moc_qqmltimer_p.cpp
moc_qquickpackage_p.cpp
moc_qquickworkerscript_p.cpp
Generating Code...
link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x66000000 /DEBUG /DLL /SUBSYS
TEM:WINDOWS /VERSION:5.40 /MANIFEST:embed /OUT:C:TUecomotiveQT5qt-everywhere-
opensource-src-5.4.0qtbaselibQt5Qmld.dll @C:Userss130031AppDataLocalTemp
nm9C7.tmp
Creating library C:TUecomotiveQT5qt-everywhere-opensource-src-5.4.0qtbase
libQt5Qmld.lib and object C:TUecomotiveQT5qt-everywhere-opensource-src-5.4.
0qtbaselibQt5Qmld.exp
YarrInterpreter.obj : error LNK2019: unresolved external symbol "struct JSC::Yar
r::CharacterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate@Yarr
@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::newlineCharacterClass(voi
d)" (?newlineCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
YarrPattern.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::newlineCreate(void)" (?newlineCreate@Yarr@JSC
@@YAPAUCharacterClass@12@XZ)
YarrInterpreter.obj : error LNK2019: unresolved external symbol "struct JSC::Yar
r::CharacterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate@Ya
rr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Y
arr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::wordcharCharacterClass(
void)" (?wordcharCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ
)
YarrPattern.obj : error LNK2001: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::wordcharCreate(void)" (?wordcharCreate@Yarr@J
SC@@YAPAUCharacterClass@12@XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::digitsCreate(void)" (?digitsCreate@Yarr@JSC@@
YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::Cha
racterClass * __thiscall JSC::Yarr::YarrPattern::digitsCharacterClass(void)" (?d
igitsCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::spacesCreate(void)" (?spacesCreate@Yarr@JSC@@
YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yarr::Cha
racterClass * __thiscall JSC::Yarr::YarrPattern::spacesCharacterClass(void)" (?s
pacesCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nondigitsCreate(void)" (?nondigitsCreate@Yarr
@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nondigitsCharacterClass(v
oid)" (?nondigitsCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ
)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nonspacesCreate(void)" (?nonspacesCreate@Yarr
@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC::Yar
r::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nonspacesCharacterClass(v
oid)" (?nonspacesCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterClass@23@XZ
)
YarrPattern.obj : error LNK2019: unresolved external symbol "struct JSC::Yarr::C
haracterClass * __cdecl JSC::Yarr::nonwordcharCreate(void)" (?nonwordcharCreate@
Yarr@JSC@@YAPAUCharacterClass@12@XZ) referenced in function "public: struct JSC:
:Yarr::CharacterClass * __thiscall JSC::Yarr::YarrPattern::nonwordcharCharacterC
lass(void)" (?nonwordcharCharacterClass@YarrPattern@Yarr@JSC@@QAEPAUCharacterCla
ss@23@XZ)
C:TUecomotiveQT5qt-everywhere-opensource-src-5.4.0qtbaselibQt5Qmld.dll : f
atal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 12.0
VCBINlink.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 12.0
VCBINnmake.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.
C:QTQT5qt-everywhere-opensource-src-5.4.0>
我遇到了同样的问题。我在这里找到了答案 在窗口中构建Qt 5.4:使用VS2010和此处 尝试构建5.2的未解析外部符号。
要解决此问题:
-
检查文件 QT_HOME\qtdeclarative\src\qml\RegExpJitTables.h 是否为空。如果为空,请将其删除。(在更高版本中,该文件位于 QT_HOME\qtdeclarative\src\qml\.generated \ 目录的每个子目录中。
-
确保 python 在你的 PATH 中
-
新造
它对我有用。