Rooney

OpenCV 2.3.1 on i.MX53QSB

Discussion created by Rooney on Jan 12, 2012
Latest reply on Nov 8, 2012 by hoanganh ngo

Hello!

 

Has anybody experience on running OpenCV on the i.MX53QSB?

 

I'm having troubles during cross-compiling of OpenCV. The following error occurs at about 85%:

Linking CXX executable ../../bin/opencv_traincascade
/home/spiderman/Development/rootfs/lucid/usr/lib/libz.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_traincascade] Error 1
make[1]: *** [modules/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2
make: *** [all] Error 2

 

My system configuration:

Host:
# Ubuntu 10.04

# CMake 2.8.1

# Freescale Toolchain (arm-non-linux-gnueabi-)

 

Target:

# i.MX53QSB

# Ubuntu 10.04 (debootstrap version, not ltib)

 

What I did...

# Unpacking OpenCV 2.3.1

# Created toolchain file witht the following content:

set( CMAKE_SYSTEM_NAME Linux )
set( CMAKE_SYSTEM_PROCESSOR arm )
set( CMAKE_C_COMPILER /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc )
set( CMAKE_CXX_COMPILER /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ )
set( CMAKE_FIND_ROOT_PATH /home/spiderman/Development/rootfs/lucid/ )
# Executing cmake-gui OpenCV-2.3.1

# Disabling almost any feature, just to get rid of any problems caused by libs that are not available

# Added -I /home/spiderman/Development/rootfs/lucid/usr/include -L /home/spiderman/Development/rootfs/lucid/usr/lib to OPENCV_EXTRA_C_FLAGS --> path to the libs and include files on my target system

# Configure and generate are successfull

# make FAILS!!!

 

Any ideas?

Outcomes