[Jderobot-dev] Dificultades con OpenCV 2.4.2
Juan
jnbosgos en gmail.com
Lun Oct 22 12:12:42 CEST 2012
Hola a todos,
hasta ahora he estado utilizando OpenCV 2.3.1 y los componentes de
jderobot han ido funcionado; pero al intentar actualizar a OpenCV 2.4.2, me
han surgido ciertas dificultades que no sé como solucionar para hacer
funcionar los componentes de jderobot que estoy utilizando: CameraServer,
CameraView.
La instalación de OpenCV 2.4.2 va bien; y al intentar compilar el
componente CameraServer de la revisión 790 de jderobot, el 'cmake .' en la
carpeta ../build de CameraServer, también va bien; los problemas surgen al
hacer el 'make', en el 100% cuando toca el linkado a las librerías,
concretamente el problema está con colorspaces. En cambio, volviendo a
instalar OpenCV 2.3.1, todo sigue funcionando. Os copio la salida por
terminal del make:
jnbosgos en teleko:~/pfc/jderobot/trunk/src/components/cameraserver/build$ make
[ 1%] Generating ptencoders.cpp, ptencoders.h
[ 2%] Generating bodymotors.cpp, bodymotors.h
[ 3%] Generating common.cpp, common.h
[ 4%] Generating pointcloud.cpp, pointcloud.h
[ 5%] Generating jointmotor.cpp, jointmotor.h
[ 6%] Generating body.cpp, body.h
[ 7%] Generating camera.cpp, camera.h
[ 8%] Generating image.cpp, image.h
[ 9%] Generating encoders.cpp, encoders.h
[ 10%] Generating motors.cpp, motors.h
[ 11%] Generating kinectleds.cpp, kinectleds.h
[ 12%] Generating wiimote.cpp, wiimote.h
[ 13%] Generating containers.cpp, containers.h
[ 14%] Generating sonars.cpp, sonars.h
[ 15%] Generating datetime.cpp, datetime.h
[ 16%] Generating jcm.cpp, jcm.h
[ 17%] Generating exceptions.cpp, exceptions.h
[ 18%] Generating pose3dmotors.cpp, pose3dmotors.h
[ 19%] Generating bodymovements.cpp, bodymovements.h
[ 20%] Generating laser.cpp, laser.h
[ 21%] Generating bodyencoders.cpp, bodyencoders.h
[ 22%] Generating ptmotors.cpp, ptmotors.h
[ 23%] Generating varcolor.cpp, varcolor.h
[ 24%] Generating pose3dencoders.cpp, pose3dencoders.h
[ 25%] Generating cloudPoints.cpp, cloudPoints.h
Scanning dependencies of target JderobotInterfaces
[ 25%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/bodymotors.cpp.o
[ 26%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/common.cpp.o
[ 27%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/pointcloud.cpp.o
[ 28%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/jointmotor.cpp.o
[ 29%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/body.cpp.o
[ 30%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/camera.cpp.o
[ 31%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/image.cpp.o
[ 32%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/encoders.cpp.o
[ 33%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/motors.cpp.o
[ 34%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/kinectleds.cpp.o
[ 35%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/wiimote.cpp.o
[ 36%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/containers.cpp.o
[ 37%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/sonars.cpp.o
[ 38%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/datetime.cpp.o
[ 39%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/jcm.cpp.o
[ 40%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/exceptions.cpp.o
[ 41%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/pose3dmotors.cpp.o
[ 42%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/bodymovements.cpp.o
[ 43%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/laser.cpp.o
[ 44%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/bodyencoders.cpp.o
[ 45%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/ptmotors.cpp.o
[ 46%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/varcolor.cpp.o
[ 47%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/pose3dencoders.cpp.o
[ 48%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/cloudPoints.cpp.o
[ 49%] Building CXX object
../../../interfaces/cpp/jderobot/CMakeFiles/JderobotInterfaces.dir/ptencoders.cpp.o
Linking CXX shared library libJderobotInterfaces.so
[ 49%] Built target JderobotInterfaces
Scanning dependencies of target bgfgsegmentation
[ 50%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentation.dir/bgfg_codebook.cpp.o
[ 50%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentation.dir/bgfg_common.cpp.o
[ 51%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentation.dir/bgfg_exp.cpp.o
[ 52%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentation.dir/bgfg_fixed.cpp.o
[ 53%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentation.dir/bgfg_mean.cpp.o
[ 54%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentation.dir/bgfg_mode.cpp.o
[ 55%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentation.dir/bgmodelfactory.cpp.o
Linking CXX static library libbgfgsegmentation.a
[ 55%] Built target bgfgsegmentation
Scanning dependencies of target bgfgsegmentationhsare
[ 56%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentationhsare.dir/bgfg_codebook.cpp.o
[ 57%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentationhsare.dir/bgfg_common.cpp.o
[ 58%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentationhsare.dir/bgfg_exp.cpp.o
[ 59%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentationhsare.dir/bgfg_fixed.cpp.o
[ 60%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentationhsare.dir/bgfg_mean.cpp.o
[ 61%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentationhsare.dir/bgfg_mode.cpp.o
[ 62%] Building CXX object
../../../libs/bgfgsegmentation/CMakeFiles/bgfgsegmentationhsare.dir/bgmodelfactory.cpp.o
Linking CXX shared library libbgfgsegmentation.so
[ 62%] Built target bgfgsegmentationhsare
Scanning dependencies of target jderobotice
[ 63%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderobotice.dir/component.cpp.o
[ 64%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderobotice.dir/context.cpp.o
[ 65%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderobotice.dir/application.cpp.o
[ 66%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderobotice.dir/componentthread.cpp.o
[ 67%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderobotice.dir/catchutils.cpp.o
[ 68%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderobotice.dir/subsystemthread.cpp.o
[ 69%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderobotice.dir/interfaceconnect.cpp.o
Linking CXX static library libjderobotice.a
[ 69%] Built target jderobotice
Scanning dependencies of target jderoboticeshare
[ 70%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderoboticeshare.dir/component.cpp.o
[ 71%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderoboticeshare.dir/context.cpp.o
[ 72%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderoboticeshare.dir/application.cpp.o
[ 73%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderoboticeshare.dir/componentthread.cpp.o
[ 74%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderoboticeshare.dir/catchutils.cpp.o
[ 75%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderoboticeshare.dir/subsystemthread.cpp.o
[ 76%] Building CXX object
../../../libs/jderobotice/CMakeFiles/jderoboticeshare.dir/interfaceconnect.cpp.o
Linking CXX shared library libjderobotice.so
[ 76%] Built target jderoboticeshare
Scanning dependencies of target colorspaces
[ 77%] Building C object
../../../libs/colorspaces/CMakeFiles/colorspaces.dir/rgb2hsv.c.o
[ 78%] Building C object
../../../libs/colorspaces/CMakeFiles/colorspaces.dir/rgb2yuv.c.o
Linking C static library libcolorspaces.a
[ 78%] Built target colorspaces
Scanning dependencies of target colorspacesmm
[ 79%] Building CXX object
../../../libs/colorspaces/CMakeFiles/colorspacesmm.dir/imagecv.cpp.o
Linking CXX static library libcolorspacesmm.a
[ 79%] Built target colorspacesmm
Scanning dependencies of target colorspacesmmshare
[ 80%] Building CXX object
../../../libs/colorspaces/CMakeFiles/colorspacesmmshare.dir/imagecv.cpp.o
Linking CXX shared library libcolorspacesmm.so
[ 80%] Built target colorspacesmmshare
Scanning dependencies of target colorspacesshare
[ 81%] Building C object
../../../libs/colorspaces/CMakeFiles/colorspacesshare.dir/rgb2hsv.c.o
[ 82%] Building C object
../../../libs/colorspaces/CMakeFiles/colorspacesshare.dir/rgb2yuv.c.o
Linking C shared library libcolorspaces.so
[ 82%] Built target colorspacesshare
Scanning dependencies of target jderobotutil
[ 83%] Building CXX object
../../../libs/jderobotutil/CMakeFiles/jderobotutil.dir/observer.cpp.o
[ 84%] Building CXX object
../../../libs/jderobotutil/CMakeFiles/jderobotutil.dir/paramdict.cpp.o
[ 85%] Building CXX object
../../../libs/jderobotutil/CMakeFiles/jderobotutil.dir/time.cpp.o
Linking CXX static library libjderobotutil.a
[ 85%] Built target jderobotutil
Scanning dependencies of target jderobotutilshare
[ 86%] Building CXX object
../../../libs/jderobotutil/CMakeFiles/jderobotutilshare.dir/observer.cpp.o
[ 87%] Building CXX object
../../../libs/jderobotutil/CMakeFiles/jderobotutilshare.dir/paramdict.cpp.o
[ 88%] Building CXX object
../../../libs/jderobotutil/CMakeFiles/jderobotutilshare.dir/time.cpp.o
Linking CXX shared library libjderobotutil.so
[ 88%] Built target jderobotutilshare
Scanning dependencies of target progeo
[ 89%] Building C object
../../../libs/progeo/CMakeFiles/progeo.dir/progeo.c.o
/home/jnbosgos/pfc/jderobot/trunk/src/libs/progeo/progeo.c:583: warning:
conflicting types for ‘update_camera_matrix’
/home/jnbosgos/pfc/jderobot/trunk/src/libs/progeo/progeo.c:568: note:
previous implicit declaration of ‘update_camera_matrix’ was here
Linking C static library libprogeo.a
[ 89%] Built target progeo
Scanning dependencies of target progeoshare
[ 90%] Building C object
../../../libs/progeo/CMakeFiles/progeoshare.dir/progeo.c.o
/home/jnbosgos/pfc/jderobot/trunk/src/libs/progeo/progeo.c:583: warning:
conflicting types for ‘update_camera_matrix’
/home/jnbosgos/pfc/jderobot/trunk/src/libs/progeo/progeo.c:568: note:
previous implicit declaration of ‘update_camera_matrix’ was here
Linking C shared library libprogeo.so
[ 90%] Built target progeoshare
Scanning dependencies of target pioneer
[ 91%] Building C object
../../../libs/pioneer/CMakeFiles/pioneer.dir/pioneer.c.o
Linking C static library libpioneer.a
[ 91%] Built target pioneer
Scanning dependencies of target pioneershare
[ 92%] Building C object
../../../libs/pioneer/CMakeFiles/pioneershare.dir/pioneer.c.o
Linking C shared library libpioneer.so
[ 92%] Built target pioneershare
Scanning dependencies of target fuzzylib
[ 93%] Building C object
../../../libs/fuzzylib/CMakeFiles/fuzzylib.dir/fuzzylib.c.o
Linking C static library libfuzzylib.a
[ 93%] Built target fuzzylib
Scanning dependencies of target fuzzyshare
[ 94%] Building C object
../../../libs/fuzzylib/CMakeFiles/fuzzyshare.dir/fuzzylib.c.o
Linking C shared library libfuzzylib.so
[ 94%] Built target fuzzyshare
Scanning dependencies of target visionlib
[ 95%] Building CXX object
../../../libs/visionlib/CMakeFiles/visionlib.dir/cvfast.cpp.o
[ 96%] Building CXX object
../../../libs/visionlib/CMakeFiles/visionlib.dir/geometry.cpp.o
[ 97%] Building CXX object
../../../libs/visionlib/CMakeFiles/visionlib.dir/image.cpp.o
[ 98%] Building CXX object
../../../libs/visionlib/CMakeFiles/visionlib.dir/linesDetection.cpp.o
Linking CXX shared library libvisionlib.so
[ 98%] Built target visionlib
Scanning dependencies of target cameraserver
[ 99%] Building CXX object ../CMakeFiles/cameraserver.dir/cameraserver.cpp.o
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/cameraserver.cpp:283:1:
warning: "YUV2RGB" redefined
In file included from /usr/include/dc1394/dc1394.h:49,
from /usr/include/dc1394/log.h:45,
from /usr/include/dc1394/control.h:23,
from
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/cameraserver.cpp:42:
/usr/include/dc1394/conversions.h:72:1: warning: this is the location of
the previous definition
[100%] Building CXX object ../CMakeFiles/cameraserver.dir/gstpipeline.cpp.o
Linking CXX executable cameraserver
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::Mat::copySize(cv::Mat const&)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::imwrite(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray
const&, std::vector<int, std::allocator<int> > const&)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::Mat::reshape(int, int, int const*) const'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::mixChannels(cv::Mat const*, unsigned int,
cv::Mat*, unsigned int, int const*, unsigned int)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::fastFree(void*)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::imread(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, int)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `vtable for cv::_OutputArray'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::Mat::operator=(cv::Scalar_<double> const&)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `vtable for cv::_InputArray'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::cvtColor(cv::_InputArray const&,
cv::_OutputArray const&, int, int)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::Mat::copyTo(cv::_OutputArray const&) const'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::Mat::deallocate()'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::Mat::zeros(int, int, int)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::Mat::create(int, int const*, int)'
/home/jnbosgos/pfc/jderobot/trunk/src/components/cameraserver/build/../../../libs/colorspaces/libcolorspacesmm.so:
undefined reference to `cv::Mat::convertTo(cv::_OutputArray const&, int,
double, double) const'
collect2: ld returned 1 exit status
make[2]: *** [../cameraserver] Error 1
make[1]: *** [../CMakeFiles/cameraserver.dir/all] Error 2
make: *** [all] Error 2
Saludos, Juan
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://gsyc.escet.urjc.es/pipermail/jde-developers/attachments/20121022/ff806584/attachment-0001.htm
More information about the Jde-developers
mailing list