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

Cannot Compile #12

Closed
sushmithabhagya opened this issue Aug 31, 2022 · 2 comments
Closed

Cannot Compile #12

sushmithabhagya opened this issue Aug 31, 2022 · 2 comments

Comments

@sushmithabhagya
Copy link

I was not able to install the packages, I got an error while running the command
catkin_make -j1

Below is the error message.

Could NOT find pcl_conversions (missing: pcl_conversions_DIR)
Could not find the required component 'pcl_conversions'. 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 /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "pcl_conversions"
with any of the following names:-- 

Could you please let me know how to solve this issue.

@sushmithabhagya sushmithabhagya changed the title Cannot Compie Cannot Compile Aug 31, 2022
@SamuraiChamploo
Copy link
Member

SamuraiChamploo commented Aug 31, 2022

You can run the below command before compile
sudo apt-get install ros-XXX-pcl-conversions
where XXX is the version of your ROS

@sushmithabhagya
Copy link
Author

sushmithabhagya commented Aug 31, 2022

Thankyou for your response, the above error is now solved. But cannot compile though, below is the new error with the riviz package.

-- Could NOT find rviz (missing: rviz_DIR)
-- 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.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "rviz" with any of
  the following names:

    rvizConfig.cmake
    rviz-config.cmake

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


-- Configuring incomplete, errors occurred!
See also "/home/fruc_docker/catkin_ws/src/Swarm-Formation/build/CMakeFiles/CMakeOutput.log".
See also "/home/fruc_docker/catkin_ws/src/Swarm-Formation/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

I tried with sudo apt-get install ros-noetic-rviz, but it says

Err:1 http://packages.ros.org/ros/ubuntu focal/main amd64 ros-noetic-rviz amd64 1.14.14-1focal.20220212.160156
  404  Not Found [IP: 64.50.233.100 80]
E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-noetic-rviz/ros-noetic-rviz_1.14.14-1focal.20220212.160156_amd64.deb  404  Not Found [IP: 64.50.233.100 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Issue has been resolved, thankyou so much

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

2 participants