bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.94k stars 242 forks source link

Installing on a MacOSX El Capitan Errors #39

Closed grelas closed 3 years ago

grelas commented 8 years ago

When trying to install via homebrew, I get the following error:

==> Installing audiowaveform from bbcrd/audiowaveform
==> Downloading https://github.com/bbcrd/audiowaveform/archive/1.0.10.tar.gz
Already downloaded: /Library/Caches/Homebrew/audiowaveform-1.0.10.tar.gz
==> cmake .. -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/audiowaveform/1.0.10' -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DENABLE_TESTS=0 -DCMAKE_C_COMPILER=/usr/
==> make install
Last 15 lines from /Users/admin/Library/Logs/Homebrew/audiowaveform/02.make:
         ^
[ 35%] Building CXX object CMakeFiles/audiowaveform.dir/src/MathUtil.cpp.o
[ 40%] Building CXX object CMakeFiles/audiowaveform.dir/src/Mp3AudioFileReader.cpp.o
/tmp/audiowaveform20160408-3565-10gtue5/audiowaveform-1.0.10/src/Mp3AudioFileReader.cpp:62:10: fatal error: 'mad.h' file not found
#include <mad.h>
         ^
1 error generated.
make[2]: *** [CMakeFiles/audiowaveform.dir/src/Main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [CMakeFiles/audiowaveform.dir/src/GdImageRenderer.cpp.o] Error 1
1 error generated.
make[2]: *** [CMakeFiles/audiowaveform.dir/src/Mp3AudioFileReader.cpp.o] Error 1
make[1]: *** [CMakeFiles/audiowaveform.dir/all] Error 2
make: *** [all] Error 2

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/bbcrd/homebrew-audiowaveform/issues
chrisn commented 8 years ago

Hi Greg,

Homebrew related issues should really be reported over here.

Have you followed the Homebrew Troubleshooting page? It looks like libmad isn't installed on your system - is the mad.h header file present? If so, in which directory? It may be the include path isn't right. We recently fixed an issue with FreeBSD, I wonder if this is related. I'll create version 1.0.11 soon to include that fix.

Chris

chrisn commented 3 years ago

Closing this, but please re-open if there's still an issue. Thanks