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

ubuntu20.04 #17

Open
xiaokaibala opened this issue Mar 4, 2021 · 1 comment
Open

ubuntu20.04 #17

xiaokaibala opened this issue Mar 4, 2021 · 1 comment

Comments

@xiaokaibala
Copy link

Ubuntu20.04下编译不过呀

@martinWANG2014
Copy link

  1. Add #include<boost/thread.hpp> into file hesaiLidarSDK_IN.h
  2. Modify CMakeLists.txt in Pandar40_SDK folder from C++11 to C++ 14 at line 18 and 19:
    set (CMAKE_CXX_FLAGS "-fPIC -std=c++11")
    set (CMAKE_CXX_STANDARD 11)
    to
    set (CMAKE_CXX_FLAGS "-fPIC -std=c++14")
    set (CMAKE_CXX_STANDARD 14)
  3. Modify also CMakeLists.txt in Pandar40_ROS folder from C++11 to C++ 14 at line 5:
    add_compile_options(-std=c++11)
    to
    add_compile_options(-std=c++14)
    With these modifications, I compile it successfully.

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