ego-planner catkin build 问题

解决CMake与Catkin编译中的依赖问题及警告

第一个问题 找不到quadrotor_msgsConfig.cmake之类的问题,基本上是package.xml没有添加对应的依赖, catkin build不知道依赖关系,catkin_make可能根据CmakeLists.txt建立了依赖关系。

<build_depend>quadrotor_msgs</build_depend>
<run_depend>quadrotor_msgs</run_depend>

第二个问题

_______________________________________________________________________________
Warnings   << odom_visualization:check /home/rflysim/basic-catkin-dependencies/logs/odom_visualization/build.check.005.log
CMake Warning (dev) at CMakeLists.txt:37 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run 
Base path: /home/guangyu/ego-planner Source space: /home/guangyu/ego-planner/src Build space: /home/guangyu/ego-planner/build Devel space: /home/guangyu/ego-planner/devel Install space: /home/guangyu/ego-planner/install #### #### Running command: "cmake /home/guangyu/ego-planner/src -DCMAKE_BUILD_TYPE=Release -DCATKIN_DEVEL_PREFIX=/home/guangyu/ego-planner/devel -DCMAKE_INSTALL_PREFIX=/home/guangyu/ego-planner/install -G Unix Makefiles" in "/home/guangyu/ego-planner/build" #### CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as project(ProjectName) near the top of the file, but after cmake_minimum_required(). CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it. -- Using CATKIN_DEVEL_PREFIX: /home/guangyu/ego-planner/devel -- Using CMAKE_PREFIX_PATH: /home/guangyu/ego-planner/devel -- This workspace overlays: /home/guangyu/ego-planner/devel -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3") -- Using PYTHON_EXECUTABLE: /usr/bin/python3 -- Using Debian Python package layout -- Using empy: /usr/lib/python3/dist-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/guangyu/ego-planner/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python3 (found version "3.8.10") -- nosetests not found, Python tests can not be run (try installing package 'python3-nose') -- catkin 0.8.0 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 18 packages in topological order: -- ~~ - cmake_utils -- ~~ - map_generator -- ~~ - mockamap -- ~~ - plan_env -- ~~ - path_searching -- ~~ - bspline_opt -- ~~ - pose_utils -- ~~ - odom_visualization -- ~~ - quadrotor_msgs -- ~~ - local_sensing_node -- ~~ - multi_map_server -- ~~ - rviz_plugins -- ~~ - so3_control -- ~~ - traj_utils -- ~~ - ego_planner -- ~~ - uav_utils -- ~~ - so3_quadrotor_simulator -- ~~ - waypoint_generator -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'cmake_utils' -- ==> add_subdirectory(uav_simulator/Utils/cmake_utils) -- Could NOT find roscpp (missing: roscpp_DIR) -- Could not find the required component 'roscpp'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:82 (find_package): Could not find a package configuration file provided by "roscpp" with any of the following names: roscppConfig.cmake roscpp-config.cmake Add the installation prefix of "roscpp" to CMAKE_PREFIX_PATH or set "roscpp_DIR" to a directory containing one of the above files. If "roscpp" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): uav_simulator/Utils/cmake_utils/CMakeLists.txt:4 (find_package) -- Configuring incomplete, errors occurred! See also "/home/guangyu/ego-planner/build/CMakeFiles/CMakeOutput.log". See also "/home/guangyu/ego-planner/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed怎么错了
最新发布
11-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值