The directory structure as following:
- test/ -- deps/ --- librtmp/ ---- rtmp.h ---- Android.mk -> librtmp.a --- .../ #other deps -- Android.mk -> test.a -- src/ --- flv_muxer.c The flv_muxer.c code snippet:
#include "librtmp/rtmp.h" The compile error:
$ ndk-build [armeabi-v7a] Compile thumb : test <= flv_muxer.c In file included from /Users/workdir/testproject/test/src/flv_muxer.c:9:0: /Users/workdir/testproject/test/src/flv_muxer.h:13:26: fatal error: librtmp/rtmp.h: No such file or directory #include "librtmp/rtmp.h" ^ compilation terminated. make: *** Error 1