robot_dart
robot_dart copied to clipboard
Documentation for building C++ examples
Hi @costashatz, here is a new issue about the JOSS review https://github.com/openjournals/joss-reviews/issues/6771 These comments are based on the Ubuntu 22.04-arm64 installation with the one line installation script
1- First, I successfully ran the Hello World example in Python, and I was happy to see my first robot in the graphical interface 😃
2- However, building the C++ example was a little bit more difficult. I did not find any building instructions on the FAQ page, so I started to manually compile the cpp example, which was a bad idea! Then, I figured out there is a CMake example in the source of the GitHub, but I did not see any reference to it in the doc (or maybe I scanned too fast the doc page and I missed it?)
3 - Finally, the example was not exactly working out of the box since cmake was not able to find robot_dart, magnumand corrade. I had to manually set the CMAKE_PREFIX_PATH environment variable:
export CMAKE_PREFIX_PATH=/opt/magnum:/opt/robot_dart- then, the "classical" building procedure with
cmakeworks fine:mkdir buildcd buildcmake ..make(eventually with-j4,-j8depending on the computer capabilities...)
- Then, I successfully adapted the
CMakeList.txtto build an other example in headless and graphical mode. - Can you put instructions in the installation doc to add the
export CMAKE_PREFIX_PATHcommand in the.bashrc/.profile/.zshrc, like you did for thePYTHONPATH,PATH... environment variables? - Can you add a page in the doc that is linked to the
CMakeList.txtexample and provide the standard procedure to build it and adapt theCMakeList.txtto other examples? This could be very helpful to users like me who did not usecmakefor a long time (but I think I am more the target of the Python version 😂)
Haha, I should be blind or maybe I was too tired the day I wrote this issue... There is actually some explanations at the very end of the FAQ! 😅
However, it does not mention the possible problems that can occur if cmake cannot find the different packages. Can you please add a comment about the environment variable CMAKE_PREFIX_PATH?
@c-joly feel free to re-open the issue if #215 did not fix this :) Thanks again!