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

Make fails on libav_encoder.cpp on Manjaro GCC12 [BUG] #328

Closed
m3cinc opened this issue Jul 26, 2022 · 2 comments
Closed

Make fails on libav_encoder.cpp on Manjaro GCC12 [BUG] #328

m3cinc opened this issue Jul 26, 2022 · 2 comments

Comments

@m3cinc
Copy link

m3cinc commented Jul 26, 2022

Describe the bug
When building on GCC12 (latest Manjaro release), an invalid conversion is reported in libav_encoder.cpp.

Perhaps a compiler flag would prevent???

Bug report
[marc@scan3d64 build]$ uname -a
Linux scan3d64 5.15.52-1-MANJARO-ARM-RPI #1 SMP PREEMPT Tue Jul 5 12:49:52 UTC 2022 aarch64 GNU/Linux
[marc@scan3d64 build]$ make
[ 12%] Built target images
[ 36%] Built target post_processing_stages
Generating version string: 3dcda2b-intree-dirty 26-07-2022 (11:17:05)
[ 36%] Built target VersionCpp
[ 48%] Built target preview
Consolidate compiler generated dependencies of target libcamera_app
[ 50%] Building CXX object core/CMakeFiles/libcamera_app.dir/version.cpp.o
[ 52%] Linking CXX shared library libcamera_app.so
[ 58%] Built target libcamera_app
[ 60%] Building CXX object encoder/CMakeFiles/encoders.dir/libav_encoder.cpp.o
/home/marc/libcamera-apps/encoder/libav_encoder.cpp: In member function ‘void LibAvEncoder::initAudioInCodec(const VideoOptions*, const StreamInfo&)’:
/home/marc/libcamera-apps/encoder/libav_encoder.cpp:132:56: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
132 | AVInputFormat input_fmt = av_find_input_format("pulse");
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| const AVInputFormat

compilation terminated due to -Wfatal-errors.
make[2]: *** [encoder/CMakeFiles/encoders.dir/build.make:132: encoder/CMakeFiles/encoders.dir/libav_encoder.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:288: encoder/CMakeFiles/encoders.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

@naushir
Copy link
Collaborator

naushir commented Aug 2, 2022

This should be fixed with #333.

@naushir
Copy link
Collaborator

naushir commented Aug 2, 2022

Resolving...

@naushir naushir closed this as completed Aug 2, 2022
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