CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_python_setup.cmake:79

asked 2019-02-11 19:25:44 -0500

mryfmo gravatar image

updated 2019-02-12 02:35:12 -0500

gvdhoorn gravatar image

An error occurs.

Arguments ['zip_safe'] to setup () not supported in catkin devel space in setup.py of tfpose_ros
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_python_setup.cmake: 79 (message):
  catkin_python_setup () version in setup.py (0.1.1) differs from version in
  package.xml (0.1.0)
Call Stack (most recent call first):
  tf - pose - estimation / CMakeLists.txt: 15 (catkin_python_setup)

* Configuring incomplete, errors occurred!
  See also "/home/vagrant/catkin_ws/build/CMakeFiles/CMakeOutput.log".
  See also "/home/vagrant/catkin_ws/build/CMakeFiles/CakeError.log".
  Invoking "cmake" failed

See also "/home/vagrant/catkin_ws/build/CMakeFiles/CakeError.log".

etermining if the pthread_create exist failed with the following output:
Change Dir: / home / vagrant / catkin_ws / build / CMakeFiles / CMakeTmp

Run Build Command: "/ usr / bin / make" "cmTC _ 39291 / fast"
/ usr / bin / make -f CMakeFiles / cmTC_39291.dir / build.make CMakeFiles / cmTC_39291.dir / build
make [1]: Entering directory '/ home / vagrant / catkin_ws / build / CMakeFiles / CMakeTmp'
Building C object CMakeFiles / cmTC_39291.dir / CheckSymbolExists.c.o
/ usr / bin / cc -o CMakeFiles / cmTC_39291.dir / CheckSymbolExists.c.o -c /home/vagrant/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC - 39291
/ usr / bin / cmake - E cmake_link_script CMakeFiles / cmTC - 39291. dir / link.txt - verbose = 1
/ usr / bin / cc CMakeFiles / cmTC_39291.dir / CheckSymbolExists.c.o - o cmTC - 39291 - rdynamic
CMakeFiles / cmTC_39291.dir / CheckSymbolExists.c. o: In function `main ': CheckSymbolExists.c :(. Text + 0x16): undefined reference to `pthread_create '
collect 2: error: ld returned 1 exit status
CMakeFiles / cmTC_39291.dir / build.make: 97: recipe for target 'cmTC_39291' failed
make [1]: *** [cmTC - 39291] Error 1
make [1]: Leaving directory '/ home / vagrant / catkin_ws / build / CMakeFiles / CMakeTmp'
Makefile: 126: recipe for target 'cmTC _ 39291 / fast' failed
make: *** [cmTC - 39291 / fast] Error 2

File /home/vagrant/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/ * * /
#include <pthread.h>

int main (int argc, char ** argv)
{
  (void) argv;

# ifdef pthread_create
  return ((int *) (& pthread_create)) [argc];

# else
  (void) argc;
  return 0;

# endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: / home / vagrant / catkin_ws / build / CMakeFiles / CMakeTmp

Run Build Command: "/ usr / bin / make" "cmTC _ 9 b 53 f / fast"
/ usr / bin / make - f CMakeFiles / cmTC _ 9 b 53 f. dir / build.make CMakeFiles / cmTC _ 9 b 53 f. dir / build
make [1]: Entering directory '/ home / vagrant / catkin_ws / build / CMakeFiles / CMakeTmp'
Building C object CMakeFiles / cmTC _ 9 b 53 f. dir / CheckFunctionExists.c. o
/ usr / bin / cc - DCHECK_FUNCTION_EXISTS = pthread_create - o CMakeFiles / cmTC - 9 b 53 f. dir / CheckFunctionExists.c. o - c / usr / share / cmake - 3.5 / Modules / CheckFunctionExists.c
Linking C executable cmTC - 9 b 53 f
/ usr / bin / cmake - E cmake_link_script CMakeFiles / cmTC - 9 b 53 f. dir / link.txt - verbose = 1
usr / bin / cc - DCHECK_FUNCTION_EXISTS = pthread_create CMakeFiles / cmTC_9 b 53 f. dir / CheckFunctionExists.c. o - o cmTC - 9 b 53 f - rdynamic - lpthreads
/ usr / bin / ld: can not find - lpthreads
collect 2: error: ld returned 1 exit status
CMakeFiles / cmTC _ 9 b 53 f. dir / build.make: 97: recipe for target 'cmTC _ 9 b 53 f' failed
make [1]: *** [cmTC - 9 b 53 ...
(more)
edit retag flag offensive close merge delete

Comments

Cross-post of ildoonet/tf-pose-estimation#394.

@mryfmo: it would have been appreciated if you had told us which pkg(s) you are trying to build. Helping you is almost impossible without that information.

gvdhoorn gravatar imagegvdhoorn ( 2019-02-12 02:37:16 -0500 )edit

As to the problem: it would seem setup.py and package.xml don't agree on the version of the package. If you check the repository you can see that is indeed the case: 0.1.0 vs 0.1.1. That will ..

gvdhoorn gravatar imagegvdhoorn ( 2019-02-12 02:38:12 -0500 )edit

.. probably need to be fixed.

In general though, I'm not sure having a "non-Catkin" setup.py in a ROS package is going to work. But I'm not sure.

gvdhoorn gravatar imagegvdhoorn ( 2019-02-12 02:38:44 -0500 )edit