Invoking "make cmake_check_build_system" failed

3,614 views
Skip to first unread message

Hashir Shafi

unread,
Jun 18, 2016, 1:26:40 PM6/18/16
to swri-ros-pkg-dev
I am using ROS indigo with ubuntu 14.04. I am following the tutorial at http://aeswiki.datasys.swri.edu/rositraining/indigo/Exercises/1.2. I am having an issue in building the meta package robotiq. When I first tried to build it, I simply cloned it in the src sub-directory of my workspace and switched it to devel-indigo branch. Then I run catkin_make in the workspace directory and I got following.

Base path: /home/hashir/industrial_training/training/work/1.2/catkin_ws
Source space: /home/hashir/industrial_training/training/work/1.2/catkin_ws/src
Build space: /home/hashir/industrial_training/training/work/1.2/catkin_ws/build
Devel space: /home/hashir/industrial_training/training/work/1.2/catkin_ws/devel
Install space: /home/hashir/industrial_training/training/work/1.2/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/hashir/industrial_training/training/work/1.2/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/hashir/industrial_training/training/work/1.2/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/hashir/industrial_training/training/work/1.2/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/hashir/industrial_training/training/work/1.2/catkin_ws/devel;/opt/ros/indigo
-- 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/hashir/industrial_training/training/work/1.2/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.18
-- BUILD_SHARED_LIBS is on
WARNING: Package "ompl" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 11 packages in topological order:
-- ~~  - robotiq (metapackage)
-- ~~  - robotiq_c2_model_visualization
-- ~~  - robotiq_ethercat
-- ~~  - robotiq_c_model_control
-- ~~  - robotiq_force_torque_sensor
-- ~~  - robotiq_modbus_rtu
-- ~~  - robotiq_modbus_tcp
-- ~~  - robotiq_s_model_control
-- ~~  - robotiq_joint_state_publisher
-- ~~  - robotiq_action_server
-- ~~  - robotiq_s_model_visualization
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'robotiq'
-- ==> add_subdirectory(robotiq/robotiq)
-- +++ processing catkin package: 'robotiq_c2_model_visualization'
-- ==> add_subdirectory(robotiq/robotiq_c2_model_visualization)
-- +++ processing catkin package: 'robotiq_ethercat'
-- ==> add_subdirectory(robotiq/robotiq_ethercat)
CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "soem" with any of
  the following names:

    soemConfig.cmake
    soem-config.cmake

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


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

    soemConfig.cmake
    soem-config.cmake

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


-- Configuring incomplete, errors occurred!
See also "/home/hashir/industrial_training/training/work/1.2/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/hashir/industrial_training/training/work/1.2/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed


I put it in ROS answers and got a reply to use
rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src
When I ran it I got following

WARNING: Package "ompl" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
#All required rosdeps installed successfully


I sourced devel/setup.bash and again ran catkin_make in the workspace. This I got the following

Base path: /home/hashir/industrial_training/training/work/1.2/catkin_ws
Source space: /home/hashir/industrial_training/training/work/1.2/catkin_ws/src
Build space: /home/hashir/industrial_training/training/work/1.2/catkin_ws/build
Devel space: /home/hashir/industrial_training/training/work/1.2/catkin_ws/devel
Install space: /home/hashir/industrial_training/training/work/1.2/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/hashir/industrial_training/training/work/1.2/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/hashir/industrial_training/training/work/1.2/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/hashir/industrial_training/training/work/1.2/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/hashir/industrial_training/training/work/1.2/catkin_ws/devel;/opt/ros/indigo
-- 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/hashir/industrial_training/training/work/1.2/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.18
-- BUILD_SHARED_LIBS is on
WARNING: Package "ompl" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 11 packages in topological order:
-- ~~ - robotiq (metapackage)
-- ~~ - robotiq_c2_model_visualization
-- ~~ - robotiq_ethercat
-- ~~ - robotiq_c_model_control
-- ~~ - robotiq_force_torque_sensor
-- ~~ - robotiq_modbus_rtu
-- ~~ - robotiq_modbus_tcp
-- ~~ - robotiq_s_model_control
-- ~~ - robotiq_joint_state_publisher
-- ~~ - robotiq_action_server
-- ~~ - robotiq_s_model_visualization
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'robotiq'
-- ==> add_subdirectory(robotiq/robotiq)
-- +++ processing catkin package: 'robotiq_c2_model_visualization'
-- ==> add_subdirectory(robotiq/robotiq_c2_model_visualization)
-- +++ processing catkin package: 'robotiq_ethercat'
-- ==> add_subdirectory(robotiq/robotiq_ethercat)
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:176 (message):
catkin_package() CATKIN_DEPENDS on 'soem', which has been found in
'/opt/ros/indigo/share/soem/soem-config.cmake', but it is not a catkin
package
Call Stack (most recent call first):
/opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:98 (_catkin_package)
robotiq/robotiq_ethercat/CMakeLists.txt:10 (catkin_package)


-- Configuring incomplete, errors occurred!
See also "/home/hashir/industrial_training/training/work/1.2/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/hashir/industrial_training/training/work/1.2/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

I am stuck here and don't know what to do now. Please help me if anyone knows about it.


Shaun Edwards

unread,
Jun 18, 2016, 9:21:36 PM6/18/16
to swri-ros-pkg-dev
It looks like you have found an issue in the training materials and/or the robotiq package.  Please try the following command to explicitly install the "soem" package: 

sudo apt-get install ros-indigo-soem

After this completes, try catkin_make again.


--
You received this message because you are subscribed to the Google Groups "swri-ros-pkg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swri-ros-pkg-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

G.A. vd. Hoorn - 3ME

unread,
Jun 19, 2016, 4:59:54 AM6/19/16
to swri-ros...@googlegroups.com
On 19-6-2016 3:21, Shaun Edwards wrote:
> It looks like you have found an issue in the training materials and/or the
> robotiq package. Please try the following command to explicitly install
> the "soem" package:
>
> sudo apt-get install ros-indigo-soem
>
> After this completes, try catkin_make again.

Looking at the error message, the soem package has been installed (by
`rosdep install ..`), but `robotiq_ethercat` lists it as a
`CATKIN_DEPENDS`, which soem isn't (anymore), hence the error.

This will probably need to be fixed in `robotiq_ethercat`.


Gijs

Hashir Shafi

unread,
Jun 21, 2016, 1:32:46 PM6/21/16
to swri-ros...@googlegroups.com
Thank you Shaun for looking into my problem  but it still shows the same error. I think Mr. G.A. vd. Hoorn is right but I have no idea how to deal with this issue. It will be great if somebody solves this issue.

You received this message because you are subscribed to a topic in the Google Groups "swri-ros-pkg-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swri-ros-pkg-dev/341BJgGWv4E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swri-ros-pkg-d...@googlegroups.com.

G.A. vd. Hoorn - 3ME

unread,
Jun 21, 2016, 1:35:33 PM6/21/16
to swri-ros...@googlegroups.com
On 21-6-2016 19:32, Hashir Shafi wrote:
> Thank you Shaun for looking into my problem but it still shows the same
> error. I think Mr. G.A. vd. Hoorn is right but I have no idea how to deal
> with this issue. It will be great if somebody solves this issue.

If I'm correct, the problem is most like at [1].

Move the 'soem' in that line to the line below it, and prefix with
'DEPENDS'.

Then try building the workspace again.

If it now works, it'd be nice if you could open a PR and submit a fix to
the robotiq repository.


Gijs

[1]
https://github.com/ros-industrial/robotiq/blob/13bc1ad0735d0dbdd3f7a98f98168c40322caf2b/robotiq_ethercat/CMakeLists.txt#L12

Hashir Shafi

unread,
Jun 22, 2016, 12:30:33 PM6/22/16
to swri-ros...@googlegroups.com
Thanks a lot. It's working. I am sorry I didn't get the last line. I will surely submit a fix but please tell me the way how to do it.

Shaun Edwards

unread,
Jun 22, 2016, 12:34:18 PM6/22/16
to swri-ros...@googlegroups.com
You will need to submit a PR through github: http://wiki.ros.org/Industrial/Tutorials/IndustrialPullRequestReview 

For a change such as this, you can probably edit the file through the github website.  It will walk you through the PR process.

You received this message because you are subscribed to the Google Groups "swri-ros-pkg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swri-ros-pkg-d...@googlegroups.com.

Shaun Edwards

unread,
Jun 25, 2016, 2:23:45 PM6/25/16
to swri-ros...@googlegroups.com
Hashir,

I tried to recreate this problem, but can't seem to get things to fail under Indigo.  I did get a failure on Jade.  Are you using Indigo or Jade?


-Shaun

Hashir Shafi

unread,
Jun 27, 2016, 3:12:21 AM6/27/16
to swri-ros...@googlegroups.com
I am using Indigo.

Hashir Shafi

unread,
Jun 27, 2016, 5:18:58 AM6/27/16
to swri-ros...@googlegroups.com
PR submitted with the modified CMakeLists.txt of robotiq_ethercat attached.
Reply all
Reply to author
Forward
0 new messages