Catkin_make Problem ( openCV , Python , ROS Kinetic )

asked 2018-02-15 10:14:15 -0500

ROS-Noob gravatar image

updated 2018-02-15 10:17:19 -0500

Hey World

it's been 2 days that I'm looking for a solution to my problem, I'm working on a vision system using -ROS Kinetic -OPenCv -Python 2.7 I work on the ORK package my problem and when I use the command catkin_make I see the next error`

[ 6%] Built target std_msgs_generate_messages_eus [ 6%] Built target geometry_msgs_generate_messages_lisp /usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpython2.7.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status ecto/src/lib/CMakeFiles/ecto.dir/build.make:624: recipe for target '/home/noob/ws/devel/lib/libecto.so.0.6.12' failed make[2]: * [/home/noob/ws/devel/lib/libecto.so.0.6.12] Error 1 CMakeFiles/Makefile2:524: recipe for target 'ecto/src/lib/CMakeFiles/ecto.dir/all' failed make[1]: [ecto/src/lib/CMakeFiles/ecto.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: ** [all] Error 2

Invoking "make -j4 -l4" failed `

I think the problem comes from python or opencv, I do not understand this mistake; I am a beginner, thank you for guiding me

Best regards

edit retag flag offensive close merge delete

Comments

Looks to me like you somehow installed a package that created /usr/local/lib/libpython2.7.a, and that that lib was compiled using incorrect flags. The fact that it's in /usr/local/ likely means this package was not installed using apt-get. Did you install Python from source? A different way?

jarvisschultz gravatar image jarvisschultz  ( 2018-02-15 12:50:14 -0500 )edit

This post on stack overflow discusses the same error https://stackoverflow.com/questions/4...

jarvisschultz gravatar image jarvisschultz  ( 2018-02-15 12:50:35 -0500 )edit