Skip to content

build android error on linux(Ubuntu) #53

@ModuleCode

Description

@ModuleCode

TARGET_HOST: android-arm64
TARGET_ARCH: arm64-v8a
EXTRA_PARAMS: --disable-arm-v7a --disable-arm-v7a-neon --disable-x86 --disable-x86-64
Found Android SDK at /home/modulecode/AndroidSDK
Found Android NDK at /home/modulecode/AndroidSDK/ndk/23.2.8568313
cd ffmpeg-kit && ./android.sh --disable-arm-v7a --disable-arm-v7a-neon --disable-x86 --disable-x86-64 --enable-android-media-codec --enable-android-zlib --no-archive
--enable-gpl --enable-x264 --enable-x265 --enable-lame

Building ffmpeg-kit library for Android

Architectures: arm64-v8a
Libraries: android-zlib, android-media-codec, lame, libiconv, x264, x265

Downloading sources: ok

Building arm64-v8a platform on API level 24

libiconv: failed

See build.log for details

make: *** [Makefile:109: ffmpeg-kit/prebuilt/android-arm64/ffmpeg/lib/pkgconfig] Error 1

build.log

You may need to add #include directives for the following .h files.
#include <error.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "binary-io.h"
#include "gettext.h"
#include "progname.h"
#include "relocatable.h"
#include "safe-read.h"
#include "uniwidth.h"
#include "unlocked-io.h"
#include "xalloc.h"

You may need to use the following Makefile variables when linking.
Use them in _LDADD when linking a program, or
in _a_LDFLAGS or _la_LDFLAGS when linking a library.
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise

Don't forget to

  • "include Makefile.gnulib" from within "srclib/Makefile.am",
  • mention "-I srcm4" in ACLOCAL_AMFLAGS in Makefile.am
    or add an AC_CONFIG_MACRO_DIRS([srcm4]) invocation in ./configure.ac,
  • mention "srcm4/gnulib-cache.m4" in EXTRA_DIST in Makefile.am,
  • invoke gl_EARLY in ./configure.ac, right after AC_PROG_CC,
  • invoke gl_INIT in ./configure.ac.
    if test -n "$GNULIB_TOOL"; then
    for file in config.guess config.sub; do
    $GNULIB_TOOL --copy-file build-aux/$file || exit $?;
    chmod a+x build-aux/$file || exit $?;
    done;
    $GNULIB_TOOL --copy-file tests/qemu.h || exit $?;
    fi
    aclocal-1.16 -I m4 -I srcm4 --output=aclocal.m4 && touch aclocal.m4 && rm -rf autom4te.cache
    /bin/sh: 1: aclocal-1.16: not found
    make[1]: *** [Makefile.devel:96: aclocal.m4] Error 127
    make[1]: Leaving directory '/home/modulecode/EIRTeam.FFmpeg/ffmpeg-kit/src/libiconv'
    cp: cannot stat 'build-aux/install-sh': No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions