1.sudo gedit .bashrc添加以下内容:
PATH=$PATH:/home/wang/Qt5.2.1/Tools/QtCreator/bin
PATH=$PATH:/home/wang/Qt5.2.1/Tools/QtCreator/lib/qtcreator
2.拷贝
cp /opt/ros/jade/share/catkin/cmake/toplevel.cmake ./CMakeLists.txt(拷贝到src/下)
3.在终端输入qtcreator
4.open project
5.找到刚才拷贝到src/目录下的CMakeLists.txt,并打开,然后点击Run CMake编译.
时间: 2024-12-16 09:13:42