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

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

Open
stormwatch opened this issue Jul 10, 2018 · 4 comments
Open

Comments

@stormwatch
Copy link

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
Copy link

same error , OSX Mojave

@molecular
Copy link

molecular commented Sep 27, 2019

same problem with ffmpeg 4.2.1 on master branch

how to get around this?

@mattnite
Copy link

mattnite commented Nov 3, 2019

@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
Copy link

Same error while building the library

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

5 participants