Skip to content

Instantly share code, notes, and snippets.

View tanersener's full-sized avatar

Taner Sener tanersener

  • Europe
View GitHub Profile
@tanersener
tanersener / android_libtirpc.sh
Created June 26, 2018 16:03
Android cross-compile failure for libtirpc library from https://sourceforge.net/projects/libtirpc
# Building https://sourceforge.net/projects/libtirpc/files/libtirpc/1.0.3/libtirpc-1.0.3.tar.bz2
./configure
--prefix=/Users/taner/Projects/mobile-ffmpeg/prebuilt/android-arm/libtirpc
--with-pic
--with-sysroot=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
--enable-static
--disable-shared
--disable-fast-install
--disable-gssapi
@tanersener
tanersener / android_ntirpc.sh
Created June 26, 2018 15:46
Android cross-compile failure for ntirpc library from https://github.com/nfs-ganesha/ntirpc
# Building ntirpc https://github.com/nfs-ganesha/ntirpc/archive/v1.6.2.tar.gz
cmake
-Wno-dev
-DCMAKE_VERBOSE_MAKEFILE=0
-DCMAKE_C_FLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -std=c99 -Wno-unused-function -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=21
-DCMAKE_CXX_FLAGS=-std=c++11 -fno-exceptions -fno-rtti
-DCMAKE_EXE_LINKER_FLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -lc -lm -ldl -llog
-DCMAKE_SYSROOT=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
-DCMAKE_FIND_ROOT_PATH=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
@tanersener
tanersener / android_libnsl.sh
Last active June 26, 2018 15:49
Android cross-compile failure for libnsl library from https://github.com/thkukuk/libnsl
# Building https://github.com/thkukuk/libnsl/archive/v1.2.0.tar.gz
./configure
--prefix=/Users/taner/Projects/mobile-ffmpeg/prebuilt/android-arm/libnsl
--with-pic
--with-sysroot=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
--enable-static
--disable-shared
--disable-fast-install
--without-libintl-prefix