johnBuffer/AntSimulator

CMake fail for Linux related to SFML

A2d3e2 opened this issue · 1 comments

A2d3e2 commented

Hello, I am getting the error
`By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "SFML", but
CMake did not find one.

Could not find a package configuration file provided by "SFML" (requested
version 2) with any of the following names:

SFMLConfig.cmake
sfml-config.cmake

Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
"SFML_DIR" to a directory containing one of the above files. If "SFML"
provides a separate development package or SDK, be sure it has been
installed.`
How would I fix this?

A2d3e2 commented

Never mind! I FINALLY got it to work. My solution is definitely not the best, but what I did was downloaded sfml from here and unzipped it and went into ~/SFML-2.5.1/lib/cmake/ Then, I installed sfml via
sudo apt-get install libsfml
and THEN did I add the line via nano to the file "CMakeLists.txt" in AntSimulator the line
set(SFML_DIR "~/SFML-2.5.1/lib/cmake/")
THAT is how I FINALLY built it in linux.

Love the content, keep up the work!