当前位置:网站首页>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
边栏推荐
- Map and filter methods for processing scarce arrays
- vutils.make_grid()与黑白图像有关的一个小体会
- CD-CompactDisk
- 带你解决哈希冲突,并实现一个简单hash表,
- Tencent qianzhiming: Exploration and application of pre training methods in information flow business
- No manual prior is required! HKU & Tongji & lunarai & Kuangshi proposed self supervised visual representation learning based on semantic grouping, which significantly improved the tasks of target dete
- Comparing the size relationship between two objects turns out to be so fancy
- 数据加密标准DES安全性
- Tsinghua & Shangtang & Shanghai AI & CUHK proposed Siamese image modeling, which has both linear probing and intensive prediction performance!
- A little experience of next (ITER (dataloader))
猜你喜欢

Detailed explanation of asymmetric cryptosystem

RSA encryption and decryption details

Lm06 the mystery of constructing the bottom and top trading strategy only by trading volume

Solve the problem that each letter occupies a space in pycharm

CD-CompactDisk

非对称密码体制详解

LeetCode 128最长连续序列

Data Encryption Standard DES security

pycharm的plt.show()如何保持不关闭

Detailed explanation of dos and attack methods
随机推荐
Chen Qiang: Alibaba's 100 billion level large-scale digital business knowledge map helps business growth
Bayesian network explanation
你了解如何比较两个对象吗
ZCMU--1367: Data Structure
如何创建并强制使用索引
A little experience of next (ITER (dataloader))
Please advise tonghuashun which securities firm to choose for opening an account? Is it safe to open an account online now?
Map and filter methods for processing scarce arrays
CD-CompactDisk
贝叶斯网络详解
CLion断点单步调试
Comparing the size relationship between two objects turns out to be so fancy
RSA概念详解及工具推荐大全 - lmn
map和filter方法对于稀缺数组的处理
深入理解MySQL锁与事务隔离级别
小程序设置按钮分享功能
Data Encryption Standard DES security
next(iter(dataloader))的一点点体会
VCD video disc
ISO文件