Make Sample Apps on Ubuntu 18.04 with SDK 8.2.16

Hi,

I am trying to make the sample applications. I have installed ffmpeg and related libraries. Can someone please help me in solving this issue?

neb:~/Video_Codec_SDK_8.2.16/Samples$ make
make -C AppDecode/AppDec
make[1]: Entering directory '/home/neb/Video_Codec_SDK_8.2.16/Samples/AppDecode/AppDec'
Comparison operator but no version after package name 'libswresample' in file '/usr/local/lib/pkgconfig/libavcodec.pc'
g++ -std=c++11 -o AppDec AppDec.o NvDecoder.o -L/usr/local/cuda/lib64/stubs -L../../NvCodec/Lib/linux/stubs/x86_64 -ldl -lcuda -lnvcuvid 
AppDec.o: In function `FFmpegDemuxer::FFmpegDemuxer(AVFormatContext*)':
AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x189): undefined reference to `avformat_find_stream_info'
AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x1c6): undefined reference to `av_find_best_stream'
AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x484): undefined reference to `av_init_packet'
AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x4b4): undefined reference to `av_init_packet'
AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x4f9): undefined reference to `av_bsf_get_by_name'
AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x5d8): undefined reference to `av_bsf_alloc'
AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x63e): undefined reference to `av_bsf_init'
AppDec.o: In function `FFmpegDemuxer::CreateFormatContext(char const*)':
AppDec.cpp:(.text._ZN13FFmpegDemuxer19CreateFormatContextEPKc[_ZN13FFmpegDemuxer19CreateFormatContextEPKc]+0x20): undefined reference to `av_register_all'
AppDec.cpp:(.text._ZN13FFmpegDemuxer19CreateFormatContextEPKc[_ZN13FFmpegDemuxer19CreateFormatContextEPKc]+0x25): undefined reference to `avformat_network_init'
AppDec.cpp:(.text._ZN13FFmpegDemuxer19CreateFormatContextEPKc[_ZN13FFmpegDemuxer19CreateFormatContextEPKc]+0x47): undefined reference to `avformat_open_input'
AppDec.o: In function `FFmpegDemuxer::~FFmpegDemuxer()':
AppDec.cpp:(.text._ZN13FFmpegDemuxerD2Ev[_ZN13FFmpegDemuxerD5Ev]+0x25): undefined reference to `av_packet_unref'
AppDec.cpp:(.text._ZN13FFmpegDemuxerD2Ev[_ZN13FFmpegDemuxerD5Ev]+0x45): undefined reference to `av_packet_unref'
AppDec.cpp:(.text._ZN13FFmpegDemuxerD2Ev[_ZN13FFmpegDemuxerD5Ev]+0x51): undefined reference to `avformat_close_input'
AppDec.cpp:(.text._ZN13FFmpegDemuxerD2Ev[_ZN13FFmpegDemuxerD5Ev]+0x72): undefined reference to `av_freep'
AppDec.cpp:(.text._ZN13FFmpegDemuxerD2Ev[_ZN13FFmpegDemuxerD5Ev]+0x82): undefined reference to `av_freep'
AppDec.o: In function `FFmpegDemuxer::Demux(unsigned char**, int*)':
AppDec.cpp:(.text._ZN13FFmpegDemuxer5DemuxEPPhPi[_ZN13FFmpegDemuxer5DemuxEPPhPi]+0x4d): undefined reference to `av_packet_unref'
AppDec.cpp:(.text._ZN13FFmpegDemuxer5DemuxEPPhPi[_ZN13FFmpegDemuxer5DemuxEPPhPi]+0x6e): undefined reference to `av_read_frame'
AppDec.cpp:(.text._ZN13FFmpegDemuxer5DemuxEPPhPi[_ZN13FFmpegDemuxer5DemuxEPPhPi]+0xac): undefined reference to `av_packet_unref'
AppDec.cpp:(.text._ZN13FFmpegDemuxer5DemuxEPPhPi[_ZN13FFmpegDemuxer5DemuxEPPhPi]+0xf1): undefined reference to `av_packet_unref'
AppDec.cpp:(.text._ZN13FFmpegDemuxer5DemuxEPPhPi[_ZN13FFmpegDemuxer5DemuxEPPhPi]+0x10f): undefined reference to `av_bsf_send_packet'
AppDec.cpp:(.text._ZN13FFmpegDemuxer5DemuxEPPhPi[_ZN13FFmpegDemuxer5DemuxEPPhPi]+0x140): undefined reference to `av_bsf_receive_packet'
collect2: error: ld returned 1 exit status
Makefile:31: recipe for target 'AppDec' failed
make[1]: *** [AppDec] Error 1
make[1]: Leaving directory '/home/neb/Video_Codec_SDK_8.2.16/Samples/AppDecode/AppDec'
Makefile:31: recipe for target 'AppDecode/AppDec' failed
make: *** [AppDecode/AppDec] Error 2

Hi,

Could you provide additional details:

  1. GPU
  2. driver version

Thanks,
Ryan Park