<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">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!<br></div><div><br><br clear="all"><div><div><div><div><div><br>-- <br><div class="gmail_signature"><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></div></div></div></div>