当前位置:网站首页>Clion compiling catkin_ WS (short for ROS workspace package) loads cmakelists Txt problems
Clion compiling catkin_ WS (short for ROS workspace package) loads cmakelists Txt problems
2022-06-26 18:13:00 【Maccy37】
The background is that I was in ROS working space 3308_ws Folder ROS My bag :
[email protected]:~/3308_ws$ catkin_makeIt can be compiled , stay Clion IDE Loaded inside CMakeLists.txt Files can be compiled . A few days later, there was no link ROS Original source library : /opt/ros/indigo/... The file of . Make a mess , If the compilation fails, I thought it was python Version of the problem , But it's not , Finally Baidu solved the problem .
link :https://blog.csdn.net/Alex_wise/article/details/105201687#commentBox
problem :Clion IDE Loaded inside CMakeLists.txt File error :
find_package(catkin) failed. catkin was neither found in the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh was sourced before.resolvent :
Open the terminal
If not running catkin_make Generate files , Remember now src The location where the folder is located runs catkin_make
Open the... Of the workspace devel Folder
Run the command ( It's very important )
source setup.bashopen clion.sh Folder in which ( Just search ), Run at terminal
./clion.shThen right click cmakelist.txt file , Just reload
Start at the terminal CLion,CLion It should be through setup.bash The local environment variable set by the file starts , Therefore, in the error report :no ROS setup.sh was sourced before The problem is solved !( The red part doesn't understand how to operate )
After execution source After the instruction : I run directly on the workspace clion.sh Instructions
[email protected]:~/3308_ws$ ../Downloads/clion-2020.2/bin/clion.sh And yes. catkin_make Instruction generated package compilation file build and clion Compile generated cmake-build-debug It's different , You don't need to set these two files . stay setting->Build->CMake->CMake options/Build directory These two can be set

Two .Clion Opening an external project failed to compile the problem

Or in :CMakeLists.txt Right click mouse , choice Reload CMake Project Reload CMakeLists.txt file
Reference resources :https://blog.csdn.net/qq_41248872/article/details/104170990
边栏推荐
- 手写promise.all
- Case study of row lock and isolation level
- 腾讯钱智明:信息流业务中的预训练方法探索与应用实践
- 数据加密标准DES安全性
- 非对称密码体制详解
- RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
- 数据加密标准(DES)概念及工作原理
- vutils. make_ A little experience of grid () in relation to black and white images
- I want to know. I am in Zhaoqing. Where can I open an account? Is it safe to open an account online?
- Concept and working principle of data encryption standard (DES)
猜你喜欢

DoS及攻击方法详解

DVD-数字通用光盘

Do you know how to compare two objects

Idea collection code, quickly open favorites collection window

行锁分析和死锁

Applet setting button sharing function

VCD-影音光碟

清华&商汤&上海AI&CUHK提出Siamese Image Modeling,兼具linear probing和密集预测性能!

Clion编译catkin_ws(ROS工作空间包的简称)加载CMakeLists.txt出现的问题
![[buuctf.reverse] 126-130](/img/df/e35633d85caeff1dece62a66cb7804.png)
[buuctf.reverse] 126-130
随机推荐
Map and filter methods for processing scarce arrays
Binary search-2
How about opening a flush account? Is it safe? How to open a stock trading account
如何将应用加入到deviceidle 白名单?
LeetCode 面试题29 顺时针打印矩阵
带你解决哈希冲突,并实现一个简单hash表,
Decision tree and random forest
50行代码爬取Top500图书导入TXT文档
KDD 2022 | how to use comparative learning in cross domain recommendation?
Class inheritance of 25class
Knapsack problem with dependency
利用递归实现求n位所有格雷码
vutils. make_ A little experience of grid () in relation to black and white images
Row lock analysis and deadlock
Detailed explanation of dos and attack methods
Regular match same character
Idea collection code, quickly open favorites collection window
map和filter方法对于稀缺数组的处理
gdb安装
JS cast