<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&nbsp; libcolorspacesmm.so<br>
- El problema lo encuentro al hacer el make del componente:<br>
<br>
&nbsp;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&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, cv::_InputArray const&amp;, std::vector&lt;int, std::allocator&lt;int&gt; &gt; const&amp;)'<br>
/usr/local/lib/jderobot/libcolorspacesmm.so: undefined reference to `cv::imread(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, 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/&nbsp; se compila y se instala perfectamente.<br>
<br>
En mi caso TARGET_LINK_LIBRARIES :<br>
<br>
TARGET_LINK_LIBRARIES(Mycomponent2 <br>
&nbsp;&nbsp;&nbsp; ${INTERFACES_CPP_DIR}/jderobot/libJderobotInterfaces.so<br>
&nbsp;&nbsp;&nbsp; ${LIBS_DIR}/jderobotutil/libjderobotutil.so<br>
&nbsp;&nbsp;&nbsp; ${LIBS_DIR}/visionlib/colorspaces/libcolorspaces.so<br>
&nbsp;&nbsp;&nbsp; ${LIBS_DIR}/visionlib/cvFast/libcvfast.so<br>
&nbsp;&nbsp;&nbsp; ${LIBS_DIR}/visionlib/cvBlob/libcvblob.so<br>
&nbsp;&nbsp;&nbsp; ${LIBS_DIR}/visionlib/imgAnalyze/libimgAnalyze.so<br>
&nbsp;&nbsp;&nbsp; ${libglademm_LIBRARIES}<br>
&nbsp;&nbsp;&nbsp; ${OpenCV_LIBRARIES}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; ${ZeroCIce_LIBRARIES}&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; ${gtkmm_LIBRARIES}&nbsp; <br>
&nbsp;&nbsp;&nbsp; ${gtkmm3_LIBRARIES}&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; ${gthread_LIBRARIES}<br>
&nbsp;&nbsp;&nbsp; ${LIBS_DIR}/visionlib/colorspaces/libcolorspacesmm.so<br>
&nbsp;&nbsp;&nbsp; <br>
)<br>
<br>
Muchas gracias de antemano,<br>
<br>
Ildefonso<br>
</div>
</body>
</html>