[FFmpeg-user] compiling for android
Patrick Shirkey
pshirkey at boosthardware.com
Wed Jul 9 15:51:16 CEST 2014
On Wed, July 9, 2014 11:27 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey <pshirkey <at> boosthardware.com> writes:
>
>> I have tried with :
>> --extra-cflags='-fno-builtin-sin -fno-builtin-cos'
>> --extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos'
>> --extra-cflags='-fno-builtin-sincos'
>> --extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf'
>>
>> Unfortunately all these flags not working for me.
>
> Sorry, I am not a native speaker and I (probably) don't
> understand: Do you mean all above flags brake configure?
>
> What is the exact configure line that you tested and how
> did it fail?
>
I have tried with this configure line. I have replaced the --extra-cflags
with the various combinations listed above.
./configure --arch=arm --target-os=linux --cpu=cortex-a7
--enable-cross-compile \
--cross-prefix=/4.4/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
\
--sysroot=/4.4/prebuilts/ndk/current/platforms/android-18/arch-arm \
--enable-gpl --enable-avresample --enable-libx264 \
--extra-cflags='-fno-builtin-sin -fno-builtin-cos' \
--extra-ldflags='-Wl,-L/home/patrick/antenna/android/Iris2/4.4/android-4.4-b1/external/x264'
The build errors are the following:
--extra-cflags='-fno-builtin-sin -fno-builtin-cos -fno-builtin-sincos
-fno-builtin-sincosf'
libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
--extra-cflags='-fno-builtin-sincos -fno-builtin-sincosf'
libavcodec/imc.c:206: error: undefined reference to 'sincos'
libavcodec/imc.c:209: error: undefined reference to 'sincos'
libavcodec/mdct_template.c:83: error: undefined reference to 'sincos'
libavcodec/qdm2.c:1589: error: undefined reference to 'sincos'
libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
--extra-cflags='-fno-builtin-sin -fno-builtin-cos'
libavcodec/aacps_tablegen.h:156: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:157: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
libavcodec/aacps_tablegen.h:168: error: undefined reference to 'sincosf'
--
Patrick Shirkey
Boost Hardware Ltd
More information about the ffmpeg-user
mailing list