Dear all,<br><br>I am using cmake and cmake-gui to cross-compile OpenCV. I wrote the following toolchain file:<br><br>INCLUDE(CMakeForceCompiler)<br><br>SET(CMAKE_CROSSCOMPILING TRUE)<br><br># this one is important<br>SET(CMAKE_SYSTEM_NAME Linux)<br>
#this one not so much<br>SET(CMAKE_SYSTEM_VERSION 1)<br><br># specify the cross compiler<br>SET(CMAKE_C_COMPILER   /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc)<br>SET(CMAKE_CXX_COMPILER /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++)<br>
<br># where is the target environment <br>SET(CMAKE_FIND_ROOT_PATH  /media/rootfs /media/rootfs/usr)<br><br># search for programs in the build host directories<br>SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)<br># for libraries and headers in the target directories<br>
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)<br>SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)<br><br>When i load this in cmake-gui i face some problems. the cross-compilers seem to be correctly identified but not the packages installed in my rootfs. for instance cmake-gui prints:<br>
<br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;">checking for module &#39;libavcodec&#39;</p>
<p style="margin: 0px; text-indent: 0px;">  package &#39;libavcodec&#39; not found</p><br>when libavcodec.so.52 is present in rootfs/usr/lib. The problem also happens with gstreamer, ffmpeg,...<br><br>how can i find out which specific files is cmake looking for?<br>
any other suggestion on this?<br><br>thanks in advance,<br>gonber<br>