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">&lt;<a href="mailto:bjorn.forsman@gmail.com">bjorn.forsman@gmail.com</a>&gt;</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 &lt;<a href="mailto:goncalobernardo@gmail.com">goncalobernardo@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Dear all,<br>
&gt;<br>
&gt; I am using cmake and cmake-gui to cross-compile OpenCV. I wrote the<br>
&gt; following toolchain file:<br>
&gt;<br>
&gt; INCLUDE(CMakeForceCompiler)<br>
&gt;<br>
&gt; SET(CMAKE_CROSSCOMPILING TRUE)<br>
&gt;<br>
&gt; # this one is important<br>
&gt; SET(CMAKE_SYSTEM_NAME Linux)<br>
&gt; #this one not so much<br>
&gt; SET(CMAKE_SYSTEM_VERSION 1)<br>
&gt;<br>
&gt; # specify the cross compiler<br>
&gt; SET(CMAKE_C_COMPILER<br>
&gt; /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc)<br>
&gt; SET(CMAKE_CXX_COMPILER<br>
&gt; /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++)<br>
&gt;<br>
&gt; # where is the target environment<br>
&gt; SET(CMAKE_FIND_ROOT_PATH  /media/rootfs /media/rootfs/usr)<br>
&gt;<br>
&gt; # search for programs in the build host directories<br>
&gt; SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)<br>
&gt; # for libraries and headers in the target directories<br>
&gt; SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)<br>
&gt; SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)<br>
&gt;<br>
&gt; When i load this in cmake-gui i face some problems. the cross-compilers seem<br>
&gt; to be correctly identified but not the packages installed in my rootfs. for<br>
&gt; instance cmake-gui prints:<br>
&gt;<br>
&gt; checking for module &#39;libavcodec&#39;<br>
&gt;<br>
&gt; package &#39;libavcodec&#39; not found<br>
&gt;<br>
&gt; when libavcodec.so.52 is present in rootfs/usr/lib. The problem also happens<br>
&gt; with gstreamer, ffmpeg,...<br>
&gt;<br>
&gt; how can i find out which specific files is cmake looking for?<br>
&gt; 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>