installing opencv

shriya
I am using arm mini 6410. I tried to install opencv several times but it
failed. I followed the steps given in opencv documentation. 
http://docs.opencv.org/doc/tutorials/introduction/crosscompilation/arm_c...

The following error appears- 

[root@localhost opencv-2.4.10]# cmake
-DCMAKE_TOOLCHAIN_FILE=/opencv/opencv-2.4.10/platforms/linux/arm-gnueabi.toolcha
in.cmake
/opencv/opencv-2.4.10/
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- Check for working CXX compiler: arm-linux-gnueabihf-g++-4.6
CMake Error: your CXX compiler: "arm-linux-gnueabihf-g++-4.6" was not
found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: arm-linux-gnueabihf-g++-4.6 -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:54
(message):
  The C++ compiler "arm-linux-gnueabihf-g++-4.6" is not able to compile a
  simple test program.

  It fails with the following output:

 CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:56 (project)

CMake Error: your CXX compiler: "arm-linux-gnueabihf-g++-4.6" was not
found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your C compiler: "arm-linux-gnueabihf-gcc-4.6" was not found. 
 Please set CMAKE_C_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!

I specified CMAKE_C_COMPILER and CMAKE_CXX_COMPILER environment variables
to /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc and arm-linux-g++
respectively but it didn't work. Does that mean that it works only with
arm-linux-gcc-4.6?  

Can someone please help me?

davef
All I can suggest are a few hints as I have not done this before:

- does the mini6410 support hardware floating point?
- have you checked that make (cmake in your case) can actually find the
compiler?
- are you sure the directory is called ../toolschain/... looks misspelt to
me

This procedure sounds like you end up with OpenCV to run on some generic
ARM based platform.  I guess you are trying to modify it to work for the
mini6410.

Can I assume you have checked the 5 pages of hits on this site and the
24,500 hits on Google?

Good luck!

vinay
http://idmsj.wordpress.com/2012/11/23/script-for-opencv-installation-on-...




http://docs.opencv.org/doc/tutorials/introduction/crosscompilation/arm_c...