andrewrk / libgroove

streaming audio processing library
http://andrewrk.github.io/libgroove/
MIT License
293 stars 35 forks source link

“error: 'filename' is deprecated” when trying to build from master #137

Open stormwatch opened 6 years ago

stormwatch commented 6 years ago

cmake -Wno-error=deprecated-declarations runs succesfully but then make fails:

/usr/local/src/libgroove/src/file.c:108:5: error: 'filename' is deprecated [-Werror=deprecated-declarations] file->filename = f->ic->filename;
^~~~
In file included from /usr/local/src/libgroove/src/file.h:16:0,
from /usr/local/src/libgroove/src/file.c:8: /usr/include/ffmpeg/libavformat/avformat.h:1408:10: note: declared here char filename[1024];
^~~~
...

I added -Wno-error... to cmake because I saw it in #126

Any advice on how to go on?

jimmyyao88 commented 5 years ago

same error , OSX Mojave

molecular commented 5 years ago

same problem with ffmpeg 4.2.1 on master branch

how to get around this?

mattnite commented 5 years ago

@molecular this is from breaking api changes in ffmpeg, for example with filename, it is deprecated in favor of using "url" which is just a char* instead of a fixed sized array.

@andrewrk I'm down to put work into fixing some code rot, would you also be into using conan as a package manager? (it certainly would simplify building from source)

sauntheninja2 commented 2 years ago

Same error while building the library