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 in groove_file_open_custom when making #138

Open
EwanRoycroft opened this issue Jun 6, 2019 · 1 comment
Open

Error in groove_file_open_custom when making #138

EwanRoycroft opened this issue Jun 6, 2019 · 1 comment

Comments

@EwanRoycroft
Copy link

EwanRoycroft commented Jun 6, 2019

Trying to build on Raspberry Pi Zero W, having followed the instructions here, I receive this error when making libgroove:

Scanning dependencies of target libgroove_shared
[  2%] Building C object CMakeFiles/libgroove_shared.dir/src/buffer.c.o
[  5%] Building C object CMakeFiles/libgroove_shared.dir/src/file.c.o
/home/pi/libgroove/src/file.c: In function ‘groove_file_open_custom’:
/home/pi/libgroove/src/file.c:126:12: error: ‘AVIOContext {aka struct AVIOContext}’ has no member named ‘direct’
     f->avio->direct = AVIO_FLAG_DIRECT;
            ^~
/home/pi/libgroove/src/file.c:126:23: error: ‘AVIO_FLAG_DIRECT’ undeclared (first use in this function)
     f->avio->direct = AVIO_FLAG_DIRECT;
                       ^~~~~~~~~~~~~~~~
/home/pi/libgroove/src/file.c:126:23: note: each undeclared identifier is reported only once for each function it appears in
/home/pi/libgroove/src/file.c:184:33: error: implicit declaration of function ‘av_get_default_channel_layout’ [-Werror=implicit-function-declaration]
         avctx->channel_layout = av_get_default_channel_layout(avctx->channels);
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
CMakeFiles/libgroove_shared.dir/build.make:86: recipe for target 'CMakeFiles/libgroove_shared.dir/src/file.c.o' failed
make[2]: *** [CMakeFiles/libgroove_shared.dir/src/file.c.o] Error 1
CMakeFiles/Makefile2:289: recipe for target 'CMakeFiles/libgroove_shared.dir/all' failed
make[1]: *** [CMakeFiles/libgroove_shared.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Any idea what's gone wrong here?

@mattnite
Copy link

mattnite commented Nov 3, 2019

Hey @EwanRoycroft I've got the exact same issue. I'm trying to build from source on a fresh Ubuntu 18.04 (also followed previous steps for libav) not sure how to fix it, but I'll post here if I find anything.

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