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

修复一些个人使用中遇到的问题 #110

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shirok1
Copy link

@shirok1 shirok1 commented Dec 1, 2021

高版本log4cxx自动依赖std::shared_mutex(C++17)而不是boost中的同名类型。将CMAKE_CXX_STANDARD改为17可解决。

/usr/include/log4cxx/boost-std-configuration.h:10:18: 错误:‘shared_mutex’不是命名空间‘std’中的一个类型名
   10 |     typedef std::shared_mutex shared_mutex;
      |                  ^~~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:10:13: 附注:‘std::shared_mutex’ is only available from C++17 onwards
   10 |     typedef std::shared_mutex shared_mutex;
      |             ^~~

timesync.h未引用memory标准库。

~/ws_livox/src/livox_ros_driver/timesync/timesync.h:81:8: 错误:‘shared_ptr’ in namespace ‘std’ does not name a template type
   81 |   std::shared_ptr<std::thread> t_poll_state_;
      |        ^~~~~~~~~~
~/ws_livox/src/livox_ros_driver/timesync/timesync.h:33:1: 附注:‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
   32 | #include "user_uart.h"
  +++ |+#include <memory>
   33 | 

ros::Publisher、rosbag::Bag不接受指针作为输入msg。解指针。

/opt/ros/melodic/include/ros/message_traits.h:142:14: 错误:‘const class std::shared_ptr<pcl::PointCloud<pcl::PointXYZI> >’ has no member named ‘__getDataType’
  142 |     return m.__getDataType().c_str();
      |            ~~^~~~~~~~~~~~~

@grdiv grdiv mentioned this pull request Nov 1, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant