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

[package] libx264/cci.2022060: Failed to build for Android #23718

Closed
arttet opened this issue Apr 23, 2024 · 2 comments · Fixed by #24587
Closed

[package] libx264/cci.2022060: Failed to build for Android #23718

arttet opened this issue Apr 23, 2024 · 2 comments · Fixed by #24587
Assignees
Labels
bug Something isn't working

Comments

@arttet
Copy link

arttet commented Apr 23, 2024

Description

Failed to build "ffmpeg" for Android

Package and Environment Details

  • Package: libx264/cci.20220602
  • Operating System: Android
  • Compiler: Clang 17
  • Conan version: conan 2.2.3
  • Python version: Python 3.12
  • Android NDK: r26c

Conan profile

[settings]
arch=armv8
os=Android
os.api_level=32

compiler=clang
compiler.version=17
compiler.libcxx=c++_static
compiler.cppstd=17

[options]
# Workaround: https://github.com/conan-io/conan-center-index/issues/20511
ffmpeg/*:with_libfdk_aac=False

# https://docs.conan.io/2/reference/config_files/global_conf.html
[conf]
tools.cmake.cmaketoolchain:generator=Ninja

[tool_requires]
android-ndk/r26c

Steps to reproduce

Here is a minimal example to reproduce the bug.

Logs

Click to expand log
2024-04-23T14:37:11.3304935Z libx264/cci.20220602: Calling source() in /home/runner/.conan2/p/libx28c875ce409999/s/src
2024-04-23T14:37:13.0505560Z 
2024-04-23T14:37:13.0508192Z -------- Installing package libx264/cci.20220602 (15 of 33) --------
2024-04-23T14:37:13.0509215Z libx264/cci.20220602: Building from source
2024-04-23T14:37:13.0510189Z libx264/cci.20220602: Package libx264/cci.20220602:f16c7b2c4851d0bc14f44dfc59a59f7dc2a172dc
2024-04-23T14:37:13.0511370Z libx264/cci.20220602: Copying sources to build folder
2024-04-23T14:37:13.0820900Z libx264/cci.20220602: Building your package in /home/runner/.conan2/p/b/libx27d8dd8f7155cd/b
2024-04-23T14:37:13.0821914Z libx264/cci.20220602: Calling generate()
2024-04-23T14:37:13.0822850Z libx264/cci.20220602: Generators folder: /home/runner/.conan2/p/b/libx27d8dd8f7155cd/b/build-debug/conan
2024-04-23T14:37:13.0842366Z libx264/cci.20220602: Generating aggregated env files
2024-04-23T14:37:13.0843839Z libx264/cci.20220602: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
2024-04-23T14:37:13.0844583Z libx264/cci.20220602: Calling build()
2024-04-23T14:37:13.0847109Z libx264/cci.20220602: Calling:
2024-04-23T14:37:13.0850290Z  > "/home/runner/.conan2/p/b/libx27d8dd8f7155cd/b/src/configure" --enable-static --prefix=/ '--bindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' --host=aarch64-linux-android --build=x86_64-linux-gnu --bit-depth=all --disable-cli --enable-pic --enable-debug --cross-prefix=/home/runner/.conan2/p/andro0cd2cd114dfd6/p/bin/bin/aarch64-linux-android- --extra-cflags=-fno-finite-math-only 
2024-04-23T14:37:13.0855073Z libx264/cci.20220602: RUN: "/home/runner/.conan2/p/b/libx27d8dd8f7155cd/b/src/configure" --enable-static --prefix=/ '--bindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' --host=aarch64-linux-android --build=x86_64-linux-gnu --bit-depth=all --disable-cli --enable-pic --enable-debug --cross-prefix=/home/runner/.conan2/p/andro0cd2cd114dfd6/p/bin/bin/aarch64-linux-android- --extra-cflags=-fno-finite-math-only 
2024-04-23T14:37:13.1292478Z Unknown option --build=x86_64-linux-gnu, ignored
2024-04-23T14:37:13.5469502Z /home/runner/.conan2/p/b/libx27d8dd8f7155cd/b/src/configure: line 1041: /home/runner/.conan2/p/andro0cd2cd114dfd6/p/bin/bin/aarch64-linux-android-strings: No such file or directory
2024-04-23T14:37:13.5491638Z /home/runner/.conan2/p/b/libx27d8dd8f7155cd/b/src/configure: line 1044: /home/runner/.conan2/p/andro0cd2cd114dfd6/p/bin/bin/aarch64-linux-android-strings: No such file or directory
2024-04-23T14:37:13.5508348Z endian test failed
2024-04-23T14:37:13.5525500Z 
2024-04-23T14:37:13.5536370Z libx264/cci.20220602: ERROR: 
2024-04-23T14:37:13.5537305Z Package 'f16c7b2c4851d0bc14f44dfc59a59f7dc2a172dc' build failed
2024-04-23T14:37:13.5538824Z libx264/cci.20220602: WARN: Build folder /home/runner/.conan2/p/b/libx27d8dd8f7155cd/b/build-debug
2024-04-23T14:37:13.5540004Z ERROR: libx264/cci.20220602: Error in build() method, line 165
2024-04-23T14:37:13.5540717Z 	autotools.configure()
2024-04-23T14:37:13.5541181Z 	ConanException: Error 1 while executing
2024-04-23T14:37:13.6104464Z make: *** [Makefile:44: deps] Error 1
2024-04-23T14:37:13.6123709Z ##[error]Process completed with exit code 2.
@arttet arttet added the bug Something isn't working label Apr 23, 2024
@elvisdukaj
Copy link
Contributor

I have the same exact issue. Did you find any solution?

@uilianries uilianries self-assigned this Jul 11, 2024
@uilianries
Copy link
Member

Hello! I just opened the PR #24587 which has a improvement for Android build. Please, feel free to validate locally and share your feedback! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants