Skip to content

fatal error: libavutil/mem.h: No such file or directory--minor compile issue #341

@ThePowerTool

Description

@ThePowerTool

Making all in src
make[2]: Entering directory '/home/guest/git/spek/src'
CXX spek-spek-artwork.o
CXX spek-spek-events.o
CXX spek-spek-platform.o
CXX spek-spek-preferences-dialog.o
CXX spek-spek-preferences.o
CXX spek-spek-ruler.o
CXX spek-spek-spectrogram.o
In file included from spek-spectrogram.cc:7:
spek-fft.h:7:10: fatal error: libavutil/mem.h: No such file or directory
7 | #include <libavutil/mem.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:753: spek-spek-spectrogram.o] Error 1
make[2]: Leaving directory '/home/guest/git/spek/src'
make[1]: *** [Makefile:482: all-recursive] Error 1
make[1]: Leaving directory '/home/guest/git/spek'
make: *** [Makefile:408: all] Error 2

Resolution:
change configure.ac from:
CXXFLAGS="$CXXFLAGS -std=gnu++11 -Wall -Wextra"

to:
CXXFLAGS="$CXXFLAGS -std=gnu++11 -Wall -Wextra -I/usr/include/ffmpeg"

I'm on Fedora 42.

Ref: #149

As the (above) resolution works, I'm just posting this as FYI.

I love this tool!

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