Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable make bmdcapture commit 94b44c4ff0 #3

Closed
glyshko opened this issue Mar 22, 2012 · 5 comments
Closed

Unable make bmdcapture commit 94b44c4ff0 #3

glyshko opened this issue Mar 22, 2012 · 5 comments

Comments

@glyshko
Copy link

glyshko commented Mar 22, 2012

Two weeks ago i succeses compiled bmdcapture with SDK 9.1, last commit decklink-ffmpeg - 8a65e71 .
At now when i try compile bmdcapture commit 94b44c4 i see this error:

g++ -o bmdcapture bmdcapture.cpp /usr/include/DeckLinkAPIDispatch.cpp -Wno-multichar -I /usr/include -fno-rtti -D__STDC_CONSTANT_MACROS -g -lm -ldl -lpthread pkg-config --libs libavformat
bmdcapture.cpp: In function ‘AVStream* add_audio_stream(AVFormatContext_, CodecID)’:
bmdcapture.cpp:208:38: error: ‘avformat_new_stream’ was not declared in this scope
bmdcapture.cpp:237:37: error: ‘avcodec_open2’ was not declared in this scope
bmdcapture.cpp: In function ‘AVStream_ add_video_stream(AVFormatContext_, CodecID)’:
bmdcapture.cpp:252:38: error: ‘avformat_new_stream’ was not declared in this scope
bmdcapture.cpp:292:37: error: ‘avcodec_open2’ was not declared in this scope
bmdcapture.cpp: In function ‘int main(int, char__)’:
bmdcapture.cpp:716:22: error: ‘class IDeckLinkConfiguration’ has no member named ‘SetAudioInputFormat’
bmdcapture.cpp:719:22: error: ‘class IDeckLinkConfiguration’ has no member named ‘SetAudioInputFormat’
bmdcapture.cpp:733:22: error: ‘class IDeckLinkConfiguration’ has no member named ‘SetVideoInputFormat’
bmdcapture.cpp:736:22: error: ‘class IDeckLinkConfiguration’ has no member named ‘SetVideoInputFormat’
bmdcapture.cpp:739:22: error: ‘class IDeckLinkConfiguration’ has no member named ‘SetVideoInputFormat’
bmdcapture.cpp:742:22: error: ‘class IDeckLinkConfiguration’ has no member named ‘SetVideoInputFormat’
bmdcapture.cpp:811:46: error: ‘AVIO_FLAG_WRITE’ was not declared in this scope
bmdcapture.cpp:811:61: error: ‘avio_open’ was not declared in this scope
bmdcapture.cpp:836:35: error: ‘avformat_write_header’ was not declared in this scope
bmdcapture.cpp:888:30: error: ‘avio_close’ was not declared in this scope
make: *_* [bmdcapture] Error 1

@lu-zero
Copy link
Owner

lu-zero commented Mar 22, 2012

On 22/03/12 13:21, glyshko wrote:

Two weeks ago i succeses compiled bmdcapture with SDK 9.1, last commit decklink-ffmpeg -8a65e71 .
At now when i try compile bmdcapture commit 94b44c4 i see this error:

Hoffie forgot to make his improvements compatible with the newer sdk...

lu

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

@glyshko
Copy link
Author

glyshko commented Mar 23, 2012

I hope it's fixed and decklink-ffmpeg is compatible with SDK 9.1 and 9.2.
Thanks

@hoffie
Copy link
Contributor

hoffie commented Mar 27, 2012

I'm terribly sorry that my changes broke the build for you. I've submitted a pull request with a fix for this issue -- the changed code builds with sdk-9.2 for me.

While the code should have been compatible with either old or new SDKs, the detection could not work properly because of changed #include ordering (which is now no longer a problem).

Please wait for Luca to merge the pull request or try using my patch/fork in the meantime.

BTW: Your compiler logs from above also mention problems with libav* -- are you sure you are using a recent enough libav? As far as I remember I did not even touch any libav-related code, so this (second) problem should be unrelated to my changes. Either your environment (regarding libav) changed or your last-working version is even older (before Luca started using newer libav API calls in 6bc9e43) -- or I'm wrong. ;)

Best regards,

Christian

lu-zero added a commit that referenced this issue Mar 27, 2012
Fix for lu-zero/decklink-ffmpeg issue #3
@drum909
Copy link

drum909 commented Apr 11, 2012

Hello lu-zero, hello hoffie.

I am not quite sure, maybe I am missing something - but this is the only place where I might find some help on this topic. I worked thru your Readme, installed the sdk (9.2), but bmdcapture fails to 'make' with following prompts:

g++ -o bmdcapture bmdcapture.cpp /home/ray/decklink/include/DeckLinkAPIDispatch.cpp -Wno-multichar -I /home/ray/decklink/include -fno-rtti -D__STDC_CONSTANT_MACROS -g -lm -ldl -lpthread pkg-config --libs libavformat
bmdcapture.cpp: In function ‘AVStream* add_audio_stream(AVFormatContext_, CodecID)’:
bmdcapture.cpp:208:38: error: ‘avformat_new_stream’ was not declared in this scope
bmdcapture.cpp: In function ‘AVStream_ add_video_stream(AVFormatContext_, CodecID)’:
bmdcapture.cpp:252:38: error: ‘avformat_new_stream’ was not declared in this scope
make: *_* [bmdcapture] Error 1

I could not find any support-forum or knowledgebase. Might be a mistake to post this here. Does anyone of you know a solution for this problem?

Thanks a lot!

@hoffie
Copy link
Contributor

hoffie commented Apr 11, 2012

Well, this is really not the right place as it is a different issue and because it is probably not a bug but rather a problem in your build environment
The problem is most likely related to your libav version (also see my previous comment) -- the current code requires libav-0.8 while your version seems to be older and lacks some of the API functions which are used (avformat_new_stream).
Install libav-0.8 and you'll probably be fine.
Also feel free to mail me directly if you need further help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants