opencv 编译objects.a(vs_version.rc.obj)‘ is incompatible with i386:x86-64 output

37% Built target IlmImf

37% Built target libprotobuf

C:/Qt/Qt5.14.2/Tools/mingw730_64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../.

./../x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `CMakeFiles\

opencv_core.dir/objects.a(vs_version.rc.obj)' is incompatible with i386:x86-64 o

utput

collect2.exe: error: ld returned 1 exit status

mingw32-make2: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1630: b

in/libopencv_core453d.dll] Error 1

mingw32-make1: *** [CMakeFiles\Makefile2:1749: modules/core/CMakeFiles/opencv_

core.dir/all] Error 2

mingw32-make: *** [Makefile](https://so.csdn.net/so/search?q=Makefile&spm=1001.2101.3001.7020):165: all Error 2

解决方法:

Problem is somewhere here (added for 3.3.0 release). Like @mshabunin said take a look on CMAKE_RC_COMPILER variable.

Or try using OPENCV_VS_VERSIONINFO_SKIP=1 CMake option.

cmake里面手动添加:OPENCV_VS_VERSIONINFO_SKIP

cmake界面按钮: add Entry --->>> BOOL --->>> OPENCV_VS_VERSIONINFO_SKIP 打钩

相关推荐
dog250几秒前
信号权重和流分类的对数规律
人工智能·分类·数据挖掘
道一云黑板报2 分钟前
告别提示词工程:为什么“循环工程”才是 AI 编程的未来?
人工智能·驱动开发·软件工程·ai编程
实在智能RPA2 分钟前
大模型驱动航班规划实战:2026年企业级Agent重塑航空业调度逻辑
人工智能·ai
叫我:松哥3 分钟前
基于Python的共享单车租赁数据分析与预测系统,技术栈flask+boostrap+随机森林+XGBoost
人工智能·python·深度学习·算法·随机森林·数据分析·flask
米小虾14 分钟前
2026年6月AI大模型全景报告:GPT-5.6、Claude Opus 4.8、Gemini 3.5,中美AI三足鼎立谁主沉浮?
人工智能
米小虾16 分钟前
AI Agent从Demo到生产:2026年主流Agent开发框架全景对比与实战选型指南
人工智能·agent
Sam092723 分钟前
Agent 如何节省 Token 成本:从 Prompt 到工程监控的系统化优化指南
人工智能·ai
拓朗工控27 分钟前
边缘计算对工控机性能要求有多高?
人工智能·边缘计算·工控机·工业电脑
2501_9065651229 分钟前
AI辅助开发工具链2026版
人工智能
冬奇Lab31 分钟前
Agent 系列(20):Harness 实战——从单文件到生产级模块包
人工智能·agent