Android studio NDK Undefined GL functions reference

I have made a small JNI based project. I am doing # include GLES3 / gl3.h in my C code and it works. But when I try to use ANY OpenGL feature it says Undefined a reference to gl *. My Android.mk:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE    := hello-jni
LOCAL_CFLAGS    := -Wall -Wextra
LOCAL_SRC_FILES := hello-jni.c
LOCAL_LDLIBS := -lGLESv3 -ldl -llog
LOCAL_STATIC_LIBRARIES := android_native_app_glue
include $(BUILD_SHARED_LIBRARY)

      

What am I doing wrong? Can someone tell me what is wrong?

+3


source to share


1 answer


Try to connect to EGL .

I use the following libraries for my projects:



LOCAL_LDLIBS    := -llog -landroid -lEGL -lGLESv3

      

0


source







All Articles