[Libav-user] androidL undefined reference to 'posix_memalign'

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jul 8 00:19:53 CEST 2015


Dmitry Adjiev <adjiev.dmitry at ...> writes:

> ./configure --arch=arm --host-os=linux --disable-programs 
> --disable-shared --enable-static 
> --cross-prefix=/home/dmitry/cerbero/android-ndk-r10d/...
> --sysroot=/home/dmitry/cerbero/android-ndk-r10d/... 
> --target-os=android --enable-pic 
> --enable-hwaccels --disable-postproc

Current ndk version is r10e.

The following options have no effect, I suggest 
you remove them:
--disable-shared --enable-static --enable-pic 
--disable-postproc

I am not sure if --enable-hwaccels can work, I 
suspect they do not exist in ndk.

> After this when I try to link with these libs 
> I have link error:
> libavutil/mem.c:95: error: undefined reference 
> to 'posix_memalign'
> collect2: error: ld returned 1 exit status

I suggest you remove --disable-programs to test 
where the issue comes from.

Carl Eugen



More information about the Libav-user mailing list