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 打钩

相关推荐
大模型真好玩10 分钟前
DeepSeek Harness 入门很简单(三)——DeepSeek Harness接入工具、MCP、Skill
人工智能·agent·deepseek
NeoGressAI外贸数字化11 分钟前
外贸独立站选型:WordPress还是AI工具?部署实测对比
人工智能
LUSTER凌云光19 分钟前
凌云光荣获 “热成形产业创领先锋奖“,以视觉AI助力汽车智能制造
人工智能·汽车·制造
ITxiaobing202338 分钟前
广告归因场景下的IP情报工程化:提升AppsFlyer P360匹配精度的实践思路
大数据·人工智能·tcp/ip
小艾.pino1 小时前
MiniMax M3顶住新一代多模态大模型的架构与实战
人工智能·架构
DO_Community1 小时前
GPT 6 Astra 已上线 DigitalOcean AI 推理云:AGI 时代的计算机操作模型来了
人工智能·gpt·agi
字节跳动视频云技术团队1 小时前
火山引擎 AI MediaKit X 懂车帝,探索汽车内容智能创作新方式
人工智能·音视频开发
MindUp1 小时前
大模型技术在股票分析场景的应用与工具调研
人工智能·金融
tuanxiang1 小时前
在线AI检测接口误判问题排查与绕过实践
人工智能
suaizai_2 小时前
AI进化:从“回答问题”到“完成任务”
人工智能