>> make-standalone-toolchain.sh
#!/bin/bash
export ANDROID_NDK=android-ndk-r9 #your ndk path
export ANDROID_NDK_TOOLCHAIN_ROOT=android-toolchain-14 #dir to install
$ANDROID_NDK/build/tools/make-standalone-toolchain.sh \
--system=linux-x86_64 \ #remove if you have 32
--toolchain=arm-linux-androideabi-4.6 \
--platform=android-14 \
--install-dir=$ANDROID_NDK_TOOLCHAIN_ROOT
2013년 11월 25일 월요일
curl라이브러리 안드로이드 ndk빌드
jni/Application.mk >>
NDK_TOOLCHAIN_VERSION=4.6
APP_PROJECT_PATH := $(shell pwd)
APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/packages/Android/Android.mk
lib/curl_config.h
include/curl/curlbuild.h
Android.mk 에서 build the curl binary 아래부분은 지워준다
ndk-build
so파일을 만들고 싶다면 build-static-library를 build-shared-library로 바꿀것..
NDK_TOOLCHAIN_VERSION=4.6
APP_PROJECT_PATH := $(shell pwd)
APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/packages/Android/Android.mk
lib/curl_config.h
include/curl/curlbuild.h
Android.mk 에서 build the curl binary 아래부분은 지워준다
ndk-build
so파일을 만들고 싶다면 build-static-library를 build-shared-library로 바꿀것..
2013년 11월 1일 금요일
우분투 12버전의 C 포함
Are you using Ubuntu 12.04? There is a known problem that puts the files in a non standard location. You'll also need to do:
export LIBRARY_PATH=/usr/lib/$(gcc -print-multiarch)
export C_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
export CPLUS_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
somewhere before you build (say in your .bashrc).
피드 구독하기:
글 (Atom)