SFML community forums
Help => General => Topic started by: Lolilolight on March 14, 2014, 06:56:32 pm
-
Hi, I try to compile a project which uses SFML on linux but it doesn't seems to work.
CMake give me the followings errors messages :
Found SFML . in /usr/SFML-2.1/include
CMake Error at src/odfaeg/Core/CMakeLists.txt:44 (find_package):
Could not find module FindSFML.cmake or a configuration file for package
SFML.
Adjust CMAKE_MODULE_PATH to find FindSFML.cmake or set SFML_DIR to the
directory containing a CMake configuration file for SFML. The file will
have one of the following names:
SFMLConfig.cmake
sfml-config.cmake
configuring incomplete, errors occurred!
But, it work on window, when I add this lines in the CMakeList :
include(${PROJECT_SOURCE_DIR}/cmake/Modules/FindSFML.cmake)
It's very strange, the SFML dir is in usr/SFML-2.1.
It finds the SFML dir so but it doesn't find the FindSFML.cmake on my ubuntu...
-
I've found the cmake repository, it was in usr/share on ubuntu.
I had just to copy the findSFML Module into the cmake-2.8/Modules directory and now, it works.
I think I'll stay on linux, it's more quiet and there aren't annoying pub or virus, so, no waste of time.