logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

OpenCV on IGEP

posted in Uncategorized
Monday, February 27 2012, 09:36 PM
p_bolle1
p_bolle1
Offline
0
Hello, I\\\'m trying to compile the OpenCV library for applications running on the IGEPv2. I boot the IGEP from SD card with the latest poky software image as described on [url=http://labs.igep.es/index.php/Update_the_PRE-INSTALLED_software_image_to_a_current_release]http://labs.igep.es/index.php/Update_th ... nt_release[/url] . I use the Ubuntu IGEP SDK with poky toolchain version 3.2.1 . I downloaded the OpenCV 2.0.0 tarball from [url=http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.0]http://sourceforge.net/projects/opencvl ... v-unix/2.0[/url] . This is how I configured OpenCV for cross-compilation:
>source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi >export TGT_DIR=/home/pieter/ImageProcessing/opencv_igep >make uninstall && make clean >./configure --prefix=$TGT_DIR --host=arm-none-linux-gnueabi CPPFLAGS=-I$TGT_DIR/include LDFLAGS=-L$TGT_DIR/lib --with-python=no --with-ffmpeg=no --with-imageio=no --with-gtk=no --with-carbon=no --with-unicap=no --with-gthread=no --without-v4l --disable-apps
So the result of the OpenCV configuration was this:
General configuration ================================================ CXX: arm-none-linux-gnueabi-g++ CXXCPP: arm-none-linux-gnueabi-g++ -E CPPFLAGS: -I/home/pieter/ImageProcessing/opencv_igep/include CXXFLAGS: LDFLAGS: -L/home/pieter/ImageProcessing/opencv_igep/lib Install path: /home/pieter/ImageProcessing/opencv_igep Debug flags Optimization flags -DNDEBUG -O2 -fomit-frame-pointer MMX/SSE/SSE2/SSE3: OpenMP support: External BLAS & LAPACK: no HighGUI configuration ================================================ Windowing system -------------- Use Carbon / Mac OS X: no Use gtk+ 2.x: no Use gthread: no Image I/O --------------------- Use ImageIO / Mac OS X: no Use libjpeg: yes Use zlib: yes Use libpng: yes Use libtiff: no Use libjasper: no Use libIlmImf/OpenEXR: no Video I/O --------------------- Use QuickTime / Mac OS X: no Use xine: no Use gstreamer: no Use ffmpeg: no Use dc1394 & raw1394: no Use dc1394_v2 & raw1394: no Use v4l: no Use v4l2: no Use unicap: no Wrappers for other languages ========================================= SWIG Python no Octave no Additional build settings ============================================ Build demo apps no
Then I runned \"make\", and it starts off good. But after a while, the compiler exits with these error messages:
/bin/sh ../libtool --tag=CXX --mode=link arm-none-linux-gnueabi-g++ -O2 -fomit-frame-pointer -L/home/pieter/ImageProcessing/opencv_igep/lib -o lib_flann.la dist.lo index_testing.lo flann.lo logger.lo random.lo saving.lo -lrt -lz -lpthread -ldl -lm /bin/grep: /home/eballetbo/release/purple-3.2/build/tmp-poky/cross/armv7a/arm-none-linux-gnueabi/lib/libstdc++.la: No such file or directory /bin/sed: can\\\'t read /home/eballetbo/release/purple-3.2/build/tmp-poky/cross/armv7a/arm-none-linux-gnueabi/lib/libstdc++.la: No such file or directory libtool: link: `/home/eballetbo/release/purple-3.2/build/tmp-poky/cross/armv7a/arm-none-linux-gnueabi/lib/libstdc++.la\\\' is not a valid libtool archive make[2]: *** [lib_flann.la] Error 1 make[2]: Leaving directory `/home/pieter/ImageProcessing/OpenCV-2.0.0/3rdparty\\\' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pieter/ImageProcessing/OpenCV-2.0.0\\\' make: *** [all] Error 2
It seems to me that libtool searches for files that aren\\\'t on my pc. I checked my environment variables and that was not the problem. There must be something wrong with the toolchain. Does anyone know how I can solve this problem?
Responses (2)
  • Accepted Answer

    miibpa
    miibpa
    Offline
    Wednesday, February 29 2012, 06:18 PM - #permalink
    0
    Maybe it\\\'s useful for you, I used linaro distribution and this manual [url=http://www.samontab.com/web/2010/04/installing-opencv-2-1-in-ubuntu/]http://www.samontab.com/web/2010/04/ins ... in-ubuntu/[/url] and it works perfectly.
    The reply is currently minimized Show
  • Accepted Answer

    p_bolle1
    p_bolle1
    Offline
    Tuesday, February 28 2012, 01:56 PM - #permalink
    0
    I used another toolchain to compile OpenCV. It works now, but I had to cross-compile libz, libpng and libjpeg first, which the poky toolchain already had. It seems I\\\'m not the only one having this kind of problems with this toolchain. It would be awesome if someone could solve this problem, because the poky toolchain provides many useful libraries.
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat