background preloader

Facebook Twitter

Problem with LOCAL_LDLIBS -l on Windows/Cygwin - android-ndk. Discussions - android-ndk. Google Groupes. How to run HelloWorld on ndk r4 and r5 - cocos2d-x - This document describes how to run a simple ‘HelloWorld’ sample under NDK r4 and r5 with Windows (using Cygwin), or Linux.

How to run HelloWorld on ndk r4 and r5 - cocos2d-x -

Setting Up Development Environment¶ This document doesn’t describe how to set up NDK. Please refer to the following website if you wish to learn more about the Android NDK, and how to download and install it: Your NDK version must be r4 or r5¶ NDK-r4 does NOT support STL. If you would like to build on ndk-r4, please follow the steps 1.1.1 ~ 1.1.3 If you would like to build cocos2d-x tests on ndk-r5, you can use the default settings in file, and just jump to 1.2 Change the cocos2dx/¶ * Replace: * with: Change the HelloWorld/android/jni/helloworld/¶ # it is used for ndk-r4 # if you build with nkd-r4, uncomment it # LOCAL_LDLIBS := -L$(LOCAL_PATH)/../.. # it is used for ndk-r4 # if you build with nkd-r4, uncomment it LOCAL_LDLIBS := -L$(LOCAL_PATH)/../.. Change¶ Set “ANDROID_NDK_ROOT” to the path of ndk-r4 2.

Linux¶ Makefile - Android NDK: how to include into another Understanding Android Makefile ( Dec292011 Firstly, let me say that this document is an abstract information which is available in pdk documents.

Understanding Android Makefile (

Secondly, you may want to look at the post that tells how to build Android source code. And now, we can start, at a first glance to Android source codes, we see that applications, libraries, components in framework have files in their specific directories. These files defines how to build that source code. There are well defined specific rules for files. Name: We need to define a name for our build (LOCAL_MODULE := )Local Variables: All builds may have some local variables so to start a new build it is good to clear all local variables (include $(CLEAR_VARS))Files: We need to write all files we want it to be build (LOCAL_SRC_FILES := main.c)Tags: Define tags for build.

BUILD_EXECUTABLE, CLEAR_VARS, etc. variables which are the absolute address of the template files are defined in build/core/ Include $(call all-subdir-makefiles) #CODECS := alac ape flac wav wv mpc #codec-makefiles = $(patsubst %,$(call my-dir)/%/,$(CODECS)) #include $(call codec-makefiles) ifneq ($(NDK_ROOT),) LOCAL_PATH:=$(NDK_ROOT)/apps/lossless/project/jni else LOCAL_PATH:=apps/lossless/project/jni endif # library for Android < 9 include $(CLEAR_VARS) LOCAL_MODULE := atrack8 LOCAL_CFLAGS += -O2 -Wall -DBUILD_STANDALONE -DCPU_ARM -DAVSREMOTE -finline-functions -fPIC -D__ARM_EABI__=1 -DOLD_LOGDH LOCAL_C_INCLUDES += $(LOCAL_PATH)/Android/include LOCAL_SRC_FILES := std_audio.cpp LOCAL_ARM_MODE := arm LOCAL_LDLIBS := -llog \ $(LOCAL_PATH)/Android/lib/ $(LOCAL_PATH)/Android/lib/ include $(BUILD_SHARED_LIBRARY) a la compilation avec cygwin, j'ai ca : soit une erreur pour generer lossless... en vous remerciant par avance!!!!!!!!