opencv2.framework在macox10.10报错
来源:互联网 发布:尖锐湿疹多少钱知乎 编辑:程序博客网 时间:2024/06/05 07:46
报错:
Undefined symbols for architecture armv7s:
"_jpeg_free_small", referenced from:
_free_pool in opencv2(jmemmgr.o)
_self_destruct in opencv2(jmemmgr.o)
"_jpeg_mem_available", referenced from:
_realize_virt_arrays in opencv2(jmemmgr.o)
"_jpeg_free_large", referenced from:
_free_pool in opencv2(jmemmgr.o)
"_jpeg_open_backing_store", referenced from:
_realize_virt_arrays in opencv2(jmemmgr.o)
"_jpeg_get_large", referenced from:
_alloc_large in opencv2(jmemmgr.o)
_realize_virt_arrays in opencv2(jmemmgr.o)
"_jpeg_mem_term", referenced from:
_jinit_memory_mgr in opencv2(jmemmgr.o)
_self_destruct in opencv2(jmemmgr.o)
"_jpeg_mem_init", referenced from:
_jinit_memory_mgr in opencv2(jmemmgr.o)
"_jpeg_get_small", referenced from:
_jinit_memory_mgr in opencv2(jmemmgr.o)
_alloc_small in opencv2(jmemmgr.o)
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:
So here's a little workaround. The problem is because the XCode project is unable to link to the libjpeg.a library. So thats why you get the above errors when you compile the project.
Follow these steps :
1. Go to : [[http://sourceforge.net/projects/libjpeg-turbo/files/1.4.0/]] and download the libjpeg-turbo-1.4.0.dmg (3.8 MB) file.
2. Install the package. Once its done you will find the installed files under this path : /opt/libjpeg-turbo/lib
3. Open up your terminal and type the following command : lipo -info /opt/libjpeg-turbo/lib/libjpeg.a
4. If the terminal shows the following the output after running the command then it means, you can use the library for your iOS project(armv7/armv7s) * Architectures in the fat file: /opt/libjpeg-turbo/lib/libturbojpeg.a are: i386 x86_64 armv6 armv7 armv7s arm64*
5. Use finder to navigate to : /opt/libjpeg-turbo/lib and copy libjpeg.a and place it in your project folder.
6. Head over to your XCode project -> Click on Project Name -> Targets -> General -> Linked frameworks and libraries -> Click on the add button placed at the bottom -> include the libjpeg.a file
7. Compile the project. It shouldn't show any more linker errors.
- opencv2.framework在macox10.10报错
- android 在framework层增加服务后编译报错
- framework 编译报错
- SenTestingKit.framework的报错!
- framework不兼容报错
- 安装Visual studio 在安装Microsoft .NET Framework 4.0报错
- dotfuscator 在混淆.Net Framework 4.0以上版本的时候报错的解决方法
- OpenCV2.3.1运行程序报错“计算机丢失tbb_debug.dll”
- OpenCV2.3.1运行程序报错“计算机丢失tbb_debug.dll”
- OpenCV2.3.1运行程序报错“计算机丢失tbb_debug.dll”
- OpenCV2.3.1运行程序报错“计算机丢失tbb_debug.dll”
- OpenCV2.3.1运行程序报错“计算机丢失tbb_debug.dll”
- OC报错:framework not found Reveal
- win2003安装.NET Framework 3.5报错
- iOS framework 使用单元测试报错解决
- OC报错:framework not found Reveal
- OpenCV2.3.1在Ubuntu11.10上编译错误解决方法
- 在Ubuntu11.10中安装配置OpenCV2.3.1和CodeBlocks
- Android能否实现一键清理后台程序后程序自启动(类似QQ微信不被清理软件杀死)
- ZOJ Problem Set - 3487||Ordinal Numbers
- 【Java/JDBC.ORM】 jdbc插入大量数据时优化处理
- TreeMap简单示例
- python的subprocess:子程序调用(调用执行其他命令);获取子程序脚本当前路径问题
- opencv2.framework在macox10.10报错
- Android 设定横竖屏,屏幕旋转导致Activity重置问题
- unity2d 动画
- 第三章习题汇总
- 程序员面试——走台阶问题
- kindEditor 在springMvc+freemarker +hibernate 框架中使用 以及使用的时候产生的问题的解决
- 联合体union 与结构体struct
- 图解TCP-IP协议
- 30本互联网相关的电子书