Hi, I'm trying to build this project in docker with ubuntu 20.04, gcc/g++7.5 installed.
I struggle to build this project a lot, but still I failed to build generate_labels node in traj_sampler pkg.
Below is the error I got:
root@tw:~/agile_autonomy_ws/catkin_aa/src/agile_autonomy/data_generation/traj_sampler# catkin build traj_sampler
---------------------------------------------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/noetic
Workspace: /root/agile_autonomy_ws/catkin_aa
---------------------------------------------------------------------------------------------
Build Space: [exists] /root/agile_autonomy_ws/catkin_aa/build
Devel Space: [exists] /root/agile_autonomy_ws/catkin_aa/devel
Install Space: [unused] /root/agile_autonomy_ws/catkin_aa/install
Log Space: [exists] /root/agile_autonomy_ws/catkin_aa/logs
Source Space: [exists] /root/agile_autonomy_ws/catkin_aa/src
DESTDIR: [unused] None
---------------------------------------------------------------------------------------------
Devel Space Layout: merged
Install Space Layout: None
---------------------------------------------------------------------------------------------
Additional CMake Args: -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-fdiagnostics-color
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
---------------------------------------------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
---------------------------------------------------------------------------------------------
Workspace configuration appears valid.
---------------------------------------------------------------------------------------------
[build] Found '70' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> catkin_simple
Finished <<< catkin_simple [ 0.1 seconds ]
Starting >>> eigen_catkin
Starting >>> gflags_catkin
Starting >>> minimum_jerk_trajectories
Starting >>> quadrotor_msgs
Finished <<< minimum_jerk_trajectories [ 0.1 seconds ]
Finished <<< gflags_catkin [ 0.1 seconds ]
Starting >>> glog_catkin
Finished <<< eigen_catkin [ 0.1 seconds ]
Finished <<< quadrotor_msgs [ 0.1 seconds ]
Starting >>> quadrotor_common
Finished <<< glog_catkin [ 0.1 seconds ]
Starting >>> eigen_checks
Finished <<< quadrotor_common [ 0.1 seconds ]
Starting >>> polynomial_trajectories
Starting >>> position_controller
Starting >>> state_predictor
Finished <<< eigen_checks [ 0.1 seconds ]
Starting >>> minkindr
Finished <<< polynomial_trajectories [ 0.1 seconds ]
Finished <<< state_predictor [ 0.1 seconds ]
Finished <<< position_controller [ 0.1 seconds ]
Finished <<< minkindr [ 0.1 seconds ]
Starting >>> rpg_common
Finished <<< rpg_common [ 0.1 seconds ]
Starting >>> trajectory_generation_helper
Finished <<< trajectory_generation_helper [ 0.1 seconds ]
Starting >>> autopilot
Finished <<< autopilot [ 0.1 seconds ]
Starting >>> agile_autonomy_utils
Starting >>> rpg_mpc
Finished <<< rpg_mpc [ 0.2 seconds ]
Finished <<< agile_autonomy_utils [ 0.1 seconds ]
Starting >>> traj_sampler
________________________________________________________________________________________________________
Warnings << traj_sampler:check /root/agile_autonomy_ws/catkin_aa/logs/traj_sampler/build.check.014.log
CMake Warning (dev) at CMakeLists.txt:1 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
Detected cmake version 3.22.0-rc2
CMake Deprecation Warning at /usr/src/googletest/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at /usr/src/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at /usr/src/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Searching open3D in /usr/local/lib/cmake/
CMake Deprecation Warning at /root/lib/Open3D/lib/cmake/Open3D/Open3DConfig.cmake:18 (cmake_policy):
The OLD behavior for policy CMP0072 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:12 (find_package)
Found OpenMP TRUE 4 0.13.0 OpenMP::OpenMP_CXX
Found Open3D 0.13.0
cd /root/agile_autonomy_ws/catkin_aa/build/traj_sampler; catkin build --get-env traj_sampler | catkin env -si /usr/bin/make cmake_check_build_system; cd -
........................................................................................................
________________________________________________________________________________________________________
Errors << traj_sampler:make /root/agile_autonomy_ws/catkin_aa/logs/traj_sampler/build.make.012.log
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `generate_label::GenerateLabel::completedThreadCallback(boost::shared_ptr<std_msgs::Int8_<std::allocator<void> > const> const&)':
generate_label.cpp:(.text+0x449): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `generate_label::GenerateLabel::loadParameters()':
generate_label.cpp:(.text+0x51c): undefined reference to `ros::NodeHandle::getParam(std::string const&, std::string&) const'
/usr/bin/ld: generate_label.cpp:(.text+0x5d8): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x6cf): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x7ae): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x89d): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x990): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o:generate_label.cpp:(.text+0xa83): more undefined references to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)' follow
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `generate_label::GenerateLabel::loadParameters()':
generate_label.cpp:(.text+0x157d): undefined reference to `ros::NodeHandle::getParam(std::string const&, int&) const'
/usr/bin/ld: generate_label.cpp:(.text+0x15c9): undefined reference to `ros::NodeHandle::getParam(std::string const&, int&) const'
/usr/bin/ld: generate_label.cpp:(.text+0x164a): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x172e): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x180f): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x18f3): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `computeReferenceTrajectoryPosBased(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&, quadrotor_common::Trajectory const&, double, quadrotor_common::Trajectory*, int*)':
generate_label.cpp:(.text+0x2e25): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `generate_label::GenerateLabel::GenerateLabel(ros::NodeHandle const&, ros::NodeHandle const&)':
generate_label.cpp:(.text+0x5294): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x530d): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x532a): undefined reference to `rpg_mpc::MpcController<double>::MpcController(ros::NodeHandle const&, ros::NodeHandle const&, std::string const&)'
/usr/bin/ld: generate_label.cpp:(.text+0x608a): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: generate_label.cpp:(.text+0x60d9): undefined reference to `ros::this_node::getName()'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `generate_label::GenerateLabel::generateInitialGuesses(boost::shared_ptr<std_msgs::Bool_<std::allocator<void> > const> const&)':
generate_label.cpp:(.text+0x8ac9): undefined reference to `logging::Logging::save_rollout_to_csv(std::vector<TrajectoryExt, std::allocator<TrajectoryExt> > const&, int, int, double, std::string, std::string, std::string, std::string, bool)'
/usr/bin/ld: generate_label.cpp:(.text+0x90b3): undefined reference to `logging::Logging::save_rollout_to_csv(std::vector<TrajectoryExt, std::allocator<TrajectoryExt> > const&, int, int, double, std::string, std::string, std::string, std::string, bool)'
/usr/bin/ld: generate_label.cpp:(.text+0x986c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `generate_label::GenerateLabel::generateLabelCallback(boost::shared_ptr<std_msgs::Bool_<std::allocator<void> > const> const&)':
generate_label.cpp:(.text+0xb58c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: generate_label.cpp:(.text+0xb827): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `bool quadrotor_common::getParam<int>(std::string const&, int&, int const&, ros::NodeHandle const&)':
generate_label.cpp:(.text._ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x37): undefined reference to `ros::NodeHandle::getParam(std::string const&, int&) const'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x1c2): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x215): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x333): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIiEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x37d): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `bool quadrotor_common::getParam<double>(std::string const&, double&, double const&, ros::NodeHandle const&)':
generate_label.cpp:(.text._ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x37): undefined reference to `ros::NodeHandle::getParam(std::string const&, double&) const'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x1c8): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x21d): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x345): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIdEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x38d): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `bool quadrotor_common::getParam<bool>(std::string const&, bool&, bool const&, ros::NodeHandle const&)':
generate_label.cpp:(.text._ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x37): undefined reference to `ros::NodeHandle::getParam(std::string const&, bool&) const'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x1c4): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x21d): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x344): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
/usr/bin/ld: generate_label.cpp:(.text._ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE[_ZN16quadrotor_common8getParamIbEEbRKSsRT_RKS3_RKN3ros10NodeHandleE]+0x38d): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `void ros::Publisher::publish<std_msgs::Bool_<std::allocator<void> > >(std_msgs::Bool_<std::allocator<void> > const&) const':
generate_label.cpp:(.text._ZNK3ros9Publisher7publishIN8std_msgs5Bool_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8std_msgs5Bool_ISaIvEEEEEvRKT_]+0x2ca): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `void ros::Publisher::publish<std_msgs::Int8_<std::allocator<void> > >(std_msgs::Int8_<std::allocator<void> > const&) const':
generate_label.cpp:(.text._ZNK3ros9Publisher7publishIN8std_msgs5Int8_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN8std_msgs5Int8_ISaIvEEEEEvRKT_]+0x2ca): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `generate_label::GenerateLabel::GenerateLabel()':
generate_label.cpp:(.text._ZN14generate_label13GenerateLabelC2Ev[_ZN14generate_label13GenerateLabelC5Ev]+0x86): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: generate_label.cpp:(.text._ZN14generate_label13GenerateLabelC2Ev[_ZN14generate_label13GenerateLabelC5Ev]+0xe1): undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `main':
generate_label.cpp:(.text.startup+0x4a): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<std_msgs::Int8_<std::allocator<void> > const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
generate_label.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN8std_msgs5Int8_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN8std_msgs5Int8_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x257): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: CMakeFiles/generate_label.dir/src/generate_label.cpp.o: in function `ros::SubscriptionCallbackHelperT<boost::shared_ptr<std_msgs::Bool_<std::allocator<void> > const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
generate_label.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN8std_msgs5Bool_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN5boost10shared_ptrIKN8std_msgs5Bool_ISaIvEEEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x257): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
/usr/bin/ld: /root/agile_autonomy_ws/catkin_aa/devel/lib/libtraj_sampler.so: undefined reference to `google::base::CheckOpMessageBuilder::NewString()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/generate_label.dir/build.make:410: /root/agile_autonomy_ws/catkin_aa/devel/lib/traj_sampler/generate_label] Error 1
make[1]: *** [CMakeFiles/Makefile2:1730: CMakeFiles/generate_label.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
cd /root/agile_autonomy_ws/catkin_aa/build/traj_sampler; catkin build --get-env traj_sampler | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -
........................................................................................................
Failed << traj_sampler:make [ Exited with code 2 ]
Failed <<< traj_sampler [ 1.4 seconds ]
[build] Summary: 17 of 18 packages succeeded.
[build] Ignored: 52 packages were skipped or are blacklisted.
[build] Warnings: 1 packages succeeded with warnings.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 2.8 seconds total.
root@tw:~/agile_autonomy_ws/catkin_aa/src/agile_autonomy/data_generation/traj_sampler#
I checked or tried below
- I checked gcc/g++ version, which were 7.5 each.
- I checked ${catkin_LIBRARIES} variable in CMakeLists.txt, and confirmed if necessary library(libroscpp.so) is included.
- I tried not using catkin_simple and tried ordinary CMakelists.txt format
Did anyone give me hinks about this?
Thanks in advance.