Unicamente tiene que cambiar los #include de la versión 2.3 que serán<div><br></div><div>#include &lt;opencv2/....&gt;</div><div><br></div><div>y ponerlos con al versión que tengas será algo como:<div><br></div><div>#include &lt;cv.h&gt;</div>
<div>#include &lt;core.h&gt;</div><div><br></div><div>Álex<br><div><br><div class="gmail_quote">2012/6/4 Julio Guillén <span dir="ltr">&lt;<a href="mailto:julio.guillen@gmail.com" target="_blank">julio.guillen@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">¿Te obliga a tener OpenCv 2.3.1 para poder hacer el make correctamente? Al compilar el componente RECORDER me da el error que os pongo al final. Yo tengo OpenCv 2.0 instalado desde el paquete deb de jderobot.<br>
<br>El fallo obtenido es el siguiente:<br>

<br>[ 80%] Building CXX object ../../../libs/colorspaces/CMakeFiles/colorspacesmm.dir/imagecv.cpp.o<br>/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:5:39: error: opencv2/highgui/highgui.hpp: No existe el fichero o el directorio<br>


/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp: In static member function ‘static colorspaces::ImageRGB8 colorspaces::ImageRGB8::read(const std::string&amp;)’:<br>/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:92: error: ‘imread’ is not a member of ‘cv’<br>


/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp: In member function ‘bool colorspaces::ImageRGB8::write(const std::string&amp;, const std::vector&lt;int, std::allocator&lt;int&gt; &gt;&amp;)’:<br>/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:100: error: ‘imwrite’ is not a member of ‘cv’<br>


/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp: In static member function ‘static colorspaces::ImageGRAY8 colorspaces::ImageGRAY8::read(const std::string&amp;)’:<br>/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:257: error: ‘imread’ is not a member of ‘cv’<br>


/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp: In member function ‘bool colorspaces::ImageGRAY8::write(const std::string&amp;, const std::vector&lt;int, std::allocator&lt;int&gt; &gt;&amp;)’:<br>/home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:261: error: ‘imwrite’ is not a member of ‘cv’<br>


make[2]: *** [../../../libs/colorspaces/CMakeFiles/colorspacesmm.dir/imagecv.cpp.o] Error 1<br>make[1]: *** [../../../libs/colorspaces/CMakeFiles/colorspacesmm.dir/all] Error 2<br>make: *** [all] Error 2<br><br>
<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>
<br></blockquote></div><br></div></div></div>