Skip to content

[package] fontconfig: Android build fails with fatal error: 'ft2build.h' file not found #28865

@maksim-petukhou

Description

@maksim-petukhou

Description

See #25342, conan-io/conan#16468

Autotools build of fontconfig worked fine when crossbuilding to Android, but after #23510 autotools version of recipe is removed and only meson is available

Package and Environment Details

  • Package Name/Version: fontconfig/*
  • Compiler+version: Clang 18 from Android NDK r27d
  • Conan version: conan 2.19.1
  • Python version: Python 3.10

Conan profile

Profile host:
[settings]
arch=armv8
build_type=Release
compiler=clang
compiler.cppstd=20
compiler.libcxx=c++_shared
compiler.version=18
os=Android
os.api_level=26
[options]
[tool_requires]
*: android-ndk/r27d, ninja/[*]
[platform_tool_requires]
cmake/3.31.8
ninja/1.12.1
[platform_requires]
cmake/3.31.8
ninja/1.12.1
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.info.package_id:confs=['tools.build:cxxflags', 'tools.build:exelinkflags', 'tools.build:sharedlinkflags']

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=14
os=Linux
os.libc=glibc
os.libc.version=2.17
[options]
[platform_tool_requires]
cmake/3.31.8
ninja/1.12.1
[platform_requires]
cmake/3.31.8
ninja/1.12.1
[conf]
tools.info.package_id:confs=['tools.build:cxxflags', 'tools.build:exelinkflags', 'tools.build:sharedlinkflags']
tools.system.package_manager:mode=install
tools.system.package_manager:tool=dnf

Steps to reproduce

conan create recipes/fontconfig/all --build fontconfig/* --profile:build build-profile --profile:host host-profile

Logs

fontconfig_android_build_log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions