Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译错误 #2

Open
liuxin-SH opened this issue May 11, 2022 · 2 comments
Open

编译错误 #2

liuxin-SH opened this issue May 11, 2022 · 2 comments

Comments

@liuxin-SH
Copy link

您好,感谢您的开源,但是我编译时出现了以下错误,
error: no matching function for call to ‘xslam_ros::vins_mono::ScopedRosLogSink::ToString(const LogSeverity&, const char*, const int&, const tm* const&, const char* const&, const size_t&)’
severity, GetBasename(filename), line, tm_time, message, message_len);
^
In file included from /home/liuxin/laser_slam/my_code/LTSLAM/xslam_ros/xslam_ros/xslam_ros/vins_mono/ros_log_sink.h:6:0,
from /home/liuxin/laser_slam/my_code/LTSLAM/xslam_ros/xslam_ros/xslam_ros/vins_mono/ros_log_sink.cpp:1:
/usr/local/include/glog/logging.h:1776:22: note: candidate: static std::__cxx11::string google::LogSink::ToString(google::LogSeverity, const char*, int, const google::LogMessageTime&, const char*, size_t)
static std::string ToString(LogSeverity severity, const char* file, int line,
^~~~~~~~
/usr/local/include/glog/logging.h:1776:22: note: no known conversion for argument 4 from ‘const tm* const’ to ‘const google::LogMessageTime&’
xslam_ros/xslam_ros/CMakeFiles/xslam_ros.dir/build.make:140: recipe for target 'xslam_ros/xslam_ros/CMakeFiles/xslam_ros.dir/xslam_ros/vins_mono/ros_log_sink.cpp.o' failed

@liuxin-SH
Copy link
Author

您好,之前的错误已经解决,现在运行是出现以下错误
symbol lookup error: /home/liuxin/laser_slam/my_code/LTSLAM/build/devel/lib/xslam_ros/vins_mono_node: undefined symbol: _ZN6google7LogSink8ToStringB5cxx11EiPKciPK2tmS2_m
O(∩_∩)O谢谢

@duyongquan
Copy link
Owner

我们正在做docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants