Note that there are some explanatory texts on larger screens.

plurals
  1. POBuild opencv application for ARM on x86
    primarykey
    data
    text
    <p>I have problem with building aplication with opencv library for ARM. I installed Opencv 2.4.6.1 for my pc with helping this a tutorial <a href="http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation" rel="nofollow">http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation</a></p> <p>After that i try build example for my pc:</p> <pre><code>gcc main.c -o main ´pkg-config --libs --clags opencv´ -lpthread </code></pre> <p>It works.</p> <p>Next, i install arm-linux-gnueabihf-gcc, wrote example and tryied it. It works.</p> <p>now i make opencv library for ARM</p> <pre><code>cd /opt/opencv-2.4.6.1/platforms/linux mkdir build_hardfp pico arm-gnueabi.toolchain.cmake change 4.6 to 4.7.2 cd build_hardfp cmake -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi.toolchain.cmake -DWITH_TBB=OFF -DWITH_QT=OFF -D SOFTFP=OFF -D WITH_V4L=ON -D WITH_OPENGL=ON –D CMAKE_BUILD_TYPE=RELEASE –D BUILD_SHARED_LIBS=OFF -D CMAKE_INSTALL_PREFIX=/opt/opencv-2.4.6.1/rpi ../../.. make make install </code></pre> <p>And now my problem:</p> <p>I try build my example</p> <pre><code>arm-linux-gnueabihf-gcc -o main main.c -lpthread -I/opt/opencv-2.4.6.1/rpi/include -I/opt/opencv-2.4.6.1/rpi/include/opencv -I/opt/opencv-2.4.6.1/rpi/lib -L/opt/opencv-2.4.6.1/rpi/ -lcv -lhighgui </code></pre> <p>main.c: In function ‘main’: main.c:12:8: warning: assignment makes pointer from integer without a cast [enabled by default] /home/honza/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lcv /home/honza/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lhighgui collect2: error: ld returned 1 exit status</p> <p>Probably i must have all the dependencies compile for ARM architecture. I think, i took care of this in previous steps, with using cmake. Maybe i didn't set paths.</p> <p>What am I doing wrong and how to fix it?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload