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

Author Topic: cmake cannot find OpenAL (missing OPENAL_LIBRARY OPENAL_INCLUDE_DIR ?)  (Read 1673 times)

0 Members and 1 Guest are viewing this topic.

stav

  • Newbie
  • *
  • Posts: 10
    • View Profile
HI
I'm trying to build sfml for android.

I invoke cmake with the following command:
Code: [Select]
cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_TOOLCHAIN_FILE=/home/stav/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DCMAKE_ANDROID_NDK=/home/stav/Android/Sdk/ndk-bundle/ -DCMAKE_ANDROID_ARCH_ABI=x86 -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=Debug ../..

but im getting this error:
Code: [Select]
CMake Error at /usr/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.12/Modules/FindOpenAL.cmake:96 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake/Macros.cmake:398 (find_package)
  src/SFML/Audio/CMakeLists.txt:69 (sfml_find_package)
even though i have installed all the dependencies (including OpenAL)
can someone help me?
« Last Edit: March 09, 2019, 10:19:11 pm by stav »