Fix_slash_prefix

This commit is contained in:
2016-08-14 14:29:02 -04:00
parent 8378104406
commit 9ee10ec287
6 changed files with 114 additions and 114 deletions
+19 -19
View File
@@ -78,49 +78,49 @@ $ sudo apt-get install pkg-config automake autoconf libtool
<p>[TODO]-> I will fix this part later.</p> <p>[TODO]-> I will fix this part later.</p>
<pre><code>/# Android NDK sources and standalone toolchain is put here <pre><code># Android NDK sources and standalone toolchain is put here
export DEV=~/Android/ export DEV=~/Android/
/# All the built binaries, libs and their header will be installed here # All the built binaries, libs and their header will be installed here
export PREFIX=/opt/android export PREFIX=/opt/android
/# Don't mix up .pc files from your host and build target # Don't mix up .pc files from your host and build target
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
/# GCC for Android version to use # GCC for Android version to use
/# 4.9 is the only available version since NDK r11! # 4.9 is the only available version since NDK r11!
export GCC_VER=4.9 export GCC_VER=4.9
/# The building system we are using (Linux x86_64) # The building system we are using (Linux x86_64)
export BUILD_SYS=x86_64-linux-gnu export BUILD_SYS=x86_64-linux-gnu
/# Set Android target API level # Set Android target API level
export ANDROID_API=22 export ANDROID_API=22
/# Set Android target arch # Set Android target arch
export ANDROID_ARCH=arm export ANDROID_ARCH=arm
/# Set Android target name, according to Table 2 in # Set Android target name, according to Table 2 in
/# https://developer.android.com/ndk/guides/standalone_toolchain.html # https://developer.android.com/ndk/guides/standalone_toolchain.html
export ANDROID_TARGET=armv7-none-linux-androideabi export ANDROID_TARGET=armv7-none-linux-androideabi
/# The cross-compile toolchain we use # The cross-compile toolchain we use
export TOOLCHAIN=arm-linux-androideabi export TOOLCHAIN=arm-linux-androideabi
/# This is a symlink pointing to the real Android NDK r12b # This is a symlink pointing to the real Android NDK r12b
export NDK=${DEV}/android-ndk export NDK=${DEV}/android-ndk
/# The path of standalone NDK toolchain # The path of standalone NDK toolchain
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH}
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN}
/# Non-exhaustive lists of compiler + binutils # Non-exhaustive lists of compiler + binutils
export AR=${CROSS_PREFIX}-ar export AR=${CROSS_PREFIX}-ar
export AS=${CROSS_PREFIX}-as export AS=${CROSS_PREFIX}-as
export LD=${CROSS_PREFIX}-ld export LD=${CROSS_PREFIX}-ld
@@ -133,8 +133,8 @@ export STRIP=${CROSS_PREFIX}-strip
export RANLIB=${CROSS_PREFIX}-ranlib export RANLIB=${CROSS_PREFIX}-ranlib
export STRINGS=${CROSS_PREFIX}-strings export STRINGS=${CROSS_PREFIX}-strings
/# Set build flags # Set build flags
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib
export CFLAGS="--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar" export CFLAGS="--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar"
export CXXFLAGS=${CFLAGS} export CXXFLAGS=${CFLAGS}
+19 -19
View File
@@ -78,49 +78,49 @@ $ sudo apt-get install pkg-config automake autoconf libtool
<p>[TODO]-> I will fix this part later.</p> <p>[TODO]-> I will fix this part later.</p>
<pre><code>/# Android NDK sources and standalone toolchain is put here <pre><code># Android NDK sources and standalone toolchain is put here
export DEV=~/Android/ export DEV=~/Android/
/# All the built binaries, libs and their header will be installed here # All the built binaries, libs and their header will be installed here
export PREFIX=/opt/android export PREFIX=/opt/android
/# Don't mix up .pc files from your host and build target # Don't mix up .pc files from your host and build target
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
/# GCC for Android version to use # GCC for Android version to use
/# 4.9 is the only available version since NDK r11! # 4.9 is the only available version since NDK r11!
export GCC_VER=4.9 export GCC_VER=4.9
/# The building system we are using (Linux x86_64) # The building system we are using (Linux x86_64)
export BUILD_SYS=x86_64-linux-gnu export BUILD_SYS=x86_64-linux-gnu
/# Set Android target API level # Set Android target API level
export ANDROID_API=22 export ANDROID_API=22
/# Set Android target arch # Set Android target arch
export ANDROID_ARCH=arm export ANDROID_ARCH=arm
/# Set Android target name, according to Table 2 in # Set Android target name, according to Table 2 in
/# https://developer.android.com/ndk/guides/standalone_toolchain.html # https://developer.android.com/ndk/guides/standalone_toolchain.html
export ANDROID_TARGET=armv7-none-linux-androideabi export ANDROID_TARGET=armv7-none-linux-androideabi
/# The cross-compile toolchain we use # The cross-compile toolchain we use
export TOOLCHAIN=arm-linux-androideabi export TOOLCHAIN=arm-linux-androideabi
/# This is a symlink pointing to the real Android NDK r12b # This is a symlink pointing to the real Android NDK r12b
export NDK=${DEV}/android-ndk export NDK=${DEV}/android-ndk
/# The path of standalone NDK toolchain # The path of standalone NDK toolchain
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH}
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN}
/# Non-exhaustive lists of compiler + binutils # Non-exhaustive lists of compiler + binutils
export AR=${CROSS_PREFIX}-ar export AR=${CROSS_PREFIX}-ar
export AS=${CROSS_PREFIX}-as export AS=${CROSS_PREFIX}-as
export LD=${CROSS_PREFIX}-ld export LD=${CROSS_PREFIX}-ld
@@ -133,8 +133,8 @@ export STRIP=${CROSS_PREFIX}-strip
export RANLIB=${CROSS_PREFIX}-ranlib export RANLIB=${CROSS_PREFIX}-ranlib
export STRINGS=${CROSS_PREFIX}-strings export STRINGS=${CROSS_PREFIX}-strings
/# Set build flags # Set build flags
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib
export CFLAGS="--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar" export CFLAGS="--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar"
export CXXFLAGS=${CFLAGS} export CXXFLAGS=${CFLAGS}
+19 -19
View File
@@ -124,49 +124,49 @@ $ sudo apt-get install pkg-config automake autoconf libtool
<p>[TODO]-&gt; I will fix this part later.</p> <p>[TODO]-&gt; I will fix this part later.</p>
<pre><code>/# Android NDK sources and standalone toolchain is put here <pre><code># Android NDK sources and standalone toolchain is put here
export DEV=~/Android/ export DEV=~/Android/
/# All the built binaries, libs and their header will be installed here # All the built binaries, libs and their header will be installed here
export PREFIX=/opt/android export PREFIX=/opt/android
/# Don't mix up .pc files from your host and build target # Don't mix up .pc files from your host and build target
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
/# GCC for Android version to use # GCC for Android version to use
/# 4.9 is the only available version since NDK r11! # 4.9 is the only available version since NDK r11!
export GCC_VER=4.9 export GCC_VER=4.9
/# The building system we are using (Linux x86_64) # The building system we are using (Linux x86_64)
export BUILD_SYS=x86_64-linux-gnu export BUILD_SYS=x86_64-linux-gnu
/# Set Android target API level # Set Android target API level
export ANDROID_API=22 export ANDROID_API=22
/# Set Android target arch # Set Android target arch
export ANDROID_ARCH=arm export ANDROID_ARCH=arm
/# Set Android target name, according to Table 2 in # Set Android target name, according to Table 2 in
/# https://developer.android.com/ndk/guides/standalone_toolchain.html # https://developer.android.com/ndk/guides/standalone_toolchain.html
export ANDROID_TARGET=armv7-none-linux-androideabi export ANDROID_TARGET=armv7-none-linux-androideabi
/# The cross-compile toolchain we use # The cross-compile toolchain we use
export TOOLCHAIN=arm-linux-androideabi export TOOLCHAIN=arm-linux-androideabi
/# This is a symlink pointing to the real Android NDK r12b # This is a symlink pointing to the real Android NDK r12b
export NDK=${DEV}/android-ndk export NDK=${DEV}/android-ndk
/# The path of standalone NDK toolchain # The path of standalone NDK toolchain
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH}
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN}
/# Non-exhaustive lists of compiler + binutils # Non-exhaustive lists of compiler + binutils
export AR=${CROSS_PREFIX}-ar export AR=${CROSS_PREFIX}-ar
export AS=${CROSS_PREFIX}-as export AS=${CROSS_PREFIX}-as
export LD=${CROSS_PREFIX}-ld export LD=${CROSS_PREFIX}-ld
@@ -179,8 +179,8 @@ export STRIP=${CROSS_PREFIX}-strip
export RANLIB=${CROSS_PREFIX}-ranlib export RANLIB=${CROSS_PREFIX}-ranlib
export STRINGS=${CROSS_PREFIX}-strings export STRINGS=${CROSS_PREFIX}-strings
/# Set build flags # Set build flags
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib
export CFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&quot; export CFLAGS=&quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&quot;
export CXXFLAGS=${CFLAGS} export CXXFLAGS=${CFLAGS}
+19 -19
View File
@@ -78,49 +78,49 @@ $ sudo apt-get install pkg-config automake autoconf libtool
&lt;p&gt;[TODO]-&amp;gt; I will fix this part later.&lt;/p&gt; &lt;p&gt;[TODO]-&amp;gt; I will fix this part later.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/# Android NDK sources and standalone toolchain is put here &lt;pre&gt;&lt;code&gt;# Android NDK sources and standalone toolchain is put here
export DEV=~/Android/ export DEV=~/Android/
/# All the built binaries, libs and their header will be installed here # All the built binaries, libs and their header will be installed here
export PREFIX=/opt/android export PREFIX=/opt/android
/# Don&#39;t mix up .pc files from your host and build target # Don&#39;t mix up .pc files from your host and build target
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
/# GCC for Android version to use # GCC for Android version to use
/# 4.9 is the only available version since NDK r11! # 4.9 is the only available version since NDK r11!
export GCC_VER=4.9 export GCC_VER=4.9
/# The building system we are using (Linux x86_64) # The building system we are using (Linux x86_64)
export BUILD_SYS=x86_64-linux-gnu export BUILD_SYS=x86_64-linux-gnu
/# Set Android target API level # Set Android target API level
export ANDROID_API=22 export ANDROID_API=22
/# Set Android target arch # Set Android target arch
export ANDROID_ARCH=arm export ANDROID_ARCH=arm
/# Set Android target name, according to Table 2 in # Set Android target name, according to Table 2 in
/# https://developer.android.com/ndk/guides/standalone_toolchain.html # https://developer.android.com/ndk/guides/standalone_toolchain.html
export ANDROID_TARGET=armv7-none-linux-androideabi export ANDROID_TARGET=armv7-none-linux-androideabi
/# The cross-compile toolchain we use # The cross-compile toolchain we use
export TOOLCHAIN=arm-linux-androideabi export TOOLCHAIN=arm-linux-androideabi
/# This is a symlink pointing to the real Android NDK r12b # This is a symlink pointing to the real Android NDK r12b
export NDK=${DEV}/android-ndk export NDK=${DEV}/android-ndk
/# The path of standalone NDK toolchain # The path of standalone NDK toolchain
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH}
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN}
/# Non-exhaustive lists of compiler + binutils # Non-exhaustive lists of compiler + binutils
export AR=${CROSS_PREFIX}-ar export AR=${CROSS_PREFIX}-ar
export AS=${CROSS_PREFIX}-as export AS=${CROSS_PREFIX}-as
export LD=${CROSS_PREFIX}-ld export LD=${CROSS_PREFIX}-ld
@@ -133,8 +133,8 @@ export STRIP=${CROSS_PREFIX}-strip
export RANLIB=${CROSS_PREFIX}-ranlib export RANLIB=${CROSS_PREFIX}-ranlib
export STRINGS=${CROSS_PREFIX}-strings export STRINGS=${CROSS_PREFIX}-strings
/# Set build flags # Set build flags
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib
export CFLAGS=&amp;quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&amp;quot; export CFLAGS=&amp;quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&amp;quot;
export CXXFLAGS=${CFLAGS} export CXXFLAGS=${CFLAGS}
+19 -19
View File
@@ -51,49 +51,49 @@ $ sudo apt-get install pkg-config automake autoconf libtool
&lt;p&gt;[TODO]-&amp;gt; I will fix this part later.&lt;/p&gt; &lt;p&gt;[TODO]-&amp;gt; I will fix this part later.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/# Android NDK sources and standalone toolchain is put here &lt;pre&gt;&lt;code&gt;# Android NDK sources and standalone toolchain is put here
export DEV=~/Android/ export DEV=~/Android/
/# All the built binaries, libs and their header will be installed here # All the built binaries, libs and their header will be installed here
export PREFIX=/opt/android export PREFIX=/opt/android
/# Don&#39;t mix up .pc files from your host and build target # Don&#39;t mix up .pc files from your host and build target
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
/# GCC for Android version to use # GCC for Android version to use
/# 4.9 is the only available version since NDK r11! # 4.9 is the only available version since NDK r11!
export GCC_VER=4.9 export GCC_VER=4.9
/# The building system we are using (Linux x86_64) # The building system we are using (Linux x86_64)
export BUILD_SYS=x86_64-linux-gnu export BUILD_SYS=x86_64-linux-gnu
/# Set Android target API level # Set Android target API level
export ANDROID_API=22 export ANDROID_API=22
/# Set Android target arch # Set Android target arch
export ANDROID_ARCH=arm export ANDROID_ARCH=arm
/# Set Android target name, according to Table 2 in # Set Android target name, according to Table 2 in
/# https://developer.android.com/ndk/guides/standalone_toolchain.html # https://developer.android.com/ndk/guides/standalone_toolchain.html
export ANDROID_TARGET=armv7-none-linux-androideabi export ANDROID_TARGET=armv7-none-linux-androideabi
/# The cross-compile toolchain we use # The cross-compile toolchain we use
export TOOLCHAIN=arm-linux-androideabi export TOOLCHAIN=arm-linux-androideabi
/# This is a symlink pointing to the real Android NDK r12b # This is a symlink pointing to the real Android NDK r12b
export NDK=${DEV}/android-ndk export NDK=${DEV}/android-ndk
/# The path of standalone NDK toolchain # The path of standalone NDK toolchain
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH}
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN}
/# Non-exhaustive lists of compiler + binutils # Non-exhaustive lists of compiler + binutils
export AR=${CROSS_PREFIX}-ar export AR=${CROSS_PREFIX}-ar
export AS=${CROSS_PREFIX}-as export AS=${CROSS_PREFIX}-as
export LD=${CROSS_PREFIX}-ld export LD=${CROSS_PREFIX}-ld
@@ -106,8 +106,8 @@ export STRIP=${CROSS_PREFIX}-strip
export RANLIB=${CROSS_PREFIX}-ranlib export RANLIB=${CROSS_PREFIX}-ranlib
export STRINGS=${CROSS_PREFIX}-strings export STRINGS=${CROSS_PREFIX}-strings
/# Set build flags # Set build flags
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib
export CFLAGS=&amp;quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&amp;quot; export CFLAGS=&amp;quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&amp;quot;
export CXXFLAGS=${CFLAGS} export CXXFLAGS=${CFLAGS}
+19 -19
View File
@@ -51,49 +51,49 @@ $ sudo apt-get install pkg-config automake autoconf libtool
&lt;p&gt;[TODO]-&amp;gt; I will fix this part later.&lt;/p&gt; &lt;p&gt;[TODO]-&amp;gt; I will fix this part later.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/# Android NDK sources and standalone toolchain is put here &lt;pre&gt;&lt;code&gt;# Android NDK sources and standalone toolchain is put here
export DEV=~/Android/ export DEV=~/Android/
/# All the built binaries, libs and their header will be installed here # All the built binaries, libs and their header will be installed here
export PREFIX=/opt/android export PREFIX=/opt/android
/# Don&#39;t mix up .pc files from your host and build target # Don&#39;t mix up .pc files from your host and build target
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
/# GCC for Android version to use # GCC for Android version to use
/# 4.9 is the only available version since NDK r11! # 4.9 is the only available version since NDK r11!
export GCC_VER=4.9 export GCC_VER=4.9
/# The building system we are using (Linux x86_64) # The building system we are using (Linux x86_64)
export BUILD_SYS=x86_64-linux-gnu export BUILD_SYS=x86_64-linux-gnu
/# Set Android target API level # Set Android target API level
export ANDROID_API=22 export ANDROID_API=22
/# Set Android target arch # Set Android target arch
export ANDROID_ARCH=arm export ANDROID_ARCH=arm
/# Set Android target name, according to Table 2 in # Set Android target name, according to Table 2 in
/# https://developer.android.com/ndk/guides/standalone_toolchain.html # https://developer.android.com/ndk/guides/standalone_toolchain.html
export ANDROID_TARGET=armv7-none-linux-androideabi export ANDROID_TARGET=armv7-none-linux-androideabi
/# The cross-compile toolchain we use # The cross-compile toolchain we use
export TOOLCHAIN=arm-linux-androideabi export TOOLCHAIN=arm-linux-androideabi
/# This is a symlink pointing to the real Android NDK r12b # This is a symlink pointing to the real Android NDK r12b
export NDK=${DEV}/android-ndk export NDK=${DEV}/android-ndk
/# The path of standalone NDK toolchain # The path of standalone NDK toolchain
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain export NDK_TOOLCHAIN=${DEV}/android-ndk-toolchain
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH} export SYSROOT=${NDK}/platforms/android-${ANDROID_API}/arch-${ANDROID_ARCH}
/# this one is the absolute, prebuilt path # this one is the absolute, prebuilt path
export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN} export CROSS_PREFIX=${NDK}/toolchains/${TOOLCHAIN}-${GCC_VER}/prebuilt/linux-x86_64/bin/${TOOLCHAIN}
/# Non-exhaustive lists of compiler + binutils # Non-exhaustive lists of compiler + binutils
export AR=${CROSS_PREFIX}-ar export AR=${CROSS_PREFIX}-ar
export AS=${CROSS_PREFIX}-as export AS=${CROSS_PREFIX}-as
export LD=${CROSS_PREFIX}-ld export LD=${CROSS_PREFIX}-ld
@@ -106,8 +106,8 @@ export STRIP=${CROSS_PREFIX}-strip
export RANLIB=${CROSS_PREFIX}-ranlib export RANLIB=${CROSS_PREFIX}-ranlib
export STRINGS=${CROSS_PREFIX}-strings export STRINGS=${CROSS_PREFIX}-strings
/# Set build flags # Set build flags
/# Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html # Refer to https://developer.android.com/ndk/guides/standalone_toolchain.html
export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib export PATH=$PATH:${PREFIX}/bin:${PREFIX}/lib
export CFLAGS=&amp;quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&amp;quot; export CFLAGS=&amp;quot;--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar&amp;quot;
export CXXFLAGS=${CFLAGS} export CXXFLAGS=${CFLAGS}