SFML community forums

Help => General => Topic started by: TraverseBiTree on May 22, 2021, 03:10:21 pm

Title: SFML found but some of its dependencies are missing ( FreeType OpenAL Vorbis
Post by: TraverseBiTree on May 22, 2021, 03:10:21 pm
I try to build SFML project with CMAKE , but an error occurred . Just like below:

Quote
  SFML found but some of its dependencies are missing ( FreeType OpenAL
  VorbisFile VorbisEnc Vorbis Ogg FLAC)

My CMakeLists.txt is:

Quote
  cmake_minimum_required(VERSION 3.16)
  project(Test01)
  set(CMAKE_CXX_STANDARD 20)
  set(SFML_STATIC_LIBRARIES TRUE)
  set(SFML_DIR "../SFML-master-t2")
  find_package(SFML REQUIRED COMPONENTS audio network graphics window system)
  add_executable(Test01 main.cpp)
  target_link_libraries(Test01 sfml-graphics sfml-audio sfml-network sfml-window sfml-system)
Title: Re: SFML found but some of its dependencies are missing ( FreeType OpenAL Vorbis
Post by: steelx on May 23, 2021, 09:20:01 am
comment out this line. I was also having this issue.

Quote
# set(SFML_STATIC_LIBRARIES TRUE)