rust-ffmpeg-sys
rust-ffmpeg-sys copied to clipboard
CARGO_FEATURE_BUILD is not work
CARGO_FEATURE_BUILD is not work, and report error by follow:
/mnt/data/wangyi/playground/target/debug/build/ffmpeg-sys-next-bb692d632fc7662f/out/dist/lib/libavfilter.a(asrc_sinc.o): In function config_output': /mnt/data/wangyi/playground/target/debug/build/ffmpeg-sys-next-bb692d632fc7662f/out/ffmpeg-4.4/libavfilter/asrc_sinc.c:399: undefined reference to av_rdft_end'
/mnt/data/wangyi/playground/target/debug/build/ffmpeg-sys-next-bb692d632fc7662f/out/ffmpeg-4.4/libavfilter/asrc_sinc.c:400: undefined reference to av_rdft_end' /mnt/data/wangyi/playground/target/debug/build/ffmpeg-sys-next-bb692d632fc7662f/out/dist/lib/libavfilter.a(asrc_sinc.o): In function fir_to_phase':
/mnt/data/wangyi/playground/target/debug/build/ffmpeg-sys-next-bb692d632fc7662f/out/ffmpeg-4.4/libavfilter/asrc_sinc.c:238: undefined reference to av_rdft_end' /mnt/data/wangyi/playground/target/debug/build/ffmpeg-sys-next-bb692d632fc7662f/out/ffmpeg-4.4/libavfilter/asrc_sinc.c:239: undefined reference to av_rdft_end'
/mnt/data/wangyi/playground/target/debug/build/ffmpeg-sys-next-bb692d632fc7662f/out/ffmpeg-4.4/libavfilter/asrc_sinc.c:241: undefined reference to `av_rdft_init'
...
Hi,
CARGO_FEATURE_BUILD=foo cargo build and CARGO_FEATURE_BUILD=foo cargo test work on my end; what did run to get this result, so I can see if I can reproduce?
@Polochon-street Sorry for the delayed response. I fix it in commit, and it seems like be a bug about link order.