Skip to content

Build errors on arch linux #5

@derkrasseleo

Description

@derkrasseleo

I don't know if I have installed all dependencies correctly, do you know what could be the problem here?

ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.2.0 (GCC)
libavutil      57. 28.100 / 57. 28.100
libavcodec     59. 37.100 / 59. 37.100
libavformat    59. 27.100 / 59. 27.100
libavdevice    59.  7.100 / 59.  7.100
libavfilter     8. 44.100 /  8. 44.100
libswscale      6.  7.100 /  6.  7.100
libswresample   4.  7.100 /  4.  7.100
libpostproc    56.  6.100 / 56.  6.100

multilib/lib32-sdl2 2.24.2-1
extra/sdl2 2.24.2-1

clang++ -std=c++20 $(pkg-config --cflags fftw3 libavcodec libavformat libavutil libswresample sdl2) -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-unreachable-code-loop-increment -Wno-exit-time-destructors -Wno-padded -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-reserved-identifier -Wno-zero-as-null-pointer-constant -Wno-old-style-cast -Wno-implicit-int-float-conversion -Wno-double-promotion -Wno-weak-vtables -Wall -Wextra -gdwarf-3 -O3 -march=native -I.coddle/libs_src -c ./spec.cpp -o .coddle/spec.cpp.o
./app.cpp:661:35: error: no member named 'codec' in 'AVStream'
  AVCodecContext *codec = stream->codec;
                          ~~~~~~  ^
./app.cpp:707:9: error: use of undeclared identifier 'avcodec_decode_audio4'; did you mean 'avcodec_decode_subtitle2'?
    if (avcodec_decode_audio4(codec, frame, &gotFrame, packet) < 0)
        ^~~~~~~~~~~~~~~~~~~~~
        avcodec_decode_subtitle2
/usr/include/libavcodec/avcodec.h:2545:5: note: 'avcodec_decode_subtitle2' declared here
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
    ^
./app.cpp:707:38: error: cannot initialize a parameter of type 'AVSubtitle *' with an lvalue of type 'AVFrame *'
    if (avcodec_decode_audio4(codec, frame, &gotFrame, packet) < 0)
                                     ^~~~~
/usr/include/libavcodec/avcodec.h:2545:65: note: passing argument to parameter 'sub' here
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
                                                                ^
3 errors generated.
terminate called after throwing an instance of 'int'
Abgebrochen (Speicherabzug geschrieben)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions