yes. any other ideas?<div><br></div><div>thanks,</div><div>gonçalo<br><br><div class="gmail_quote">On Wed, Aug 17, 2011 at 3:49 PM, Bjørn Forsman <span dir="ltr"><<a href="mailto:bjorn.forsman@gmail.com">bjorn.forsman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2011/8/17 Gonçalo Bernardo <<a href="mailto:goncalobernardo@gmail.com">goncalobernardo@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Dear all,<br>
><br>
> I am using cmake and cmake-gui to cross-compile OpenCV. I wrote the<br>
> 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<br>
> /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc)<br>
> SET(CMAKE_CXX_COMPILER<br>
> /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<br>
> to be correctly identified but not the packages installed in my rootfs. for<br>
> instance cmake-gui prints:<br>
><br>
> checking for module 'libavcodec'<br>
><br>
> package 'libavcodec' not found<br>
><br>
> when libavcodec.so.52 is present in rootfs/usr/lib. The problem also happens<br>
> 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>
</div></div>Have you tried without this:<br>
<div class="im"><br>
INCLUDE(CMakeForceCompiler)<br>
SET(CMAKE_CROSSCOMPILING TRUE)<br>
<br>
</div>Best regards,<br>
<font color="#888888">Bjørn Forsman<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>.::Gonber::.<br>
</div>