This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to install opencv on dm8168evm

hi margarita,

how can i install opencv  library or any other software on dm8168evm.

opkg install opencv  command is also not working on dm8168evm.

kindly let me know the command to install the softwares on the same.

Thanks and Regards,

Mohammed Asif.

  • Hello,

    The instructions to build ARM OpenCV libraries is mentioned here. You need to install all the OpenCV shared libraries in your target filesystem under /usr/lib

     http://processors.wiki.ti.com/index.php/Building_OpenCV_for_ARM_Cortex-A8

    The C6Accel package contains a sample OpenCV application that compares the performance of about 48 OpenCV function on ARM and  on DSP.

    http://processors.wiki.ti.com/index.php/Getting_started_with_C6EZAccel#Building_the_C6EZAccel_Package_and_running_the_test_application

    http://software-dl.ti.com/dsps/dsps_public_sw/c6000/web/c6accel/latest/index_FDS.html

    Best Regards,

    Margarita

  • hi ,

    thanks for the fast reply.

    but unable to install.

    root@dm816x-evm:/usr/lib# sudo apt-get install cmake cmake-curses-gui

    -sh: sudo: not found


    root@dm816x-evm:/usr/lib# apt-get install cmake cmake-curses-gui
    -sh: apt-get: not found
    root@dm816x-evm:/usr/lib#

    Thanks and Regards,

    Mohammed Asif.

  • Hello,

    • Update Ubuntu to install and setup cmake
      $ sudo apt-get install cmake cmake-curses-gui
    

    This is on the host machine.

    Best Regards,
    Margarita
  • hi,

    unable to find the Codesourcery 2010.12 from below link. and how to download the free version instead of trail for the same. any link?

    ---------------------------------------------------------------------------------------------------------------------

    tried with Sourcery_Gxx_Lite_for_ARM_GNU_Linux but it shows error

    • When cross compiling for ARM, I found that some items do not build. So, we need to use the cmake curses gui to customize cmake output and re-generate the makefile before we can build. Now launch the cmake curses gui to customize the make file generation
     ubuntu host $ ccmake .

    Page 1 of 1
    CMAKE_BUILD_TYPE
    CMAKE_CONFIGURATION_TYPES Debug;Release
    CMAKE_INSTALL_PREFIX /root/build
    CMAKE_VERBOSE OFF

    -----------------------------------------------------------------------------------------------

    Note: Do not forget to keep the USE_O2 option ON in the configuration to take adavntage of neon acceleration that you added to this option

    • Now, press 'c' to configure and 'g' to generate the makefiles again.
    • Now you are ready to build OpenCV. Run make from the command line and it should generate the OpenCV libraries. You can try to customize the build by turning on the various options that we disabled earlier and see if it builds for you.

    type c to configure. it shows error---

    CMake Error: your C compiler: "arm-none-linux-gnueabi-gcc" was not found.
    Please set CMAKE_C_COMPILER to a valid compiler path or name.

    CMake Error: Internal CMake error, TryCompile configure of cmake failed

    CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50
    (MESSAGE):
    The C compiler "arm-none-linux-gnueabi-gcc" 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):

    Errors occurred during the last pass
    CMake Version 2.8.0
    Press [e] to exit help

    Thanks and regards,

    Mohammed asif.

  • hi,

    check toolchain.cmake

    root@ubuntu:~/build# cat toolchain.cmake
    set( CMAKE_SYSTEM_NAME Linux )
    set( CMAKE_SYSTEM_PROCESSOR arm )
    set( CMAKE_C_COMPILER /home/user/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc )
    set( CMAKE_CXX_COMPILER /home/user/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ )
    set( CMAKE_FIND_ROOT_PATH /root/targetfs )

    Thanks and Regards,

    Mohammed Asif.