<p>Hola Oscar, </p>
<p>me alegro que te compilase al final. Como siempre comento, es complicado conseguir un Cmake que funcione perfecto sea cual sea la configuración de tu sistema, pero poco a poco se irá puliendo y afinando. Ahora mismo no recuerdo cuando definía las librerías a buscar en el Cmake de openCV que componentes mire para ver cuales eran las librerías usadas, quizá esa que comentas la añadí y en realidad no se usa en ninguno. </p>

<p>Lo perfecto sería que a partir de ahora cada componente que desarrollemos dedicarle un poco de tiempo en crear unos CMakeLists lo más óptimos posibles, ya que nadie conoce un componente mejor que el que lo ha desarrollado. Lo comento porque ya me he encontrado alguno nuevo que no lo incorpora, y así echamos por tierra el trabajo realizado hasta ahora, ya que la cadena de compilación volverá a estar rota de este modo. </p>

<p>Un saludo. </p>
<p>Mikel. </p>
<div class="gmail_quote">El 25/01/2013 20:36, &quot;Oscar Garcia&quot; &lt;<a href="mailto:oscar.robotica@linaresdigital.com">oscar.robotica@linaresdigital.com</a>&gt; escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
El 24/01/13 23:25, Mikel Gonzalez Baile escribió:<br>
&gt;<br>
&gt; Buenas Oscar,<br>
&gt;<br>
&gt; para compilar cameraview sigue estos pasos:<br>
&gt;<br>
&gt; desde trunk ejecuta el script:<br>
&gt;<br>
&gt; ./clean_repository<br>
&gt;<br>
&gt; ves al directorio trunk/src/components/cameraview/build y lanza:<br>
&gt;<br>
&gt; cmake .<br>
&gt;<br>
&gt; cuando acabe, lanza:<br>
&gt;<br>
&gt; make<br>
&gt;<br>
&gt; Sí tienes algún problema adjunta la salida producida por el comando<br>
&gt; cmake y por el make.<br>
&gt;<br>
<br>
Ubuntu 12.04 tiene OpenCV 2.3.1 (libopencv-core2.3) y parece no tener<br>
libopencv_ts.so, por lo que me sale:<br>
<br>
redstar@greystar:~/Descargas/jderobot/trunk/src/components/cameraview/build$<br>
cmake .<br>
-- The C compiler identification is GNU<br>
-- The CXX compiler identification is GNU<br>
-- Check for working C compiler: /usr/bin/gcc<br>
-- Check for working C compiler: /usr/bin/gcc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- checking for module &#39;gtkmm-2.4&#39;<br>
--   found gtkmm-2.4, version 2.24.2<br>
-- checking for module &#39;libglademm-2.4&#39;<br>
--   found libglademm-2.4, version 2.6.7<br>
<br>
<br>
<br>
*** ICE ok<br>
*** OpenCV ok<br>
CMake Warning (dev) at<br>
/home/redstar/Descargas/jderobot/trunk/Deps/opencv/CMakeLists.txt:27<br>
(link_directories):<br>
   This command specifies the relative path<br>
<br>
     OpenCV_LIBRARY13-NOTFOUND<br>
<br>
   as a link directory.<br>
<br>
   Policy CMP0015 is not set: link_directories() treats paths relative<br>
to the<br>
   source dir.  Run &quot;cmake --help-policy CMP0015&quot; for policy details.<br>
Use the<br>
   cmake_policy command to set the policy and suppress this warning.<br>
Call Stack (most recent call first):<br>
   CMakeLists.txt:37 (include)<br>
This warning is for project developers.  Use -Wno-dev to suppress it.<br>
<br>
*** Creating CPP interfaces<br>
libcolorspaces.so<br>
CMake Error: The following variables are used in this project, but they<br>
are set to NOTFOUND.<br>
Please set them or make sure they are set and tested correctly in the<br>
CMake files:<br>
OpenCV_LIBRARY13<br>
     linked by target &quot;colorspaces&quot; in directory<br>
/home/redstar/Descargas/jderobot/trunk/src/libs/colorspaces<br>
     linked by target &quot;colorspacesmm&quot; in directory<br>
/home/redstar/Descargas/jderobot/trunk/src/libs/colorspaces<br>
     linked by target &quot;colorspacesmmshare&quot; in directory<br>
/home/redstar/Descargas/jderobot/trunk/src/libs/colorspaces<br>
     linked by target &quot;colorspacesshare&quot; in directory<br>
/home/redstar/Descargas/jderobot/trunk/src/libs/colorspaces<br>
     linked by target &quot;cameraview&quot; in directory<br>
/home/redstar/Descargas/jderobot/trunk/src/components/cameraview<br>
<br>
-- Configuring incomplete, errors occurred!<br>
<br>
He &quot;engañado&quot; a cmake diciendo que OpenCV_LIBRARY13 era el mismo que el<br>
12 y me ha compilado:<br>
<br>
[...]<br>
Scanning dependencies of target cameraview<br>
[ 98%] Building CXX object ../CMakeFiles/cameraview.dir/cameraview.cpp.o<br>
[100%] Building CXX object ../CMakeFiles/cameraview.dir/viewer.cpp.o<br>
Linking CXX executable cameraview<br>
[100%] Built target cameraview<br>
<br>
Es decir, parece ser que realmente colorspaces, colorspacesmm, etc ni<br>
cameraview usan de verdad libopencv_ts.so, deberían eliminarse las<br>
dependencias en cmake, ¿no?.<br>
<br>
Por otro lado, algo he tocado en el servidor cameraserverandroid que<br>
hice que no puedo conectar con él, me sigue diciendo:<br>
redstar@greystar:~/Descargas/jderobot/trunk/src/components/cameraview$<br>
./cameraview --Ice.Config=android.cfg<br>
Loading glade<br>
Invalid proxy<br>
<br>
Seguiré investigando, intentaré subir el código al svn en cuanto pueda<br>
para ver si podéis echarme una mano.<br>
<br>
Un saludo.<br>
_______________________________________________<br>
Jde-developers mailing list<br>
<a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
<a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
</blockquote></div>