I change ffmpeg, where the following source code is added in avcodec.h like:
And run configure with the option --extra-cflags="-I"my_dir/include"", but I fail to build ffmpeg. Building error message is shown as follow:
In file included from src/libavcodec/options_table.h:30:0,
src/libavcodec/avcodec.h:46:35: fatal error: my_header.h: No such file or directory
/export/qiang/live_transcoder/logo_transcoding/jdcloud_mt_go_transcode/live_ffmpeg/JD_FFmpeg/ffbuild/common.mak:152: recipe for target 'doc/print_options.o' failed
make: *** [doc/print_options.o] Error 1
I can succeed in building libavcodec, but fail to build doc/print_options.c. I use make -n, and find the compiling option of 'doc/print_options.c' doesn't include the option of --extra-cflags="-I"my_dir/include"".
How to compile 'doc/print_options.c' with the option of --extra-cflags="-I"my_dir/include""?