当前位置:网站首页>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
边栏推荐
- JVM entry Door (1)
- (multi threading knowledge points that must be mastered) understand threads, create threads, common methods and properties of using threads, and the meaning of thread state and state transition
- wechat_ Solve the problem of page Jump and parameter transfer by navigator in wechat applet
- Solve the problem that each letter occupies a space in pycharm
- Temporarily turn off MySQL cache
- Padding percentage operation
- Detailed explanation of MySQL mvcc mechanism
- 利用递归实现求n位所有格雷码
- Determine whether a sequence is a stack pop-up sequence
- 解决pycharm里面每个字母占一格空格的问题
猜你喜欢

transforms.RandomCrop()的输入只能是PIL image 不能是tensor

Solve the problem that each letter occupies a space in pycharm

Runtimeerror: CUDA error: out of memory own solution (it is estimated that it is not applicable to most people in special circumstances)

Number of solutions for knapsack problem

50行代码爬取Top500图书导入TXT文档

Let torch cuda. is_ Experience of available() changing from false to true

wechat_微信小程序中解决navigator进行页面跳转并传递参数问题

RSA概念详解及工具推荐大全 - lmn

tag动态规划-刷题预备知识-2. 0-1背包理论基础和二维数组解法模板

Discussion and generation of digital signature and analysis of its advantages
随机推荐
LM06丨仅用成交量构造抄底摸顶策略的奥秘
ISO文件
transforms. The input of randomcrop() can only be PIL image, not tensor
Take you to resolve hash conflicts and implement a simple hash table,
Eigen库计算两个向量夹角
17.13 补充知识、线程池浅谈、数量谈、总结
比较两个对象的大小关系原来可以如此花里胡哨
图像二值化处理
必须要掌握的面试重点——索引和事务(附讲B-树与B+树)
How to add an application to the deviceidle whitelist?
sqlite数据库的系统表sqlite_master
数据加密标准DES安全性
Paging query and join Association query optimization
Solve the problem that each letter occupies a space in pycharm
Map and filter methods for processing scarce arrays
RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
清华&商汤&上海AI&CUHK提出Siamese Image Modeling,兼具linear probing和密集预测性能!
VCD video disc
in和exsits、count(*)查询优化
A little experience of next (ITER (dataloader))