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

'AVCODEC_MAX_AUDIO_FRAME_SIZE' undeclared #1

Closed
lcultx opened this issue Aug 12, 2013 · 3 comments
Closed

'AVCODEC_MAX_AUDIO_FRAME_SIZE' undeclared #1

lcultx opened this issue Aug 12, 2013 · 3 comments

Comments

@lcultx
Copy link

lcultx commented Aug 12, 2013

go get github.com/3d0c/gmf/gmf

1: error: 'AVCODEC_MAX_AUDIO_FRAME_SIZE' undeclared (first use in this function)
1: note: each undeclared identifier is reported only once for each function it appears in
1: error: 'avcodec_get_context_defaults2' undeclared (first use in this function)

$ ffmpeg

ffmpeg version git-2013-08-12-c103d5f Copyright (c) 2000-2013 the FFmpeg developers
built on Aug 12 2013 18:07:57 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
libavutil 52. 42.100 / 52. 42.100
libavcodec 55. 27.100 / 55. 27.100
libavformat 55. 13.102 / 55. 13.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 82.100 / 3. 82.100
libswscale 2. 4.100 / 2. 4.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

OS: Ubuntu 12.04 64bit

@3d0c
Copy link
Owner

3d0c commented Aug 12, 2013

I'm afraid, it's impossible to build this version of gmf under the current ffmpeg (version git-2013-08-12), because of massive changes in api — only 0.8 version supported.

Try to build under 0.8. But anyway, the current gmf version is not production ready.

@lcultx
Copy link
Author

lcultx commented Aug 13, 2013

I use Go 1.0.3 and ffmpeg-0.8.10 try it again
but i get some undefined reference error
such as:

$ _/root/gmf/gmf
/usr/local/lib/libavcodec.a(amrnbdec.o): In function amrnb_decode_frame': /root/ffmpeg-0.8.10/libavcodec/amrnbdec.c:991: undefined reference totruncf'
/usr/local/lib/libavcodec.a(amrwbdec.o): In function amrwb_decode_frame': /root/ffmpeg-0.8.10/libavcodec/amrwbdec.c:1163: undefined reference totruncf'
/usr/local/lib/libavcodec.a(atrac3.o): In function atrac3_decode_frame': /root/ffmpeg-0.8.10/libavcodec/atrac3.c:862: undefined reference toroundf'
/root/ffmpeg-0.8.10/libavcodec/atrac3.c:863: undefined reference to roundf' /root/ffmpeg-0.8.10/libavcodec/atrac3.c:857: undefined reference toroundf'
/usr/local/lib/libavcodec.a(atrac3.o): In function init_atrac3_transforms': /root/ffmpeg-0.8.10/libavcodec/atrac3.c:202: undefined reference tosin'
/usr/local/lib/libavcodec.a(atrac3.o): In function atrac3_decode_init': /root/ffmpeg-0.8.10/libavcodec/atrac3.c:992: undefined reference topowf'
/root/ffmpeg-0.8.10/libavcodec/atrac3.c:995: undefined reference to powf' /usr/local/lib/libavcodec.a(bink.o): In functionbinkb_calc_quant':
/root/ffmpeg-0.8.10/libavcodec/bink.c:1248: undefined reference to cos' /root/ffmpeg-0.8.10/libavcodec/bink.c:1248: undefined reference tocos'
/root/ffmpeg-0.8.10/libavcodec/bink.c:1253: undefined reference to `cos'

@3d0c
Copy link
Owner

3d0c commented Aug 13, 2013

It's not a gmf build issue. There is something wrong in Your ffmpeg build. Why it references on the /usr/local path? What is the value of the --prefix parameter? Have You successfully built it?

@3d0c 3d0c closed this as completed Apr 7, 2014
3d0c added a commit that referenced this issue May 18, 2014
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

2 participants