You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to build forked-daapd against libav 11.3 results in the following:
uffer.o test -f 'ffmpeg_url_evbuffer.c' || echo './'ffmpeg_url_evbuffer.c
ffmpeg_url_evbuffer.c:40:19: error: unknown type name 'URLContext'
url_evbuffer_open(URLContext *h, const char *filename, int flags)
^
ffmpeg_url_evbuffer.c:46:16: error: use of undeclared identifier 'URL_WRONLY'
if (flags != URL_WRONLY)
^
ffmpeg_url_evbuffer.c:95:20: error: unknown type name 'URLContext'
url_evbuffer_close(URLContext *h)
^
ffmpeg_url_evbuffer.c:103:20: error: unknown type name 'URLContext'
url_evbuffer_write(URLContext *h, unsigned char *buf, int size)
^
ffmpeg_url_evbuffer.c:122:1: error: unknown type name 'URLProtocol'
URLProtocol evbuffer_protocol = {
^
It appears that URLContext and URLProtocol were made internal in ffmpeg and completely thrown out of libav:
Yes, I think they have actually been internal for while. The problem here is that ffmpeg_url_evbuffer is even included in the build, because the check in configure.ac should make COND_AVIO=true, which means that avio_evbuffer should get built instead of ffmpeg_url_evbuffer. I don't know why that doesn't work in this case (maybe something with pkg_config?). A quick work-around is to just change src/Makefile.am, so that the right file is built.
I may make that change in master too, I think some of the ffmpeg versions forked-daapd is trying to support are pretty ancient by now.
Trying to build forked-daapd against libav 11.3 results in the following:
uffer.o
test -f 'ffmpeg_url_evbuffer.c' || echo './'
ffmpeg_url_evbuffer.cffmpeg_url_evbuffer.c:40:19: error: unknown type name 'URLContext'
url_evbuffer_open(URLContext *h, const char *filename, int flags)
^
ffmpeg_url_evbuffer.c:46:16: error: use of undeclared identifier 'URL_WRONLY'
if (flags != URL_WRONLY)
^
ffmpeg_url_evbuffer.c:95:20: error: unknown type name 'URLContext'
url_evbuffer_close(URLContext *h)
^
ffmpeg_url_evbuffer.c:103:20: error: unknown type name 'URLContext'
url_evbuffer_write(URLContext *h, unsigned char *buf, int size)
^
ffmpeg_url_evbuffer.c:122:1: error: unknown type name 'URLProtocol'
URLProtocol evbuffer_protocol = {
^
It appears that URLContext and URLProtocol were made internal in ffmpeg and completely thrown out of libav:
sackmotion/motion#15
Neither struct is to be found anywhere in libav includes.
The text was updated successfully, but these errors were encountered: