0
sudo apt-get install eclipse-cdt*
1 catkin_make
先删除build
,devel
用这条命令代替原来的catkin_make
catkin_make --force-cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j8
2 import project
File -> Import -> General -> Existing Projects into Workspace,
select a root directory,选择catkin_ws中的build文件夹,就会自动搜索.不要选择Copy projects into workspace.
工程右键–>properties–>C/C++ Include Paths,查看include path是否已经自动正确配置
3 编译工程
Project -> Build Project
4 更改字体大小
windows–>preferences–>general–>appearance–>colors and fonts–>base–>text font;
显示行号
Ctrl+F10,调出设置窗口,选择勾选show line numbers