CMake failed when running "make build_all"
zsan2023 opened this issue · 2 comments
` => CACHED [carla-ros-bridge stage-1 10/13] COPY external/ros-bridge /opt 0.0s
=> CACHED [carla-ros-bridge stage-1 11/13] COPY ros-bridge_files/local/s 0.0s
=> ERROR [carla-ros-bridge stage-1 12/13] RUN /bin/bash -c 'source /opt/ 6.5s
[carla-ros-bridge stage-1 12/13] RUN /bin/bash -c 'source /opt/ros/noetic/setup.bash; catkin_make install;':
2.545 -- The C compiler identification is GNU 9.4.0
3.005 -- The CXX compiler identification is GNU 9.4.0
3.039 -- Check for working C compiler: /usr/bin/cc
3.189 -- Check for working C compiler: /usr/bin/cc -- works
3.191 -- Detecting C compiler ABI info
3.235 -- Detecting C compiler ABI info - done
3.242 -- Detecting C compile features
3.242 -- Detecting C compile features - done
3.244 -- Check for working CXX compiler: /usr/bin/c++
3.277 -- Check for working CXX compiler: /usr/bin/c++ -- works
3.277 -- Detecting CXX compiler ABI info
3.310 -- Detecting CXX compiler ABI info - done
3.317 -- Detecting CXX compile features
3.318 -- Detecting CXX compile features - done
3.451 -- Using CATKIN_DEVEL_PREFIX: /opt/carla-ros-bridge/devel
3.451 -- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
3.451 -- This workspace overlays: /opt/ros/noetic
3.470 -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
3.470 -- Using PYTHON_EXECUTABLE: /usr/bin/python3
3.470 -- Using Debian Python package layout
3.524 -- Found PY_em: /usr/lib/python3/dist-packages/em.py
3.524 -- Using empy: /usr/lib/python3/dist-packages/em.py
3.633 -- Using CATKIN_ENABLE_TESTING: ON
3.633 -- Call enable_testing()
3.639 -- Using CATKIN_TEST_RESULTS_DIR: /opt/carla-ros-bridge/build/test_results
4.044 -- Forcing gtest/gmock from source, though one was otherwise available.
4.044 -- Found gtest sources under '/usr/src/googletest': gtests will be built
4.044 -- Found gmock sources under '/usr/src/googletest': gmock will be built
4.092 -- Found PythonInterp: /usr/bin/python3 (found version "3.8.10")
4.093 -- Found Threads: TRUE
4.098 -- Using Python nosetests: /usr/bin/nosetests3
4.137 -- catkin 0.8.10
4.137 -- BUILD_SHARED_LIBS is on
4.226 -- BUILD_SHARED_LIBS is on
4.614 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4.614 -- ~~ traversing 19 packages in topological order:
4.614 -- ~~ - carla_ad_demo
4.614 -- ~~ - carla_common
4.614 -- ~~ - carla_msgs
4.614 -- ~~ - carla_ackermann_msgs
4.614 -- ~~ - carla_ros_scenario_runner_types
4.614 -- ~~ - carla_waypoint_types
4.614 -- ~~ - rviz_carla_plugin
4.614 -- ~~ - ros_compatibility
4.614 -- ~~ - carla_ackermann_control
4.614 -- ~~ - carla_ad_agent
4.614 -- ~~ - carla_manual_control
4.615 -- ~~ - carla_ros_bridge
4.615 -- ~~ - carla_ros_scenario_runner
4.615 -- ~~ - carla_spawn_objects
4.615 -- ~~ - carla_twist_to_control
4.615 -- ~~ - carla_walker_agent
4.615 -- ~~ - carla_waypoint_publisher
4.615 -- ~~ - rqt_carla_control
4.615 -- ~~ - pcl_recorder
4.615 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4.615 -- +++ processing catkin package: 'carla_ad_demo'
4.615 -- ==> add_subdirectory(carla_ad_demo)
4.715 -- +++ processing catkin package: 'carla_common'
4.715 -- ==> add_subdirectory(carla_common)
5.261 -- Installing devel-space wrapper /opt/carla-ros-bridge/src/carla_common/src/carla_common/transforms.py to /opt/carla-ros-bridge/devel/lib/carla_common
5.261 -- +++ processing catkin package: 'carla_msgs'
5.261 -- ==> add_subdirectory(carla_msgs)
5.269 -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
5.443 -- carla_msgs: 18 messages, 3 services
5.531 -- +++ processing catkin package: 'carla_ackermann_msgs'
5.531 -- ==> add_subdirectory(carla_ackermann_msgs)
5.535 -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
5.667 -- carla_ackermann_msgs: 5 messages, 0 services
5.752 -- +++ processing catkin package: 'carla_ros_scenario_runner_types'
5.752 -- ==> add_subdirectory(carla_ros_scenario_runner_types)
5.757 -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
5.881 -- carla_ros_scenario_runner_types: 3 messages, 1 services
5.959 -- +++ processing catkin package: 'carla_waypoint_types'
5.959 -- ==> add_subdirectory(carla_waypoint_types)
5.964 -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
6.108 -- carla_waypoint_types: 1 messages, 2 services
6.185 -- +++ processing catkin package: 'rviz_carla_plugin'
6.185 -- ==> add_subdirectory(rviz_carla_plugin)
6.186 CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
6.186 Could not find a package configuration file provided by "rviz" with any of
6.186 the following names:
6.186
6.186 rvizConfig.cmake
6.186 rviz-config.cmake
6.186
6.186 Add the installation prefix of "rviz" to CMAKE_PREFIX_PATH or set
6.186 "rviz_DIR" to a directory containing one of the above files. If "rviz"
6.186 provides a separate development package or SDK, be sure it has been
6.186 installed.
6.186 Call Stack (most recent call first):
6.186 rviz_carla_plugin/CMakeLists.txt:12 (find_package)
6.186
6.186
6.187 -- Could NOT find rviz (missing: rviz_DIR)
6.187 -- Could not find the required component 'rviz'. 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.
6.188 -- Configuring incomplete, errors occurred!
6.188 See also "/opt/carla-ros-bridge/build/CMakeFiles/CMakeOutput.log".
6.188 See also "/opt/carla-ros-bridge/build/CMakeFiles/CMakeError.log".
6.191 Base path: /opt/carla-ros-bridge
6.191 Source space: /opt/carla-ros-bridge/src
6.191 Build space: /opt/carla-ros-bridge/build
6.191 Devel space: /opt/carla-ros-bridge/devel
6.191 Install space: /opt/carla-ros-bridge/install
6.191 Creating symlink "/opt/carla-ros-bridge/src/CMakeLists.txt" pointing to "/opt/ros/noetic/share/catkin/cmake/toplevel.cmake"
6.191 ####
6.191 #### Running command: "cmake /opt/carla-ros-bridge/src -DCATKIN_DEVEL_PREFIX=/opt/carla-ros-bridge/devel -DCMAKE_INSTALL_PREFIX=/opt/carla-ros-bridge/install -G Unix Makefiles" in "/opt/carla-ros-bridge/build"
6.191 ####
6.191 Invoking "cmake" failed
failed to solve: process "/bin/sh -c /bin/bash -c 'source /opt/ros/noetic/setup.bash; catkin_make install;'" did not complete successfully: exit code: 1
make: *** [Makefile:69:_build] 错误 17
`
Please checkout the latest master commit.
git pull
git checkout master
git submodule update --init
make build_all