- Download ogg from http://downloads.xiph.org/releases/ogg/ (for example I downloaded libogg-1.1.4.tar.gz)
- untar the file in your local directory:
$ tar zxf libogg-1.1.4.tar.gz - create a jni directory and put the following text into a file named jni/Android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := ogg
LOCAL_CFLAGS := \
-DFIXED_POINT -DUSE_KISS_FFT -DEXPORT="" -UHAVE_CONFIG_H \
-D_ANDROID
LOCAL_C_INCLUDES := \
../libogg-1.1.4/include
LOCAL_SRC_FILES := \
../libogg-1.1.4/src/bitwise.c \
../libogg-1.1.4/src/framing.c
include $(BUILD_SHARED_LIBRARY) - Now your directory should look like the following:
$ ls
jni/ libogg-1.1.4/ libogg-1.1.4.tar.gz - change directory to jni and run ndk-build:
$ cd jni; ndk-build V=1
Thursday, 9 May 2013
How to compile libogg for Android
Posted on 12:04 by Unknown
To compile libogg for Android, you just need to create an appropriate jni/Android.mk makefile with the minimum set of files and options needed to compile libogg for Android.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment