- 錯誤
AppDec.o:在函數‘FFmpegDemuxer::FFmpegDemuxer(AVFormatContext*)’中:
AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x19e):
對‘avformat_find_stream_info’未定義的引用
- 錯誤
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
- 解決辦法
增加一個環境變量:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}