Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/152.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 由于链接器错误,为win32 msvc编译Qt 5.2.1失败_C++_Qt_Compilation_Linker Errors - Fatal编程技术网

C++ 由于链接器错误,为win32 msvc编译Qt 5.2.1失败

C++ 由于链接器错误,为win32 msvc编译Qt 5.2.1失败,c++,qt,compilation,linker-errors,C++,Qt,Compilation,Linker Errors,我正在尝试在64位Win7机器上编译Qt5.2.1(我需要32位二进制文件) 我配置了 configure -debug-and-release -opensource -platform win32-msvc2012 -opengl desktop -nomake examples -nomake tests 我通过运行 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat 它会编译一段时间,但在链接

我正在尝试在64位Win7机器上编译Qt5.2.1(我需要32位二进制文件)

我配置了

configure -debug-and-release -opensource -platform win32-msvc2012 -opengl desktop -nomake examples -nomake tests
我通过运行

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat
它会编译一段时间,但在链接时失败

这是错误输出:

link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /OUT:..\..\..\..\plugins\platforms\qwindowsd.dll @C:\Users\steffenh\AppData\Local\Temp\nm9509.tmp
   Creating library ..\..\..\..\plugins\platforms\qwindowsd.lib and object ..\..\..\..\plugins\platforms\qwindowsd.exp
dlldata.obj : error LNK2001: unresolved external symbol _Accessible2_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleAction_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleApplication_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleComponent_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleEditableText_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleHyperlink_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleHypertext_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleImage_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleRelation_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleTable_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleTable2_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleTableCell_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleText_ProxyFileInfo
dlldata.obj : error LNK2001: unresolved external symbol _AccessibleValue_ProxyFileInfo
..\..\..\..\plugins\platforms\qwindowsd.dll : fatal error LNK1120: 14 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.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.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
有人能帮我吗

最好的, S.H


更新

Qt似乎试图链接到Microsoft Active Accessibility,其主文件是位于系统路径中的“oleacc.dll”


如何检查这是32位还是64位?

当我通过添加详细链接器标志时,链接工作正常

“QMAKE_LFLAGS+=/VERBOSE”到“mkspecs/qconfig.pri”

(这不会改变任何事情,但它起了作用)

Qt错误描述如下:

我想现在的链接是:但是是的,这对我来说不起作用。