-
Notifications
You must be signed in to change notification settings - Fork 77
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
Compiling erros #4
Comments
Thanks for your advice! |
Hi, I will test it for you now then and report today, thanks by your fast response. |
Just confirm you it will compile and work. my other problem no related is how to setup the config file for livox avia and its internal imu, in my case probably the default data of noise and bias are not enough good by default, if by causality you use a Livox Avia too would be nice if you can share the setup |
Sorry for the late reply! For the built-in imu of livox, the noise parameters in my yaml are as follows:
By the way, liorf can not directly use Livox lidar for mapping. You need to use a specific driver(livox_ros_driver modified by TixiaoShan) or use a custom data conversion node. |
Hi, thanks by share this, I found a compiling error due to set(CMAKE_CXX_FLAGS "-std=c++11")
soved with set(CMAKE_CXX_FLAGS "-std=c++14")
later I got a CV error:
``[ 71%] Built target liorf_generate_messages
[ 73%] Building CXX object livox_ros_driver/livox_ros_driver/CMakeFiles/livox_ros_driver_node.dir/livox_ros_driver/lds_lidar.cpp.o
[ 75%] Building CXX object livox_ros_driver/livox_ros_driver/CMakeFiles/livox_ros_driver_node.dir/livox_ros_driver/lds_hub.cpp.o
[ 75%] Built target livox_ros_driver_generate_messages_eus
[ 77%] Building CXX object livox_ros_driver/livox_ros_driver/CMakeFiles/livox_ros_driver_node.dir/livox_ros_driver/lddc.cpp.o
[ 80%] Building CXX object livox_ros_driver/livox_ros_driver/CMakeFiles/livox_ros_driver_node.dir/livox_ros_driver/livox_ros_driver.cpp.o
In file included from /home/iscan/lio_sam_ws/src/liorf/src/imuPreintegration.cpp:1:
/home/iscan/lio_sam_ws/src/liorf/include/utility.h:19:10: fatal error: opencv/cv.h: No such file or directory
19 | #include <opencv/cv.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [liorf/CMakeFiles/liorf_imuPreintegration.dir/build.make:63: liorf/CMakeFiles/liorf_imuPreintegration.dir/src/imuPreintegration.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1140: liorf/CMakeFiles/liorf_imuPreintegration.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 82%] Building CXX object livox_ros_driver/livox_ros_driver/CMakeFiles/livox_ros_driver_node.dir/timesync/timesync.cpp.o
[ 84%] Building CXX object livox_ros_driver/livox_ros_driver/CMakeFiles/livox_ros_driver_node.dir/timesync/user_uart/user_uart.cpp.o
[ 86%] Building CXX object livox_ros_driver/livox_ros_driver/CMakeFiles/livox_ros_driver_node.dir/common/comm/comm_protocol.cpp.o
In file included from /home/iscan/lio_sam_ws/src/liorf/src/imageProjection.cpp:1:
/home/iscan/lio_sam_ws/src/liorf/include/utility.h:19:10: fatal error: opencv/cv.h: No such file or directory
19 | #include <opencv/cv.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [liorf/CMakeFiles/liorf_imageProjection.dir/build.make:63: liorf/CMakeFiles/liorf_imageProjection.dir/src/imageProjection.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:694: liorf/CMakeFiles/liorf_imageProjection.dir/all] Error 2
[ 88%] Building CXX object livox_ros_driver/livox_ros_driver/CMakeFiles/livox_ros_driver_node.dir/common/comm/sdk_protocol.cpp.o
In file included from /home/iscan/lio_sam_ws/src/liorf/src/mapOptmization.cpp:1:
/home/iscan/lio_sam_ws/src/liorf/include/utility.h:19:10: fatal error: opencv/cv.h: No such file or directory
19 | #include <opencv/cv.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [liorf/CMakeFiles/liorf_mapOptmization.dir/build.make:63: liorf/CMakeFiles/liorf_mapOptmization.dir/src/mapOptmization.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:606: liorf/CMakeFiles/liorf_mapOptmization.dir/all] Error 2
``
I could compile lio-sam without issues. 20.04, Noetic, stock opencv 4.2
thanks!
The text was updated successfully, but these errors were encountered: