Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
01911c99
Commit
01911c99
authored
May 18, 2020
by
zhaoyunfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add shell script to compile android lib
parent
8999a2f2
Pipeline
#366
failed with stages
Changes
2
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
build.sh
build.sh
+68
-0
configure-android
configure-android
+0
-0
No files found.
build.sh
0 → 100755
View file @
01911c99
#!/bin/bash
#!/bin/bash
NDK
=
/home/youle/Android/Sdk/ndk/20.1.5948944
SYSROOT
=
${
NDK
}
/toolchains/llvm/prebuilt/linux-x86_64/sysroot
PLATFORM
=
${
NDK
}
/toolchains/llvm/prebuilt/linux-x86_64
function
build_armv7a
{
PREFIX
=
$(
pwd
)
/android-armv7a
CPU
=
armv7-a
./configure-android
\
--prefix
=
$PREFIX
\
--target-os
=
android
\
--arch
=
$CPU
\
--enable-shared
\
--disable-static
\
--disable-doc
\
--disable-ffmpeg
\
--disable-ffplay
\
--disable-ffprobe
\
--disable-avdevice
\
--disable-symver
\
--enable-cross-compile
\
--sysroot
=
$SYSROOT
\
--cross-prefix
=
$PLATFORM
/bin/arm-linux-androideabi-
\
--cross-prefix-clang
=
$PLATFORM
/bin/armv7a-linux-androideabi16-
\
--extra-cflags
=
"-I
$SYSROOT
/usr/include"
\
--extra-ldflags
=
"-L
$SYSROOT
/usr/lib"
$ADDITIONAL_CONFIGURE_FLAG
make clean
make
-j6
make
install
make distclean
}
function
build_aarch64
{
PREFIX
=
$(
pwd
)
/android-aarch64
CPU
=
aarch64
./configure-android
\
--prefix
=
$PREFIX
\
--target-os
=
android
\
--arch
=
$CPU
\
--enable-shared
\
--disable-static
\
--disable-doc
\
--disable-ffmpeg
\
--disable-ffplay
\
--disable-ffprobe
\
--disable-avdevice
\
--disable-symver
\
--enable-cross-compile
\
--sysroot
=
$SYSROOT
\
--cross-prefix
=
$PLATFORM
/bin/aarch64-linux-android-
\
--cross-prefix-clang
=
$PLATFORM
/bin/aarch64-linux-android21-
\
--extra-cflags
=
"-I
$SYSROOT
/usr/include"
\
--extra-ldflags
=
"-L
$SYSROOT
/usr/lib"
$ADDITIONAL_CONFIGURE_FLAG
make clean
make
-j6
make
install
make distclean
}
build_armv7a
build_aarch64
configure-android
0 → 100755
View file @
01911c99
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment