1
General / Missing SFML 2.5 dependencies in CMake
« on: August 19, 2018, 03:01:13 pm »
Hello,
I've read https://en.sfml-dev.org/forums/index.php?topic=24070.0, and followed its advices. Unfortunately, SFML still errors about missing dependencies:
My project structure is fairly simple and easy - only main.cpp, CMakeLists.txt, and src folder, where I put downloaded SFML-2.5.0 from https://www.sfml-dev.org/files/SFML-2.5.0-linux-gcc-64-bit.tar.gz.
CMakeLists.txt content is following:
I've read https://en.sfml-dev.org/forums/index.php?topic=24070.0, and followed its advices. Unfortunately, SFML still errors about missing dependencies:
SFML found but some of its dependencies are missing ( X11 Xrandr UDev OpenGL FreeType)
My project structure is fairly simple and easy - only main.cpp, CMakeLists.txt, and src folder, where I put downloaded SFML-2.5.0 from https://www.sfml-dev.org/files/SFML-2.5.0-linux-gcc-64-bit.tar.gz.
CMakeLists.txt content is following:
cmake_minimum_required(VERSION 3.12)
project(SFML_test)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall")
set(SFML_STATIC_LIBRARIES TRUE)
set(SFML_DIR "src/SFML-2.5.0/lib/cmake/SFML")
find_package(SFML 2.5 COMPONENTS graphics window system REQUIRED)
add_executable(SFML_fun main.cpp)
project(SFML_test)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall")
set(SFML_STATIC_LIBRARIES TRUE)
set(SFML_DIR "src/SFML-2.5.0/lib/cmake/SFML")
find_package(SFML 2.5 COMPONENTS graphics window system REQUIRED)
add_executable(SFML_fun main.cpp)