Skip to content
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

CMake fail for Linux related to SFML #64

Closed
EvelynMakesThings opened this issue Feb 20, 2023 · 1 comment
Closed

CMake fail for Linux related to SFML #64

EvelynMakesThings opened this issue Feb 20, 2023 · 1 comment

Comments

@EvelynMakesThings
Copy link

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?

@EvelynMakesThings
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant