.. | ||
cmake | ||
include | ||
build.sh | ||
CMakeLists.txt | ||
liblivox_sdk_wrapper.so | ||
livox_sdk_wrapper.cpp | ||
livox_sdk_wrapper.cpp.bak | ||
README.MD | ||
sdk_test.py |
找到 CMakeLists.txt 中编译静态库的地方,确保添加 -fPIC 标志。可以通过以下方式添加:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
source file
livox_sdk_wrapper.cpp
cd build
make -j8
install
copy lidar_driver to board path: /root/calibration_tools
execute
./lidar_driver 300000
q&a
(base) root@localhost:~/calibration_tools# ./lidar_driver 300000 cloud_points_count == [300000] Livox SDK initializing. Livox SDK has been initialized. Livox SDK version 2.3.0 . Started device discovery. start_sampling error is -3
cd /root/app/detect-ui ./start.sh # start lidar kill -9 pid