g++ -o bmdcapture bmdcapture.cpp ../../include/DeckLinkAPIDispatch.cpp -Wno-multichar -I ../../include -fno-rtti -D__STDC_CONSTANT_MACROS -g -lm -ldl -lpthread pkg-config --libs libavformat libswscale
bmdcapture.cpp:201: error: use of enum ‘AVCodecID’ without previous declaration
bmdcapture.cpp: In function ‘AVStream* add_audiostream(AVFormatContext, int)’:
bmdcapture.cpp:215: error: invalid conversion from ‘int’ to ‘CodecID’
bmdcapture.cpp: At global scope:
bmdcapture.cpp:245: error: use of enum ‘AVCodecID’ without previous declaration
bmdcapture.cpp: In function ‘AVStream_ add_videostream(AVFormatContext, int)’:
bmdcapture.cpp:259: error: invalid conversion from ‘int’ to ‘CodecID’
bmdcapture.cpp: In function ‘int main(int, char__)’:
bmdcapture.cpp:819: error: ‘AV_CODEC_ID_RAWVIDEO’ was not declared in this scope
bmdcapture.cpp:820: error: ‘AV_CODEC_ID_PCMS16LE’ was not declared in this scope
make: ** [bmdcapture] Error 1
The result from make command shown below.
g++ -o bmdcapture bmdcapture.cpp ../../include/DeckLinkAPIDispatch.cpp -Wno-multichar -I ../../include -fno-rtti -D__STDC_CONSTANT_MACROS -g -lm -ldl -lpthread
pkg-config --libs libavformat libswscale
bmdcapture.cpp:201: error: use of enum ‘AVCodecID’ without previous declaration bmdcapture.cpp: In function ‘AVStream* add_audiostream(AVFormatContext, int)’: bmdcapture.cpp:215: error: invalid conversion from ‘int’ to ‘CodecID’ bmdcapture.cpp: At global scope: bmdcapture.cpp:245: error: use of enum ‘AVCodecID’ without previous declaration bmdcapture.cpp: In function ‘AVStream_ add_videostream(AVFormatContext, int)’: bmdcapture.cpp:259: error: invalid conversion from ‘int’ to ‘CodecID’ bmdcapture.cpp: In function ‘int main(int, char__)’: bmdcapture.cpp:819: error: ‘AV_CODEC_ID_RAWVIDEO’ was not declared in this scope bmdcapture.cpp:820: error: ‘AV_CODEC_ID_PCMS16LE’ was not declared in this scope make: ** [bmdcapture] Error 1system: debian squeeze amd64 lib: libavformat-dev 0.8.3-6 libswscale-dev 0.8.3-6
any suggestion ? Thank you in advance.