美文网首页
使用OpenCV的一些报错及解决方法

使用OpenCV的一些报错及解决方法

作者: 上尉H借个火 | 来源:发表于2018-03-20 09:42 被阅读0次

    1.报错:

    Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7'

    解决:http://stackoverflow.com/questions/17162975/unsupported-compiler-com-apple-compilers-llvmgcc42-xcode-5-dp

    2.报错:

    "_jpeg_free_small", referenced from:

    解决:http://blog.csdn.net/ioslearner_nana/article/details/45174365

    a.到http://sourceforge.net/projects/libjpeg-turbo/files/1.4.0/ 下载ibjpeg-turbo-1.4.0.dmg(3.8 MB)文件。
    b.安装,一旦完成可以在该路径下找到已经安装的文件 /opt/libjpeg-turbo/lib
    c.打开终端输入命令 lipo -info /opt/libjpeg-turbo/lib/libjpeg.a
    d.如果终端显示以下命令运行后输出,就意味着,你的项目(armv7/armv7s) * Architectures in the fat file: /opt/libjpeg-turbo/lib/libturbojpeg.a are: i386 x86_64 armv6 armv7 armv7s arm64
    e.使用finder来导航到: /opt/libjpeg-turbo/lib,将 libjpeg.a文件添加到你的工程。
    f. XCode-> Targets -> General -> Linked frameworks and libraries -> Click on the add button placed at the bottom -> include the libjpeg.a file
    g.编译项目,问题解决(可能还有问题包这个错误:

    解决方法:在Build Settings搜索 enable_bitcode改为No )

    相关文章

      网友评论

          本文标题:使用OpenCV的一些报错及解决方法

          本文链接:https://www.haomeiwen.com/subject/mippqftx.html