Setup Remote Development on CLion for ROS
I am trying to build a remote environment to write ROS nodes in CLion.
As a prerequisite, I am able to login to ssh on CLion. However, I have not been able to find catkin due to some missing configuration.
Here is what I have done.
Preferences -> Build, Execution, Deployment -> Toolchains
- Configure the remote machine's compiler via ssh
- make=/usr/bin/make, /usr/bin/gcc, /usr/bin/g++
For the sake of convenience, let's call this Toolchain hoge.
I also set cmake then.
Preferences -> Build, Execution, Deployment -> CMake
- Toolchain > hoge
- CMakeoptions > -DCATKIN_DEVEL_PREFIX:PATH=/home/hoge/catkin_ws/devel
and I reloaded CMakeLists.txt. I received the following errors.
/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCATKIN_DEVEL_PREFIX:PATH=/home/hoge/catkin_ws/devel -G "CodeBlocks - Unix Makefiles" /home/hoge/catkin_ws/src/fuga/node
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:13 (find_package):
By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "catkin", but
CMake did not find one.
Could not find a package configuration file provided by "catkin" with any
of the following names:
catkinConfig.cmake
catkin-config.cmake
Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set
"catkin_DIR" to a directory containing one of the above files. If "catkin"
provides a separate development package or SDK, be sure it has been
installed.
What am I missing? After some research, it seems that I need to specify the build directory in the cmake options, but is there any way to specify a remote build directory?
Is there any way to specify a remote build directory? Also, do I need some environment variable to find catkin?
Thanks,
Please sign in to leave a comment.
Hello!
It's not fully supported yet. Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-17171 in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.