c - Android: Problems Referencing Header File -
i trying compile doom code found here. when run ndk-build see following...
jni/droid/i_video.c:45:17: fatal error: sdl.h: no such file or directory but...
find ./ -name sdl.h .//sdl-1.2.13/include/sdl.h and android.mk shows...
doom := apps/doom/project/jni inc := -i$(doom) -i$(doom)/include -i$(doom)/sdl-1.2.13/include local_cflags := $(doom_flags) $(opts) $(inc) anyone able see doing wrong?
i believe want put of include in local_c_includes variable instead of inc variable inc unused android-ndk build system.
this changes line (note removed -i)
local_c_includes := $(doom) $(doom)/include $(doom)/sdl-1.2.13/include below quoted relevant section local_c_includes
local_c_includes optional list of paths, relative ndk *root* directory, appended include search path when compiling sources (c, c++ , assembly). example: local_c_includes := sources/foo or even: local_c_includes := $(local_path)/../foo these placed before corresponding inclusion flag in local_cflags / local_cppflags local_c_includes path used automatically when launching native debugging ndk-gdb.
Comments
Post a Comment