ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I have the same error here. I attach the -j1 output (I am not allowed to comment).
==> Processing catkin package: 'cv_bridge'
==> Creating build directory: 'build_isolated/cv_bridge'
==> Building with env: '/Users/mllofriu/ros_catkin_ws/install_isolated/env.sh'
==> cmake /Users/mllofriu/ros_catkin_ws/src/cv_bridge -DCATKIN_DEVEL_PREFIX=/Users/mllofriu/ros_catkin_ws/devel_isolated/cv_bridge -DCMAKE_INSTALL_PREFIX=/Users/mllofriu/ros_catkin_ws/install_isolated
==> make -j1 in '/Users/mllofriu/ros_catkin_ws/build_isolated/cv_bridge'
Scanning dependencies of target cv_bridge
[ 50%] Building CXX object src/CMakeFiles/cv_bridge.dir/cv_bridge.cpp.o
Linking CXX shared library /Users/mllofriu/ros_catkin_ws/devel_isolated/cv_bridge/lib/libcv_bridge.dylib
ld: warning: directory not found for option '-L/Users/mllofriu/ros_catkin_ws/install_isolated/share/OpenCV/3rdparty/lib'
[ 50%] Built target cv_bridge
Scanning dependencies of target cv_bridge_boost
[100%] Building CXX object src/CMakeFiles/cv_bridge_boost.dir/module.cpp.o
Linking CXX shared library /Users/mllofriu/ros_catkin_ws/devel_isolated/cv_bridge/lib/python2.7/site-packages/cv_bridge/boost/cv_bridge_boost.dylib
ld: warning: directory not found for option '-L/Users/mllofriu/ros_catkin_ws/install_isolated/share/OpenCV/3rdparty/lib'
Undefined symbols for architecture x86_64:
"_PyErr_SetString", referenced from:
failmsg(char const*, ...) in module.cpp.o
"_PyExc_TypeError", referenced from:
failmsg(char const*, ...) in module.cpp.o
"_PyImport_ImportModule", referenced from:
init_module_cv_bridge_boost() in module.cpp.o
"_PyInt_FromLong", referenced from:
boost::python::to_python_value<int const&>::operator()(int const&) const in module.cpp.o
"_PyInt_Type", referenced from:
boost::python::to_python_value<int const&>::get_pytype() const in module.cpp.o
"_PyObject_AsWriteBuffer", referenced from:
convert_to_CvMat(_object*, CvMat**, char const*) in module.cpp.o
"_PyObject_CallObject", referenced from:
FROM_CvMat(CvMat*) in module.cpp.o
"_PyObject_GetAttrString", referenced from:
FROM_CvMat(CvMat*) in module.cpp.o
"_PyString_AsString", referenced from:
convert_to_CvMat(_object*, CvMat**, char const*) in module.cpp.o
"_Py_BuildValue", referenced from:
FROM_CvMat(CvMat*) in module.cpp.o
"__Py_NoneStruct", referenced from:
boost::python::api::object::object() in module.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/mllofriu/ros_catkin_ws/devel_isolated/cv_bridge/lib/python2.7/site-packages/cv_bridge/boost/cv_bridge_boost.dylib] Error 1
make[1]: *** [src/CMakeFiles/cv_bridge_boost.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'cv_bridge':
Command '/Users/mllofriu/ros_catkin_ws/install_isolated/env.sh make -j1' returned non-zero exit status 2
Command failed, exiting.