-
-
Notifications
You must be signed in to change notification settings - Fork 155
Description
Hi,
I'm trying to build your library inside an android kivy/python application, so I need to use buildozer and its underlying python4android, so I'm writing a custom recipe for it, that depends on ffmpeg.
The problem is that I'm unable to make chromaprint's cmake to detect ffmpeg, I also provided as ffmpeg root the build directory of ffmpeg and I also tried linking it to one of well known library folders: /opt/include/local, but it didn't work. I'm sure that ffmpeg header files exists inside ffmpeg build dir.
Further details: this is the file toolchain
set(CMAKE_SYSTEM_NAME Android)
set(CMAKE_SYSTEM_VERSION 21) # API level
set(CMAKE_ANDROID_ARCH_ABI arm64-v8a)
set(CMAKE_ANDROID_NDK /root/.buildozer/android/platform/android-ndk-r25b)
ffmpeg_build_dir = Recipe.get_recipe(
'ffmpeg', self.ctx).get_build_dir(arch.arch)
ffmpeg_root_option = f"-DFFMPEG_ROOT={ffmpeg_build_dir}"
shprint(cmake, '-DCMAKE_BUILD_TYPE=Release', '-DBUILD_TOOLS=OFF',
ffmpeg_root_option, f'-DCMAKE_TOOLCHAIN_FILE={cmake_file}')'
The error is always -- Could not find FFMPEG FFTW3 lib not found. Set FFTW3_DIR to find it. -- Could NOT find KissFFT (missing: KISSFFT_SOURCE_DIR) CMake Error at CMakeLists.txt:156 (message): No FFT library found
What should I do?