[FFmpeg-devel] Changes in cofigure script

Dmitry A dmitry.adjiev at gmail.com
Sat Jun 29 19:26:46 EEST 2019


сб, 29 июн. 2019 г. в 21:43, Dmitry A <dmitry.adjiev at gmail.com>:

>
>
> сб, 29 июн. 2019 г. в 19:11, Dmitry A <dmitry.adjiev at gmail.com>:
>
>>
>>
>> сб, 29 июн. 2019 г. в 19:04, Carl Eugen Hoyos <ceffmpeg at gmail.com>:
>>
>>> Am Sa., 29. Juni 2019 um 14:23 Uhr schrieb Dmitry A <
>>> dmitry.adjiev at gmail.com>:
>>>
>>> > What is right way to make changes in the cofigure script?
>>> > I hacked it for building ffmpeg for android since clang doesn't
>>> > support -mcpu and -march or something else.
>>>
>>> Please elaborate, building for Android works fine here.
>>>
>>> Carl eugen
>>> _______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>>
>>
>> I integrated ffmpeg in aosp inside for one micro chip. I created simple
>> library <https://github.com/GNUDimarik/divomedia> for implementation
>> fake camera based on video file etc.
>> But I built the latest ffmpeg with latest NDK. Please share the options
>> which you use.
>>
> --
>> Thanks!
>> Dmitry
>>
>
> One more question: did you build it for android with NDK with clang?
> If so please share your configure options.
> Also I remember some errors related with vairable names such as B0.
> I'll share the output later.
> --
> Thanks!
> Dmitry
>

That's what I told:

BEGIN /tmp/ffconf.MukWI5j9/test.c
    1 int main(void){ return 0; }
END /tmp/ffconf.MukWI5j9/test.c
/d/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-androideabi-gcc
--sysroot=/d/Android/android-sdk/ndk-bundle/platforms/android-29/arch-arm64/
-Os -fpic -mcpu= -c -o /tmp/ffconf.MukWI5j9/test.o
/tmp/ffconf.MukWI5j9/test.c
clang: warning: joined argument expects additional value: '-mcpu='
[-Wunused-command-line-argument]
clang: error: the clang compiler does not support '-mcpu='
C compiler test failed.

Here is build script:
#!/bin/bash
NDK=/d/Android/android-sdk/ndk-bundle
SYSROOT=$NDK/platforms/android-29/arch-arm64/
TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/windows-x86_64
function build_one
{
./configure \
--prefix=$PREFIX \
--enable-shared \
--disable-static \
--disable-doc \
--disable-programs \
--disable-doc \
--disable-symver \
--enable-protocol=concat \
--enable-protocol=file \
--enable-muxer=mp4 \
--enable-demuxer=mpegts \
--cross-prefix=$TOOLCHAIN/bin/aarch64-linux-androideabi- \
--target-os=linux \
--arch=arm \
--enable-cross-compile \
--sysroot=$SYSROOT \
--extra-cflags="-Os -fpic $ADDI_CFLAGS" \
--extra-ldflags="$ADDI_LDFLAGS" \
$ADDITIONAL_CONFIGURE_FLAG
#make clean all
#make -j3
#make install
}
#CPU=arm
#PREFIX=$(pwd)/android/$CPU
#ADDI_CFLAGS="-marm"
build_one

Under linux link to clang with name gcc already exists under windows I
created it manually.
-- 
Thanks!
Dmitry


More information about the ffmpeg-devel mailing list