OpenCV中文网站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 安装 配置
查看: 799|回复: 4

arm-linux交叉编译环境配置OpenCV的问题

[复制链接]
发表于 2016-6-30 08:58:39 | 显示全部楼层 |阅读模式
大家好,我是在想通过交叉编译环境配置opencv,opencv版本是2.4.3,ubuntu版本是14.04,然后我按照博客上提示的操作步骤用cmake生成交叉编译环境的时候,cmake会弹出这样一个对话框,error in configuration process,project may be invalid,我想请问一下就是出现这样的情况的可能性大概有哪些,我按照网上提示的方法基本都尝试了一下,还是会有问题存在,一直出现上述问题,我把目前出现的问题如下面提示,不知是否可以给出指教呢,其实很着急:
The CXX compiler identification is unknown
The C compiler identification is unknown
System is unknown to cmake, create:
Platform/arm-linux to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to cmake@www.cmake.org.
Check for working CXX compiler: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++
System is unknown to cmake, create:
Platform/arm-linux to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
Check for working CXX compiler: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++ -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /usr/local/arm-opencv/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3668713259/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3668713259.dir/build.make
  CMakeFiles/cmTryCompileExec3668713259.dir/build
  make[1]: Entering directory `/usr/local/arm-opencv/CMakeFiles/CMakeTmp'
  /usr/bin/cmake -E cmake_progress_report
  /usr/local/arm-opencv/CMakeFiles/CMakeTmp/CMakeFiles 1
  Building CXX object
  CMakeFiles/cmTryCompileExec3668713259.dir/testCXXCompiler.cxx.obj
  /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-g++ -o
  CMakeFiles/cmTryCompileExec3668713259.dir/testCXXCompiler.cxx.obj -c
  /usr/local/arm-opencv/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
  /opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/as:
  error while loading shared libraries: libz.so.1: cannot open shared object
  file: No such file or directory
  make[1]: ***
  [CMakeFiles/cmTryCompileExec3668713259.dir/testCXXCompiler.cxx.obj] Error 1
  make[1]: Leaving directory `/usr/local/arm-opencv/CMakeFiles/CMakeTmp'
  make: *** [cmTryCompileExec3668713259/fast] Error 2
  CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
  CMakeLists.txt:61 (project)
Configuring incomplete, errors occurred!
See also "/usr/local/arm-opencv/CMakeFiles/CMakeOutput.log".
See also "/usr/local/arm-opencv/CMakeFiles/CMakeError.log".

回复

使用道具 举报

发表于 2016-7-4 08:42:17 | 显示全部楼层
帮顶,我也是一直出现问题,不知道楼主解决没有
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-7-4 09:01:10 | 显示全部楼层
已解决
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-7-4 09:01:15 | 显示全部楼层
已解决
回复 支持 反对

使用道具 举报

发表于 2018-7-7 21:10:02 | 显示全部楼层

楼主怎么解决的,可以分享一下?
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|blog|OpenCV中文网站 ( 粤ICP备13079875号-2

GMT+8, 2018-9-24 06:00 , Processed in 0.026592 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表