Missing library for glShaderModel in my native C++ Android program -
i not library need add error:
../arm-linux-androideabi/bin/ld.exe: ./obj/local/armeabi/objs/physicslessons/physicslessons.o: in function engine_handle_cmd(android_app*, int):jni/physicslessons.cpp:104: error: undefined reference 'glshademodel'
in android.mk have this:
local_ldlibs := -lm -legl -lglesv2 -llog -landroid local_static_libraries := android_native_app_glue
and in application.mk app_platform=android-10
i using ndk8e
you linking against opengl es2.0 library, doesn't have fixed pipeline. glshademodel
not in there. check gl2.h header.
try linking against libglesv1_cm
Comments
Post a Comment