[Jderobot-dev] Mejoras en CMake

Alejandro Hernández ahcorde en gmail.com
Lun Jun 4 15:41:36 CEST 2012


Unicamente tiene que cambiar los #include de la versión 2.3 que serán

#include <opencv2/....>

y ponerlos con al versión que tengas será algo como:

#include <cv.h>
#include <core.h>

Álex

2012/6/4 Julio Guillén <julio.guillen en gmail.com>

> ¿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.
>
> El fallo obtenido es el siguiente:
>
> [ 80%] Building CXX object
> ../../../libs/colorspaces/CMakeFiles/colorspacesmm.dir/imagecv.cpp.o
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:5:39:
> error: opencv2/highgui/highgui.hpp: No existe el fichero o el directorio
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp: In static
> member function ‘static colorspaces::ImageRGB8
> colorspaces::ImageRGB8::read(const std::string&)’:
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:92: error:
> ‘imread’ is not a member of ‘cv’
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp: In member
> function ‘bool colorspaces::ImageRGB8::write(const std::string&, const
> std::vector<int, std::allocator<int> >&)’:
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:100: error:
> ‘imwrite’ is not a member of ‘cv’
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp: In static
> member function ‘static colorspaces::ImageGRAY8
> colorspaces::ImageGRAY8::read(const std::string&)’:
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:257: error:
> ‘imread’ is not a member of ‘cv’
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp: In member
> function ‘bool colorspaces::ImageGRAY8::write(const std::string&, const
> std::vector<int, std::allocator<int> >&)’:
> /home/jguillen/jderobot/trunk/src/libs/colorspaces/imagecv.cpp:261: error:
> ‘imwrite’ is not a member of ‘cv’
> make[2]: ***
> [../../../libs/colorspaces/CMakeFiles/colorspacesmm.dir/imagecv.cpp.o]
> Error 1
> make[1]: *** [../../../libs/colorspaces/CMakeFiles/colorspacesmm.dir/all]
> Error 2
> make: *** [all] Error 2
>
>
> _______________________________________________
> Jde-developers mailing list
> Jde-developers en gsyc.es
> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://gsyc.escet.urjc.es/pipermail/jde-developers/attachments/20120604/67c5681f/attachment.htm 


More information about the Jde-developers mailing list