Livox-SDK / livox_ros2_driver

Livox device driver under Ros2, support Lidar Mid-40, Mid-70, Tele-15, Horizon, Avia.
Other
77 stars 84 forks source link

Humble ERROR #29

Closed shenxw0127 closed 1 year ago

shenxw0127 commented 1 year ago

Ubuntu22.04 Humble I have corrected the three files in #20, but the following error occurred

WARNING io features related to pcap will be disabled /usr/include/apr-1.0 apr-1 /usr/bin/ld: /usr/local/lib/liblivox_sdk_static.a(device_discovery.cpp.o): relocation R_X86_64_TPOFF32 against symbol 、 `_ZGVZN6spdlog7details2os9thread_idEvE3tid' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status gmake[2]: [CMakeFiles/livox_ros2_driver.dir/build.make:508:liblivox_ros2_driver.so] error 1 gmake[1]: [CMakeFiles/Makefile2:139:CMakeFiles/livox_ros2_driver.dir/all] error 2 gmake: *** [Makefile:146:all] error 2

shenxw0127 commented 1 year ago

make Livox-SDK with "make CXXFLAGS=-fPIC"

li-dahua commented 3 months ago

Hi, I still have this problem.你怎么解决的?

shenxw0127 commented 3 months ago

Hi, I still have this problem.你怎么解决的?

IMPORTANT :

If you would like to compile livox_ros2_driver, be sure to delete/rename the "livox_sdk_static.a" file in the "/usr/local/lib/" directory. The livox_ros2_driver would build a shared library of Livox-SDK on its own.

I forgot the IMPORTANT in README. Do not use static library.