<div dir="ltr"><div>Hello,<br><div style="margin-left:40px">As far as I know, to build JdeRobot components you should use the instructions from &quot;Compile and Install JdeRobot with CMake&quot; [1] inside the&quot; Manual&quot; section.<br></div><div style="margin-left:40px"><br></div><div style="margin-left:40px">For compiling, first you should check if all needed dependences are installed. After installing all dependences, you should move to the root of the repository (or a new folder created inside) and call cmake using the CMakeList.txt there. For example, if you have the repository at ~/JdeRobot you need to run:<br><br></div><div style="margin-left:40px"><span style="font-family:monospace,monospace">cd ~/JdeRobot<br></span></div><div style="margin-left:40px"><span style="font-family:monospace,monospace">cmake .<br></span></div><div style="margin-left:40px"><span style="font-family:monospace,monospace">make<br></span></div><div style="margin-left:40px"><br></div><div style="margin-left:40px">These actions will trigger the compilation of all components of JdeRobot that can be built in that system. If any dependence is missing, it will be listed at <font face="monospace,monospace">cmake . <font face="arial,helvetica,sans-serif">output and a configuring error will be reported; if this happens, you can install the missing dependences and re-run the command to continue the configuring process.<br><br></font></font>For building only some components, please refer to the manual [1].<br><br></div><div style="margin-left:40px">If you have more problems, please don&#39;t hesitate to contact this list again.<br></div><br></div>Regards,<br><div style="margin-left:40px">L. Roberto Morales<br></div><div><div><div style="margin-left:40px"><br><br></div>[1] <a href="http://jderobot.org/Manual-5#Compile_and_Install_JdeRobot_5_with_CMake">http://jderobot.org/Manual-5#Compile_and_Install_JdeRobot_5_with_CMake</a><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-14 22:20 GMT+01:00 Tarciso Oliveira <span dir="ltr">&lt;<a href="mailto:tarcisocomp@gmail.com" target="_blank">tarcisocomp@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I was trying to build JDERobot components according to the tutorial on <a href="http://jderobot.org/Components#cameraserver" target="_blank">http://jderobot.org/Components#cameraserver</a>.<br>When I ran: &quot;cmake .&quot; inside JdeRobot/trunk/src/stable/components I got the following error message:<br><br>CMake Error at CMakeLists.txt:1 (list_subdirectories):<br>  Unknown CMake command &quot;list_subdirectories&quot;.<br><br><br>CMake Warning (dev) in CMakeLists.txt:<br>  No cmake_minimum_required command is present.  A line of code such as<br><br>    cmake_minimum_required(VERSION 2.8)<br><br>  should be added at the top of the file.  The version specified may be lower<br>  if you wish to support older CMake versions for this project.  For more<br>  information run &quot;cmake --help-policy CMP0000&quot;.<br>This warning is for project developers.  Use -Wno-dev to suppress it.<br><br>-- Configuring incomplete, errors occurred!<br><br></div>It seems like list_subdirectories macro cannot be found by cmake. How can I fix this?<br>When trying to build cameraserver module separately, I got the following errors:<br><br>[100%] Building CXX object CMakeFiles/cameraserver.dir/cameraserver.o<br>In file included from /home/tarciso/workspaces/gsoc-workspace/JdeRobot/trunk/src/stable/components/cameraserver/cameraserver.cpp:27:0:<br>/usr/local/include/jderobot/camera.h:39:19: fatal error: image.h: No such file or directory<br>compilation terminated.<br>make[2]: *** [CMakeFiles/cameraserver.dir/cameraserver.o] Error 1<br>make[1]: *** [CMakeFiles/cameraserver.dir/all] Error 2<br>make: *** [all] Error 2<br><br>[100%] Building CXX object CMakeFiles/cameraserver.dir/cameraserver.o<br>In file included from /usr/local/include/jderobot/camera.h:39:0,<br>                 from /home/tarciso/workspaces/gsoc-workspace/JdeRobot/trunk/src/stable/components/cameraserver/cameraserver.cpp:27:<br>/usr/local/include/jderobot/image.h:39:20: fatal error: common.h: No such file or directory<br>compilation terminated.<br>make[2]: *** [CMakeFiles/cameraserver.dir/cameraserver.o] Error 1<br>make[1]: *** [CMakeFiles/cameraserver.dir/all] Error 2<br>make: *** [all] Error 2<br><br>[100%] Building CXX object CMakeFiles/cameraserver.dir/cameraserver.o<br>In file included from /usr/local/include/jderobot/image.h:39:0,<br>                 from /usr/local/include/jderobot/camera.h:39,<br>                 from /home/tarciso/workspaces/gsoc-workspace/JdeRobot/trunk/src/stable/components/cameraserver/cameraserver.cpp:27:<br>/usr/local/include/jderobot/common.h:32:22: fatal error: datetime.h: No such file or directory<br>compilation terminated.<br>make[2]: *** [CMakeFiles/cameraserver.dir/cameraserver.o] Error 1<br>make[1]: *** [CMakeFiles/cameraserver.dir/all] Error 2<br>make: *** [all] Error 2<br><br></div>The referred files exist and are in the same directory as the source header file, however for some reason the compiler cannot find them. It seems like an include error. When I changed the include directives in files from: &lt;included_header&gt; to: &quot;included_header&quot;, the includes worked.<br></div>Then I had the following error:<br><div><div><div><div><br>[100%] Building CXX object CMakeFiles/cameraserver.dir/cameraserver.o<br>/home/tarciso/workspaces/gsoc-workspace/JdeRobot/trunk/src/stable/components/cameraserver/cameraserver.cpp:29:49: fatal error: visionlib/colorspaces/colorspacesmm.h: No such file or directory<br>compilation terminated.<br>make[2]: *** [CMakeFiles/cameraserver.dir/cameraserver.o] Error 1<br>make[1]: *** [CMakeFiles/cameraserver.dir/all] Error 2<br>make: *** [all] Error 2<br><br></div><div>As it can be seen, it is the same error but now in the project source folder. Did I do something wrong during project build? Is there a simple solution for this or should I change include directives for each error?<br><br></div><div>Thanks in advance!<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br><br clear="all"><div><div><div><div><div><br>-- <br><div><div dir="ltr">Tarciso Braz de Oliveira Filho<br>Undergraduate Student in Computer Science <div>Universidade Federal de Campina Grande, Campina Grande - Brazil<br>Former Exchange student at University of California, Davis - USA<br></div></div></div>
</div></div></div></div></div></div></font></span></div></div></div></div>
<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>