我正在尝试在 Microsoft Visual Studio 2010 中构建与 Qt 库连接的项目 (x64)。我要编译的项目是使用 Visual Studio 2008 构建的。
我添加了所有依赖项,下载了编译的 64 位 Qt 库,并在 VS 2010 中对项目属性进行了所有适当的更改。虽然,我收到以下错误:
Error 2616 error LNK1112: module machine type 'X86' conflicts with
target machine type 'x64' D:\project\Windows\QtOpenGL4.lib(QtOpenGL4.dll)
我检查了我的 .dll 和 .lib 文件,它们是 x64 位版本。此外,我的 QtOpenGL4.dll 文件位于错误中提到的路径的另一路径中。
会不会是 QtOpenGL4 模块的错误?我怎么能解决这个问题?请你帮助我好吗?
我为构建 64 位版本的 Qt 所遵循的说明在此链接中:https ://en.wikibooks.org/wiki/Opticks_Developer_Guide/Getting_Started/Building_Qt_From_Source