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_make error on cmake #4

Open
aaryswastaken opened this issue Dec 1, 2019 · 5 comments
Open

catkin_make error on cmake #4

aaryswastaken opened this issue Dec 1, 2019 · 5 comments

Comments

@aaryswastaken
Copy link

aaryswastaken commented Dec 1, 2019

Hi,
I bought a neato xv-11 last year and I now have time to interrest me on. So I tried some python scripts in order to make preliminary tests. And now I decided to implement it in ROS and on catkin_make I have troubles in the cmake with the ros-sensor-message :

Running command: "make cmake_check_build_system" in "/home/vsahler/catkin_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/vsahler/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/vsahler/catkin_ws/devel
-- This workspace overlays: /home/vsahler/catkin_ws/devel
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/vsahler/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- nosetests not found, Python tests can not be run (try installing package 'python-nose')
-- catkin 0.7.8
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - xv_11_laser_driver
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'xv_11_laser_driver'
-- ==> add_subdirectory(xv_11_laser_driver)
-- Could NOT find sensor_msgs (missing: sensor_msgs_DIR)
-- Could not find the required component 'sensor_msgs'. 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 "sensor_msgs" with
any of the following names:

sensor_msgsConfig.cmake
sensor_msgs-config.cmake

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

-- Configuring incomplete, errors occurred!
See also "/home/vsahler/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/vsahler/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:292: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed`

So I tried an sudo apt install ros-sensor-msgs and it didn't work.

I had a lot of troubles while Installing ROS because I'm on mint 19. I had installed ROS on a ubuntu last year and I had no troubles while playing with this type of message

Hope you can help me

@jetdillo
Copy link
Collaborator

jetdillo commented Dec 2, 2019 via email

@chrisl8
Copy link

chrisl8 commented Dec 2, 2019

You say you had "a lot of troubles", perhaps ROS isn't really installed? Did you complete the ROS installation?
http://wiki.ros.org/melodic/Installation/Ubuntu

The TL;DR version is:

sudo apt install -y ros-melodic-desktop-full
sudo sh -c "rosdep init"
rosdep update
source /opt/ros/melodic/setup.bash
sudo apt install -y python-rosinstall python-rosinstall-generator python-wstool build-essential

Then for this source

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ~/catkin_ws/
catkin_make
source ~/catkin_ws/devel/setup.bash
rospack profile
git clone https://github.com/chrisl8/xv_11_laser_driver.git
cd ~/catkin_ws
catkin_make
source ~/catkin_ws/devel/setup.bash
rospack profile

Sorry to just repeat the basic instructions, but I thought it might help.

@aaryswastaken
Copy link
Author

I think I'm gonna give up ...
The problem was that when I followed the steps, and there was "iterative unsolvable dependencies", when I run
sudo apt install ros-kinetic-desktop-full
I had 3 unmet dependencies. I think I have tried everything and nothing worked so I don't remember what I did but I managed to install the package called ros-desktop-full which worked correctly (for the fast testable things like rviz, roscore and some test commands.

Now when I tried this node, the catkin compilation gets some troubles about the sensor-msgs package, so with a apt-cache, I searched to package and the only thing I found was ros-sensor-msgs, with no ros package specified (like when I installated the destop full) and the problem is the same ...

@aaryswastaken
Copy link
Author

Maybe reinstalling the os for ubuntu will fix the problem but if I can't do it, it can be better ...

@jetdillo
Copy link
Collaborator

jetdillo commented Dec 3, 2019 via email

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

3 participants