Lidar Visualisation dependecies¶
If cmake build fails and gives an error saying that sfml libraries not found. If the cmake build fails with an error stating that the sfml libraries were not found. Next follow these steps to install libsfml-dev instructions on Ubuntu:
sudo apt-get update -y
sudo apt-get install -y libsfml-dev
Check the system logs to confirm that there are no related errors.
Now try rebuilding the cmake.
Steps to make changes in the CMAKE FILE¶
Please include the following lines of code in Cmakelist.txt to include the SFML dependant libraries.
To find any version 2.X of SFML, See the FindSFML.cmake file for additional details and instructions
1 find_package(SFML 2 REQUIRED network audio graphics window system)
2
3 if(SFML_FOUND)
4 include_directories(${SFML_INCLUDE_DIR})
5 endif()
In target_link_libraries add the following lines of code
PUBLIC sfml-graphics
PUBLIC sfml-window
PUBLIC sfml-system