對‘avformat_find_stream_info’未定義的引用、to the PKG_CONFIG_PATH environment variable

  •  錯誤
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}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章