Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML found but some of its dependencies are missing ( FreeType OpenAL Vorbis  (Read 2946 times)

0 Members and 1 Guest are viewing this topic.

TraverseBiTree

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
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)

steelx

  • Newbie
  • *
  • Posts: 3
    • View Profile
comment out this line. I was also having this issue.

Quote
# set(SFML_STATIC_LIBRARIES TRUE)