opencv version_string.inc error: stray ‘\’ in program
来源:互联网 发布:计时器软件哪个好 编辑:程序博客网 时间:2024/06/03 15:44
opencv3.0.0和opencv3.1.0都试了,在Ubuntu14.04里编译的时候,出现version_string.inc error: stray ‘\’ in program 编译错误。
第一反应是跟编码有关,而version_string.inc是个二进制压缩文件。
有两点需要注意:
1、修改opencv源码目录里的CMakeLists.txt,替换该行:
OCV_OPTION(BUILD_ZLIB "Build zlib from source" WIN32 OR IOS OR APPLE )
为
OCV_OPTION(BUILD_ZLIB "Build zlib from source" ON) # WIN32 OR IOS OR APPLE )
2、如果是Ubuntu在虚拟机里,opencv源代码不能放在共享文件夹里,需要拷贝到虚拟机内部本地的目录。之前用mac虚拟机,也出现过类似的编码错误,所以最好要编译的源码都放在虚拟机内部目录。
具体编译过程参见:http://www.tuicool.com/articles/nYJrYra
0 0
- opencv version_string.inc error: stray ‘\’ in program
- error: stray ‘/357’ in program
- error: stray '357' in program
- error: stray ‘\1’ in program
- error: stray ‘\302’ in program
- error: stray '\161' in program
- error: stray ‘\302’ in program
- error: stray ‘\357’ in program
- error: stray '\357' in program
- error: stray '\302' in program
- error: stray ‘\302’ in program
- error:stray'\243'in program
- error:stray \357’ in program
- error: stray ‘\357’ in program
- error: stray ‘\357’ in program
- error: stray ‘\342’ in program
- error: stray ‘\357’ in program
- error:stray'\350'in program
- 软件测试基础
- 欢迎使用CSDN-markdown编辑器
- 【codecs.BOM】使用Python程序输出csv格式数据
- Java学习笔记-异常
- 选择排序
- opencv version_string.inc error: stray ‘\’ in program
- Servlet3.0 异步 servlet Comet 技术
- textview 实现跑马灯文字效果
- Socket编程:TCP客户端/服务器应用程序
- setValue:ForKeyPath
- golang入门--一个简单的http client
- first responder与小键盘之间的关系
- elasticsearch+logstash+kibana+marvel
- 美国监狱培训编程,编程学习难