Apollo: build rosbag_to_record failed

Created on 30 Sep 2019  ·  1Comment  ·  Source: ApolloAuto/apollo

System information

  • **OS Platform and Distribution ubuntu16.04
  • **Apollo installed from source
  • **Apollo version 5.0
bazel build modules/data/tools/rosbag_to_record 
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
INFO: (09-30 02:43:40.290) Found 1 target...
ERROR: (09-30 02:44:42.321) /apollo/modules/data/tools/rosbag_to_record/BUILD:5:1: C++ compilation of rule '//modules/data/tools/rosbag_to_record:rosbag_to_record' failed (Exit 1).
In file included from modules/data/tools/rosbag_to_record/rosbag_to_record.cc:17:0:
external/ros/include/rosbag/bag.h: In member function 'void rosbag::Bag::doWrite(const string&, const ros::Time&, const T&, const boost::shared_ptr<std::map<std::basic_string<char>, std::basic_string<char> > >&, std::string, std::string, std::string)':
external/ros/include/rosbag/bag.h:594:85: error: there are no arguments to 'logDebug' that depend on a template parameter, so a declaration of 'logDebug' must be available [-fpermissive]
         logDebug("  curr_chunk_size=%d (threshold=%d)", chunk_size, chunk_threshold_);
                                                                                     ^
external/ros/include/rosbag/bag.h:594:85: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
external/ros/include/rosbag/bag.h: In member function 'void rosbag::Bag::writeMessageDataRecord(uint32_t, const ros::Time&, const T&)':
external/ros/include/rosbag/bag.h:630:114: error: there are no arguments to 'logDebug' that depend on a template parameter, so a declaration of 'logDebug' must be available [-fpermissive]
               (unsigned long long) file_.getOffset(), getChunkOffset(), conn_id, time.sec, time.nsec, msg_ser_len);
                                                                                                                  ^
Target //modules/data/tools/rosbag_to_record:rosbag_to_record failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: (09-30 02:44:42.443) Elapsed time: 63.265s, Critical Path: 29.86s

but build normal using bash apollo.sh build is ok:

###@in_dev_docker:/apollo$ bash apollo.sh build --local_resources 10240,6.0,6.0
System check passed. Build continue ...
[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
Running build under GPU mode. GPU is required to run the build.
[INFO] Start building, please wait ...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
[INFO] Building on x86_64...
[INFO] Building with --jobs=12 --ram_utilization_factor 80 for x86_64
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
INFO: (09-30 02:57:02.994) Found 3757 targets...
INFO: (09-30 02:57:05.033) Elapsed time: 4.854s, Critical Path: 0.35s
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
INFO: (09-30 02:57:07.392) Found 3757 targets...
INFO: (09-30 02:57:07.594) Elapsed time: 1.634s, Critical Path: 0.00s
1============================
[ OK ] Build passed!
[INFO] Took 8 seconds

if we commit logDebug() in bag.sh, then will output link error like this:

INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
INFO: (09-30 08:13:42.389) Found 4 targets...
ERROR: (09-30 08:14:06.672) /apollo/modules/data/tools/rosbag_to_record/BUILD:5:1: Linking of rule '//modules/data/tools/rosbag_to_record:rosbag_to_record' failed (Exit 1).
/usr/bin/ld: warning: libconsole_bridge.so.0.2, needed by bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcpp_common.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_imgproc.so.2.4, needed by bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_highgui.so.2.4, needed by bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_core.so.2.4, needed by bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_contrib.so.2.4, needed by bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: liblog4cxx.so.10, needed by bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole.so, not found (try using -rpath or -rpath-link)
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::AppenderSkeleton()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::spi::OptionHandler::getClass() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::spi::LocationInfo::getLineNumber() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::Mat::copySize(cv::Mat const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `typeinfo for log4cxx::helpers::ObjectImpl'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::operator-(cv::Mat const&, cv::Scalar_<double> const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `typeinfo for log4cxx::helpers::ObjectPtrBase'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::File::~File()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectPtrBase::exchange(void**, void*)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Logger::getLogger(char const*)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::mixChannels(cv::_InputArray const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectImpl::~ObjectImpl()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::File::File(std::string const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::getClass() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::spi::LocationInfo::LocationInfo(char const*, char const*, int)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectImpl::~ObjectImpl()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole.so: undefined reference to `log4cxx::Level::getDebug()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::Mat::setTo(cv::_InputArray const&, cv::_InputArray const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole.so: undefined reference to `log4cxx::Level::getError()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::clearFilters()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::spi::OptionHandler::getStaticClass()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Logger::getRootLogger()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Appender::getStaticClass()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::releaseRef() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectPtrBase::~ObjectPtrBase()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Logger::getLogger(std::string const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `virtual thunk to log4cxx::helpers::ObjectImpl::addRef() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole.so: undefined reference to `log4cxx::Level::getFatal()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Logger::isEnabledFor(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const&) const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectImpl::ObjectImpl()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `typeinfo for log4cxx::AppenderSkeleton'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::fastFree(void*)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libroscpp.so: undefined reference to `YAML::LoadFile(std::string const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::addRef() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::PropertyConfigurator::configure(log4cxx::File const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libroscpp.so: undefined reference to `YAML::detail::node_data::set_scalar(std::string const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `typeinfo for log4cxx::spi::OptionHandler'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `virtual thunk to log4cxx::AppenderSkeleton::addRef() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectImpl::releaseRef() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::noArray()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::spi::LocationInfo::getMethodName() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::_InputArray::_InputArray(double const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `vtable for cv::_InputArray'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectImpl::addRef() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT<log4cxx::Level> const&, std::string const&, log4cxx::spi::LocationInfo const&) const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::_InputArray::_InputArray(std::vector<cv::Mat, std::allocator<cv::Mat> > const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `VTT for log4cxx::Appender'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::Object::getClass() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::applyColorMap(cv::_InputArray const&, cv::_OutputArray const&, int)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole.so: undefined reference to `log4cxx::Level::getWarn()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `virtual thunk to log4cxx::AppenderSkeleton::releaseRef() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `vtable for log4cxx::helpers::Object'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `virtual thunk to log4cxx::helpers::ObjectImpl::~ObjectImpl()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::Mat::copyTo(cv::_OutputArray const&) const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::Mat::deallocate()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::Mutex::~Mutex()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole.so: undefined reference to `log4cxx::Level::getInfo()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::Object::getStaticClass()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectImpl::~ObjectImpl()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::Pool::~Pool()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Appender::getClass() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::setOption(std::string const&, std::string const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `vtable for log4cxx::AppenderSkeleton'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Logger::getLoggerRepository() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcpp_common.so: undefined reference to `console_bridge::log(char const*, int, console_bridge::LogLevel, char const*, ...)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::helpers::ObjectPtrBase::ObjectPtrBase()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `typeinfo for log4cxx::Appender'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::addFilter(log4cxx::helpers::ObjectPtrT<log4cxx::spi::Filter> const&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libroscpp.so: undefined reference to `YAML::detail::node_data::empty_scalar'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::spi::LocationInfo::getFileName() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::doAppend(log4cxx::helpers::ObjectPtrT<log4cxx::spi::LoggingEvent> const&, log4cxx::helpers::Pool&)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `virtual thunk to log4cxx::helpers::ObjectImpl::releaseRef() const'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::Mat::create(int, int const*, int)'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `virtual thunk to log4cxx::helpers::ObjectImpl::~ObjectImpl()'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/librosconsole_log4cxx.so: undefined reference to `VTT for log4cxx::AppenderSkeleton'
bazel-out/local-fastbuild/bin/_solib_k8/_U@ros_S_S_Cros_Ucommon___Uexternal_Sros_Slib/libcv_bridge.so: undefined reference to `cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const'
collect2: error: ld returned 1 exit status
INFO: (09-30 08:14:06.679) Elapsed time: 25.197s, Critical Path: 8.29s
Cyber Help wanted

Most helpful comment

i have fixed this problem, it's a bit troublesome, the main step are as follows:

  1. source /home/tmp/ros/setup.sh
  2. install all the lost opencv*.so, just like sudo apt install libopencv-contrib2.4
  3. reinstall log4cxx refer as https://www.cnblogs.com/wangshaowei/p/11266403.html
  4. reinstall yaml-cpp, sudo mv /usr/lib/x86_64-linux-gnu/libyaml-cpp.so.0.5 && sudo apt remove libyaml-cpp-dev && sudo apt install libyaml-cpp0.5

>All comments

i have fixed this problem, it's a bit troublesome, the main step are as follows:

  1. source /home/tmp/ros/setup.sh
  2. install all the lost opencv*.so, just like sudo apt install libopencv-contrib2.4
  3. reinstall log4cxx refer as https://www.cnblogs.com/wangshaowei/p/11266403.html
  4. reinstall yaml-cpp, sudo mv /usr/lib/x86_64-linux-gnu/libyaml-cpp.so.0.5 && sudo apt remove libyaml-cpp-dev && sudo apt install libyaml-cpp0.5
Was this page helpful?
0 / 5 - 0 ratings

Related issues

CCodie picture CCodie  ·  3Comments

c-xyli picture c-xyli  ·  3Comments

ahuer2435 picture ahuer2435  ·  3Comments

chilihua picture chilihua  ·  3Comments

lyletbjohnson picture lyletbjohnson  ·  3Comments