NDK学习;相关博客介绍

2016-04-19  本文已影响26人  Aberstin

编写Android.mk中的LOCAL_SRC_FILES的终极技巧 :
http://blog.csdn.net/fu_zk/article/details/12836431
NDK本地API:
http://blog.sina.com.cn/s/blog_4119bd830100t0gh.html
NDK相关配置属性的介绍:
http://codingnow.cn/android/1623.html
http://www.cnblogs.com/wainiwann/p/3837936.html

undefined reference to `glDrawArrays'

Android.mk###

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_LDLIBS := -llog //日志输出
LOCAL_LDLIBS := -lGLESv2 //GL 2.0
LOCAL_MODULE := fuckyou
MY_CPP_LIST := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(MY_CPP_LIST:$(LOCAL_PATH)/%=%)
include $(BUILD_SHARED_LIBRARY)
undefined reference to `glDrawArrays'

Application.mk###

APP_MODULES := fuckyou
APP_ABI := all
APP_STL := stlport_static //string

上一篇下一篇

猜你喜欢

热点阅读