博客
关于我
opencv_core.dir/objects.a(vs_version.rc.obj)‘ is incompatible with i386:x86-64 output
阅读量:792 次
发布时间:2023-02-23

本文共 756 字,大约阅读时间需要 2 分钟。

在编译OpenCV时,可能会遇到如下的错误信息:

i386 architecture of input file 'CMakeFiles\opencv_core.dir\objects.a(vs_version.rc.obj)' is incompatible with i386:x86-64 outputcollect2.exe: error: ld returned 1 exit statusmingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1630: bin/libopencv_core453d.dll] Error 1mingw32-make[1]: *** [CMakeFiles\Makefile2:1749: modules/core/CMakeFiles/opencv_core.dir/all] Error 2mingw32-make: *** [Makefile:165: all] Error 2

这个错误通常与编译器的版本不兼容有关。这个问题在OpenCV 3.3.0版本中被报告过,可能是由于CMake配置的问题。

解决方法是通过CMake参数进行配置,具体步骤如下:

  • 在CMake界面中,找到"add Entry"按钮,点击它选择新建一个布尔选项,名称为OPENCV_VS_VERSIONINFO_SKIP,然后点击“钩选”将其勾选。
  • 这样做可以跳过对Visual Studio版本信息的检查,从而避免上述编译错误。

    需要注意的是,以上方法仅适用于Visual Studio项目。如果使用其他开发环境或不需要Visual Studio支持的功能,建议按照上述步骤进行CMake配置。

    转载地址:http://zqsfk.baihongyu.com/

    你可能感兴趣的文章
    Objective-C实现linear regression线性回归算法(附完整源码)
    查看>>
    Objective-C实现linear search线性搜索算法(附完整源码)
    查看>>
    Objective-C实现Linear search线性搜索算法(附完整源码)
    查看>>
    Objective-C实现LinearSieve线性素数筛选算法 (附完整源码)
    查看>>
    Objective-C实现LinkedListNode链表节点类算法(附完整源码)
    查看>>
    Objective-C实现LinkedList链表算法(附完整源码)
    查看>>
    Objective-C实现local weighted learning局部加权学习算法(附完整源码)
    查看>>
    Objective-C实现logistic regression逻辑回归算法(附完整源码)
    查看>>
    Objective-C实现logistic sigmoid函数(附完整源码)
    查看>>
    Objective-C实现longest Common Substring最长公共子串算法(附完整源码)
    查看>>
    Objective-C实现longest increasing subsequence最长递增子序列算法(附完整源码)
    查看>>
    Objective-C实现longestCommonSubsequence最长公共子序列算法(附完整源码)
    查看>>
    Objective-C实现LongestIncreasingSubsequence最长递增子序列算法(附完整源码)
    查看>>
    Objective-C实现lorenz transformation 洛伦兹变换算法(附完整源码)
    查看>>
    Objective-C实现Lower-Upper Decomposition上下分解算法(附完整源码)
    查看>>
    Objective-C实现LowerCaseConversion小写转换算法(附完整源码)
    查看>>
    Objective-C实现lowest common ancestor最低共同祖先算法(附完整源码)
    查看>>
    Objective-C实现LRU 缓存算法(附完整源码)
    查看>>
    Objective-C实现LRU缓存(附完整源码)
    查看>>
    Objective-C实现LRU(least recently used)算法(附完整源码)
    查看>>