当我尝试编译即使是最简单的应用程序时...只有一个Widget我得到以下错误,我猜他们都是同样的错误,我不知道我是不是做了坏事或者是别的,我真的很感激你的帮助
错误日志:
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5UiTools.a when searching for -lQt5UiTools
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib\libQt5UiTools.a when searching for -lQt5UiTools
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5UiTools.a when searching for -lQt5UiTools
[...]/x86_64-w64-mingw32/bin/ld.exe: cannot find -lQt5UiTools
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5Widgets.a when searching for -lQt5Widgets
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/Qt5Widgets.dll when searching for -lQt5Widgets
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib\libQt5Widgets.a when searching for -lQt5Widgets
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5Widgets.a when searching for -lQt5Widgets
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/Qt5Widgets.dll when searching for -lQt5Widgets
[...]/x86_64-w64-mingw32/bin/ld.exe: cannot find -lQt5Widgets
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5Network.a when searching for -lQt5Network
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/Qt5Network.dll when searching for -lQt5Network
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib\libQt5Network.a when searching for -lQt5Network
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5Network.a when searching for -lQt5Network
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/Qt5Network.dll when searching for -lQt5Network
[...]/x86_64-w64-mingw32/bin/ld.exe: cannot find -lQt5Network
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5Gui.a when searching for -lQt5Gui
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/Qt5Gui.dll when searching for -lQt5Gui
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib\libQt5Gui.a when searching for -lQt5Gui
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5Gui.a when searching for -lQt5Gui
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/Qt5Gui.dll when searching for -lQt5Gui
[...]/x86_64-w64-mingw32/bin/ld.exe: cannot find -lQt5Gui
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5Core.a when searching for -lQt5Core
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/Qt5Core.dll when searching for -lQt5Core
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib\libQt5Core.a when searching for -lQt5Core
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libQt5Core.a when searching for -lQt5Core
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/Qt5Core.dll when searching for -lQt5Core
[...]/x86_64-w64-mingw32/bin/ld.exe: cannot find -lQt5Core
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/liblibEGL.a when searching for -llibEGL
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libEGL.dll when searching for -llibEGL
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib\liblibEGL.a when searching for -llibEGL
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/liblibEGL.a when searching for -llibEGL
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libEGL.dll when searching for -llibEGL
[...]/x86_64-w64-mingw32/bin/ld.exe: cannot find -llibEGL
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/liblibGLESv2.a when searching for -llibGLESv2
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libGLESv2.dll when searching for -llibGLESv2
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib\liblibGLESv2.a when searching for -llibGLESv2
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/liblibGLESv2.a when searching for -llibGLESv2
[...]/x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib/libGLESv2.dll when searching for -llibGLESv2
[...]/x86_64-w64-mingw32/bin/ld.exe: cannot find -llibGLESv2
collect2.exe: error: ld returned 1 exit status
Makefile.Release:80: recipe for target 'release\KomixViewer.exe' failed
mingw32-make[1]: *** [release\KomixViewer.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/asd/Documents/komix'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
15:03:26: The process "C:\Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project Komix_viewer (kit: Desktop Qt 5.0.1 MinGW 32bit)
When executing step 'Make'
我无法弄清楚为什么这些文件不兼容?
我找不到任何解决这个问题的方法......我希望你能帮助我...就像我使用Windows 8编译一样。
答案 0 :(得分:10)
这表明您正在构建一个64位二进制文件,而这些库是针对32位目标的(反之亦然)。