lu-zero / bmdtools

Basic capture and play programs for Blackmagic Design Decklink
Boost Software License 1.0
198 stars 74 forks source link

Fail to build from master branch. #6

Closed phondanai closed 12 years ago

phondanai commented 12 years ago

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 1

system: debian squeeze amd64 lib: libavformat-dev 0.8.3-6 libswscale-dev 0.8.3-6

any suggestion ? Thank you in advance.

lu-zero commented 12 years ago

Use master libav, I'm tracking libav master so you need to update accordingly. Sorry for the discomfort.