How to use cv_bridge with Python3

asked 2019-12-11 03:47:54 -0600

pumpkin gravatar image

Hello there, I have a computer with ros kinetic and python2, but with some reason, I have to use tensorflow in python3, so I tried to build cv_bridge follow this.

But it doesn't make it, I also tries to do cmake and make in catkin_ws/src/vision_opencv/cv_bridge/build/. And here is my cmakelist.txt:

if(NOT ANDROID)
  find_package(PythonLibs)
  message("${PYTHONLIBS_VERSION_STRING}")
#   if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3)
#     find_package(Boost REQUIRED python)
#   else()
  find_package(Boost REQUIRED python-py35)
#   endif()
else()

And cmake give the msg:

note: in expansion of macro ‘import_array’
 import_array( );

Any one know how to solove it?

edit retag flag offensive close merge delete