<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hola buenas tardes,<br>
<br>
yo estoy teniendo problemas al crear mi cmake independiente para un nuevo componente:<br>
- Estoy utilizando la nueva versión y falla al linkar libcolorspacesmm.so<br>
- El problema lo encuentro al hacer el make del componente:<br>
<br>
make<br>
Scanning dependencies of target Mycomponent2<br>
[ 25%] Building CXX object ../CMakeFiles/Mycomponent2.dir/control.cpp.o<br>
[ 50%] Building CXX object ../CMakeFiles/Mycomponent2.dir/mycomponent2.cpp.o<br>
[ 75%] Building CXX object ../CMakeFiles/Mycomponent2.dir/API.cpp.o<br>
[100%] Building CXX object ../CMakeFiles/Mycomponent2.dir/gui.cpp.o<br>
Linking CXX executable Mycomponent2<br>
/usr/local/lib/jderobot/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&)'<br>
/usr/local/lib/jderobot/libcolorspacesmm.so: undefined reference to `cv::imread(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'<br>
/usr/local/lib/jderobot/libcvblob.so: undefined reference to `cvSaveImage'<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [../Mycomponent2] Error 1<br>
make[1]: *** [../CMakeFiles/Mycomponent2.dir/all] Error 2<br>
<br>
<br>
<br>
-Estoy seguro de que es mi cmake, ya que el mismo componente si lo incluyo en el directorio src/stable/components/ se compila y se instala perfectamente.<br>
<br>
En mi caso TARGET_LINK_LIBRARIES :<br>
<br>
TARGET_LINK_LIBRARIES(Mycomponent2 <br>
${INTERFACES_CPP_DIR}/jderobot/libJderobotInterfaces.so<br>
${LIBS_DIR}/jderobotutil/libjderobotutil.so<br>
${LIBS_DIR}/visionlib/colorspaces/libcolorspaces.so<br>
${LIBS_DIR}/visionlib/cvFast/libcvfast.so<br>
${LIBS_DIR}/visionlib/cvBlob/libcvblob.so<br>
${LIBS_DIR}/visionlib/imgAnalyze/libimgAnalyze.so<br>
${libglademm_LIBRARIES}<br>
${OpenCV_LIBRARIES} <br>
${ZeroCIce_LIBRARIES} <br>
${gtkmm_LIBRARIES} <br>
${gtkmm3_LIBRARIES} <br>
${gthread_LIBRARIES}<br>
${LIBS_DIR}/visionlib/colorspaces/libcolorspacesmm.so<br>
<br>
)<br>
<br>
Muchas gracias de antemano,<br>
<br>
Ildefonso<br>
</div>
</body>
</html>