Ask Your Question

Revision history [back]

Hi All,

I got some solution for this,

Working environment is Linux Ubuntu 14.04

  1. Download opencv from http://opencv.org
  2. Unzip it
  3. Take linux Arago tool chain
  4. Now download cmake and cmake gui with following commands sudo apt-get install cmake cmake-curses-gui
  5. Next, Make a build library outside the opencv folder mkdir build cd build
  6. Create a file named toolchain.cmake in build folder vim toolchain.cmake
  7. Add the following to toolchain.cmake and save it. set( CMAKE_SYSTEM_NAME Linux ) set( CMAKE_SYSTEM_PROCESSOR arm ) set( CMAKE_C_COMPILER arm-none-linux-gnueabi-gcc ) set( CMAKE_CXX_COMPILER arm-none-linux-gnueabi-g++ )
  8. Export the cross toolchain paths . export PATH=$PATH:../toolchain/bin/

  9. Now run cmake to generate the make file cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake ../opencv-2.4.10

Hi All,

I got some solution for this,

Working environment is Linux Ubuntu 14.04

  1. Download opencv from http://opencv.org
  2. Unzip it
  3. Take linux Arago tool chain
  4. Now download cmake and cmake gui with following commands sudo apt-get install cmake cmake-curses-gui
  5. Next, Make a build library outside the opencv folder mkdir build cd build
  6. Create a file named toolchain.cmake in build folder vim toolchain.cmake
  7. Add the following to toolchain.cmake and save it. set( CMAKE_SYSTEM_NAME Linux ) set( CMAKE_SYSTEM_PROCESSOR arm ) set( CMAKE_C_COMPILER arm-none-linux-gnueabi-gcc ) set( CMAKE_CXX_COMPILER arm-none-linux-gnueabi-g++ )
  8. Export the cross toolchain paths . export PATH=$PATH:../toolchain/bin/

  9. Now run cmake to generate the make file cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake ../opencv-2.4.10../opencv_folder_path

9.Do following steps to configure the components . ccmake . disable ffmpeg here if it is not installed in your system.

  1. Now build the libraries for ARM using make make

  2. Do make install make install.

  3. Done we have build the libraries for ARM. Newly build libraries will be now in build/install/include & build/install/lib

  4. Now copy the cross build libraries to your arm file system to /usr/lib and header files to /usr/include

  5. Write a simple code using opencv like rgb_to_grey conversion. build it and now you can run it on ARM.

  6. just before running cross build binary on ARM export library path as follows LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/lib

  7. Done you have done