Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin #87

Open
frieden-ls opened this issue Nov 15, 2023 · 9 comments
Open

catkin #87

frieden-ls opened this issue Nov 15, 2023 · 9 comments

Comments

@frieden-ls
Copy link

when i catkin build OCS2,the bug is
"CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"convex_plane_decomposition" with any of the following names:

convex_plane_decompositionConfig.cmake
convex_plane_decomposition-config.cmake

Add the installation prefix of "convex_plane_decomposition" to
CMAKE_PREFIX_PATH or set "convex_plane_decomposition_DIR" to a directory
containing one of the above files. If "convex_plane_decomposition"
provides a separate development package or SDK, be sure it has been
installed."
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"grid_map_filters_rsl" with any of the following names:

grid_map_filters_rslConfig.cmake
grid_map_filters_rsl-config.cmake

Add the installation prefix of "grid_map_filters_rsl" to CMAKE_PREFIX_PATH
or set "grid_map_filters_rsl_DIR" to a directory containing one of the
above files. If "grid_map_filters_rsl" provides a separate development
package or SDK, be sure it has been installed.

@nys601350111
Copy link

the same problem

1 similar comment
@GNMM-mf
Copy link

GNMM-mf commented Nov 23, 2023

the same problem

@Ddaols
Copy link

Ddaols commented Nov 28, 2023

the same problem.how to solve it?

@ppap36
Copy link

ppap36 commented Dec 10, 2023

I have spent my whole day to fix that, but nothing happened, still the same problem

@zxfever
Copy link

zxfever commented Dec 11, 2023

the same problem.Have you solved it?

@HariP19
Copy link

HariP19 commented Dec 11, 2023

Installation

ocs2

mkdir -p ~/ocs2_ws/src && cd ~/ocs2_ws/src

# Clone ocs2
git clone [email protected]:leggedrobotics/ocs2.git

# Clone pinocchio
git clone --recurse-submodules https://github.com/leggedrobotics/pinocchio.git

# Clone hpp-fcl
git clone --recurse-submodules https://github.com/leggedrobotics/hpp-fcl.git

# install dependencies
sudo apt install liburdfdom-dev liboctomap-dev libassimp-dev

elevation mapping cupy

sudo apt install libeigen3-dev

# Change ros-version accordingly
sudo apt install -y ros-noetic-pybind11-catkin ros-noetic-grid-map-core ros-noetic-grid-map-msgs libopencv-dev libeigen3-dev libgmp-dev libmpfr-dev libboost-all-dev

git clone https://github.com/leggedrobotics/elevation_mapping_cupy.git

grid map

git clone https://github.com/ANYbotics/grid_map.git

Build

cd ~/ocs2_ws
rosdep install --from-path src --ignore-src -ry 
catkin build -DCMAKE_BUILD_TYPE=Release

Try running the above install and build instructions and see if it's working

@ppap36
Copy link

ppap36 commented Dec 11, 2023

Thank you so much for helping me, after running the code above.
I got these error messages:

Errors     << grid_map_msgs:cmake /root/ocs2_ws/logs/grid_map_msgs/build.cmake.001.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "std_msgs" with any
  of the following names:

    std_msgsConfig.cmake
    std_msgs-config.cmake

  Add the installation prefix of "std_msgs" to CMAKE_PREFIX_PATH or set
  "std_msgs_DIR" to a directory containing one of the above files.  If
  "std_msgs" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


cd /root/ocs2_ws/build/grid_map_msgs; catkin build --get-env grid_map_msgs | catkin env -si  /usr/bin/cmake /root/ocs2_ws/src/grid_map/grid_map_msgs --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/root/ocs2_ws/devel/.private/grid_map_msgs -DCMAKE_INSTALL_PREFIX=/root/ocs2_ws/install -DCMAKE_BUILD_TYPE=Release; cd -

........................................................
Failed     << grid_map_msgs:cmake
         [ Exited with code 1 ]
Failed    <<< grid_map_msgs
         [ 7.1 seconds ]
________________________________________________________
Errors     << semantic_sensor:cmake /root/ocs2_ws/logs/semantic_sensor/build.cmake.001.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "message_generation" with any of the following names:

    message_generationConfig.cmake
    message_generation-config.cmake

  Add the installation prefix of "message_generation" to CMAKE_PREFIX_PATH or
  set "message_generation_DIR" to a directory containing one of the above
  files.  If "message_generation" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:15 (find_package)


cd /root/ocs2_ws/build/semantic_sensor; catkin build --get-env semantic_sensor | catkin env -si  /usr/bin/cmake /root/ocs2_ws/src/elevation_mapping_cupy/sensor_processing/semantic_sensor --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/root/ocs2_ws/devel/.private/semantic_sensor -DCMAKE_INSTALL_PREFIX=/root/ocs2_ws/install -DCMAKE_BUILD_TYPE=Release; cd -

........................................................
Failed     << semantic_sensor:cmake
         [ Exited with code 1 ]
Failed    <<< semantic_sensor
         [ 7.3 seconds ]
________________________________________________________
Errors     << grid_map_cv:cmake /root/ocs2_ws/logs/grid_map_cv/build.cmake.000.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "cv_bridge" with
  any of the following names:

    cv_bridgeConfig.cmake
    cv_bridge-config.cmake

  Add the installation prefix of "cv_bridge" to CMAKE_PREFIX_PATH or set
  "cv_bridge_DIR" to a directory containing one of the above files.  If
  "cv_bridge" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:9 (find_package)


cd /root/ocs2_ws/build/grid_map_cv; catkin build --get-env grid_map_cv | catkin env -si  /usr/bin/cmake /root/ocs2_ws/src/grid_map/grid_map_cv --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/root/ocs2_ws/devel/.private/grid_map_cv -DCMAKE_INSTALL_PREFIX=/root/ocs2_ws/install -DCMAKE_BUILD_TYPE=Release; cd -

........................................................
Failed     << grid_map_cv:cmake
         [ Exited with code 1 ]
Failed    <<< grid_map_cv
         [ 10.4 seconds ]
________________________________________________________
Errors     << grid_map_costmap_2d:cmake /root/ocs2_ws/logs/grid_map_costmap_2d/build.cmake.000.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "costmap_2d" with
  any of the following names:

    costmap_2dConfig.cmake
    costmap_2d-config.cmake

  Add the installation prefix of "costmap_2d" to CMAKE_PREFIX_PATH or set
  "costmap_2d_DIR" to a directory containing one of the above files.  If
  "costmap_2d" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:9 (find_package)


cd /root/ocs2_ws/build/grid_map_costmap_2d; catkin build --get-env grid_map_costmap_2d | catkin env -si  /usr/bin/cmake /root/ocs2_ws/src/grid_map/grid_map_costmap_2d --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/root/ocs2_ws/devel/.private/grid_map_costmap_2d -DCMAKE_INSTALL_PREFIX=/root/ocs2_ws/install -DCMAKE_BUILD_TYPE=Release; cd -

........................................................
Failed     << grid_map_costmap_2d:cmake
         [ Exited with code 1 ]
Failed    <<< grid_map_costmap_2d
         [ 12.5 seconds ]
________________________________________________________
Errors     << ocs2_core:cmake /root/ocs2_ws/logs/ocs2_core/build.cmake.000.log
CMake Error at /usr/local/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "cmake_modules"
  with any of the following names:

    cmake_modulesConfig.cmake
    cmake_modules-config.cmake

  Add the installation prefix of "cmake_modules" to CMAKE_PREFIX_PATH or set
  "cmake_modules_DIR" to a directory containing one of the above files.  If
  "cmake_modules" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)

It is intersting that these packages are very common, I will keep trying to solve that

@nys601350111
Copy link

Errors << ocs2_anymal_mpc:make /home/k1314/ocs2_ws/logs/ocs2_anymal_mpc/build.make.019.log
/usr/bin/ld: warning: libboost_filesystem.so.1.71.0, needed by /opt/ros/noetic/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.73.0
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_closure_alloc@LIBFFI_CLOSURE_7.0' /usr/bin/ld: /lib/libgdal.so.26: undefined reference to TIFFReadRGBATileExt@LIBTIFF_4.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_pointer@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_prep_closure_loc@LIBFFI_CLOSURE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_uint8@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_prep_cif@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/libgdal.so.26: undefined reference to TIFFReadRGBAStripExt@LIBTIFF_4.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_uint64@LIBFFI_BASE_7.0'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/ocs2_anymal_mpc_dummy_mrt_node.dir/build.make:225:/home/k1314/ocs2_ws/devel/.private/ocs2_anymal_mpc/lib/ocs2_anymal_mpc/ocs2_anymal_mpc_dummy_mrt_node] 错误 1
make[1]: *** [CMakeFiles/Makefile2:465:CMakeFiles/ocs2_anymal_mpc_dummy_mrt_node.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
/usr/bin/ld: warning: libboost_filesystem.so.1.71.0, needed by /opt/ros/noetic/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.73.0
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_closure_alloc@LIBFFI_CLOSURE_7.0' /usr/bin/ld: /lib/libgdal.so.26: undefined reference to TIFFReadRGBATileExt@LIBTIFF_4.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_pointer@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_prep_closure_loc@LIBFFI_CLOSURE_7.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_uint8@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_prep_cif@LIBFFI_BASE_7.0'
/usr/bin/ld: /lib/libgdal.so.26: undefined reference to TIFFReadRGBAStripExt@LIBTIFF_4.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined reference to ffi_type_uint64@LIBFFI_BASE_7.0'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/ocs2_anymal_mpc_mpc_node.dir/build.make:225:/home/k1314/ocs2_ws/devel/.private/ocs2_anymal_mpc/lib/ocs2_anymal_mpc/ocs2_anymal_mpc_mpc_node] 错误 1
make[1]: *** [CMakeFiles/Makefile2:606:CMakeFiles/ocs2_anymal_mpc_mpc_node.dir/all] 错误 2
make: *** [Makefile:141:all] 错误 2
cd /home/k1314/ocs2_ws/build/ocs2_anymal_mpc; catkin build --get-env ocs2_anymal_mpc | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -

...............................................................................
Failed << ocs2_anymal_mpc:make [ Exited with code 2 ]
Failed <<< ocs2_anymal_mpc [ 3.7 seconds ]
Abandoned <<< ocs2 [ Unrelated job failed ]
Abandoned <<< ocs2_anymal [ Unrelated job failed ]
Abandoned <<< ocs2_doc [ Unrelated job failed ]
Abandoned <<< ocs2_robotic_examples [ Unrelated job failed ]
Abandoned <<< ocs2_anymal_loopshaping_mpc [ Unrelated job failed ]
[build] Summary: 77 of 83 packages succeeded.
[build] Ignored: None.
[build] Warnings: 1 packages succeeded with warnings.
[build] Abandoned: 5 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 27.3 seconds total.
How to solve this problem, thank you!

@liuxiaoyiyixiaoliu
Copy link

convex_plane_decompositionConfig.cmake
convex_plane_decomposition-config.cmake

this error can be solved by build
https://github.com/leggedrobotics/elevation_mapping_cupy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants