Skip to content
Updated Troubleshooting (markdown) authored by JitskedeVries's avatar JitskedeVries
...@@ -11,15 +11,17 @@ You can check whether ROS is sourced the right way by typing the following comma ...@@ -11,15 +11,17 @@ You can check whether ROS is sourced the right way by typing the following comma
``` ```
echo $ROS_PACKAGE_PATH echo $ROS_PACKAGE_PATH
``` ```
This should give This should give or something like that.
``` ```
/path/to/your/repo/march-iv/march_ws/src:/opt/ros/kinetic/share /path/to/your/repo/march-iv/march_ws/src:/opt/ros/kinetic/share
``` or something like that. ```
Sourcing ROS by Sourcing ROS should do the trick.
``` ```
source opt/ros/kinetic/setup.bash source opt/ros/kinetic/setup.bash
``` ```
should do the trick. But typing this every time is exhausting. Thus if this is a problem occurring in Clion, you should launch CLion [this](https://github.com/project-march/march-iv/wiki/Installing-and-Configuring-CLion#source-the-source-files) way. But typing this every time is exhausting. Thus if this is a problem occurring in Clion, you should launch CLion [this](https://github.com/project-march/march-iv/wiki/Installing-and-Configuring-CLion#source-the-source-files) way.
If this doesn't work, the last resort is deleting the whole project. And installing it again by using this
## /usr/bin/ld: cannot find -l{package_name} ## /usr/bin/ld: cannot find -l{package_name}
Add the following code to the CMakeLists.txt: Add the following code to the CMakeLists.txt:
... ...
......