alexkay / spek

Acoustic spectrum analyser
http://spek.cc
GNU General Public License v3.0
2.57k stars 257 forks source link

In Makefile dose not use AVUTIL_CFLAGS variable #312

Open khenarghot opened 1 month ago

khenarghot commented 1 month ago

Can't build with error:

spek-fft.h:7:10: fatal error: libavutil/mem.h: No such file or directory 7 | #include <libavutil/mem.h>

In Makefile dose not use AVUTIL_CFLAGS variable in spec_CFLAGS.

khenarghot commented 1 month ago

Patch for this problem:

diff --git a/src/Makefile.am b/src/Makefile.am
index c4aba08..32fd0f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -50,7 +50,8 @@ spek_CPPFLAGS = \
    $(WX_CPPFLAGS)

 spek_CXXFLAGS = \
-   $(WX_CXXFLAGS_ONLY)
+   $(WX_CXXFLAGS_ONLY)\
+   $(AVUTIL_CFLAGS)

 spek_LDADD = \
    libspek.a \