Ask Your Question

Ham jeong-hun's profile - activity

2014-12-26 03:25:34 -0600 asked a question opencv .so file error

hi, I'm korean technical college student. I success native compile using OpenCV with gcc and CMake(http://docs.opencv.org/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html). But I have a problem when cross-compiling(Host Ubuntu <---> jetson tk1).

as follows :

root@ubuntu-HP-Compaq-8200-Elite-CMT-PC:/home/ubuntu/Documents/Display image5# cmake -DCMAKE_TOOmatLCHAIN_FILE=toolchain-arm-linux-gnueabi.cmake . -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/arm-linux-gnueabihf-gcc -- Check for working C compiler: /usr/bin/arm-linux-gnueabihf-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/arm-linux-gnueabihf-g++ -- Check for working CXX compiler: /usr/bin/arm-linux-gnueabihf-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found CUDA: /usr/local/cuda-6.5 (found suitable exact version "6.5") -- Configuring done -- Generating done -- Build files have been written to: /home/ubuntu/Documents/Display image5

root@ubuntu-HP-Compaq-8200-Elite-CMT-PC:/home/ubuntu/Documents/Display image5# make Scanning dependencies of target DisplayImage [100%] Building CXX object CMakeFiles/DisplayImage.dir/DisplayImage.cpp.o Linking CXX executable DisplayImage /usr/local/lib/libopencv_videostab.so.2.4.10: file not recognized: File format not recognized collect2: error: ld returned 1 exit status make[2]: * [DisplayImage] Error 1 make[1]: [CMakeFiles/DisplayImage.dir/all] Error 2 make: ** [all] Error 2

please help me.