Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromaprint issues detecting ffmpeg buildozer #138

Open
magowiz opened this issue Feb 13, 2024 · 0 comments
Open

Chromaprint issues detecting ffmpeg buildozer #138

magowiz opened this issue Feb 13, 2024 · 0 comments

Comments

@magowiz
Copy link

magowiz commented Feb 13, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant