MTG / homebrew-essentia

Homebrew build scripts for Essentia
34 stars 13 forks source link

Failed installation with brew on Mac OS Mojave #16

Closed alexanderkeijser73 closed 4 years ago

alexanderkeijser73 commented 4 years ago
(aspma) Alexander-MacBook-Pro:essentia Alexander$ brew install essentia --HEAD

==> Installing essentia from mtg/essentia
==> Cloning https://github.com/MTG/essentia.git
Updating /Users/Alexander/Library/Caches/Homebrew/essentia--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 896a402 Merge pull request #924 from pabloEntropia/eigen3_support
Entering 'test/audio'
/Users/Alexander/Library/Caches/Homebrew/essentia--git/test/audio
==> ./waf configure --mode=release --with-examples --with-vamp --prefix=/usr/local/Cellar/essentia/HEAD-896a402
Last 15 lines from /Users/Alexander/Library/Logs/Homebrew/essentia/01.waf:
--with-examples
--with-vamp
--prefix=/usr/local/Cellar/essentia/HEAD-896a402

Setting top to                           : /private/tmp/essentia-20191207-67958-gwiv6y 
Setting out to                           : /private/tmp/essentia-20191207-67958-gwiv6y/build 
→ configuring the project in /private/tmp/essentia-20191207-67958-gwiv6y
→ Building in release mode
Checking for 'clang++' (C++ compiler)    : clang++ 
Checking for 'clang' (C compiler)        : clang 
→ Searching *.pc pkg-config files for dependencies in /usr/local/opt/libyaml/lib/pkgconfig:/usr/local/opt/isl/lib/pkgconfig:/usr/local/opt/mpfr/lib/pkgconfig:/usr/local/opt/hwloc/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig:/usr/local/opt/libevent/lib/pkgconfig:/usr/local/opt/open-mpi/lib/pkgconfig:/usr/local/opt/fftw/lib/pkgconfig:/usr/local/opt/aom/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/frei0r/lib/pkgconfig:/usr/local/opt/libidn2/lib/pkgconfig:/usr/local/opt/libtasn1/lib/pkgconfig:/usr/local/opt/nettle/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/p11-kit/lib/pkgconfig:/usr/local/opt/unbound/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/fribidi/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/lzo/lib/pkgconfig:/usr/local/opt/pixman/lib/pkgconfig:/usr/local/opt/cairo/lib/pkgconfig:/usr/local/opt/graphite2/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/harfbuzz/lib/pkgconfig:/usr/local/opt/libass/lib/pkgconfig:/usr/local/opt/libbluray/lib/pkgconfig:/usr/local/opt/libsoxr/lib/pkgconfig:/usr/local/opt/libvidstab/lib/pkgconfig:/usr/local/opt/libogg/lib/pkgconfig:/usr/local/opt/libvorbis/lib/pkgconfig:/usr/local/opt/libvpx/lib/pkgconfig:/usr/local/opt/opencore-amr/lib/pkgconfig:/usr/local/opt/jpeg/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/little-cms2/lib/pkgconfig:/usr/local/opt/openjpeg/lib/pkgconfig:/usr/local/opt/opus/lib/pkgconfig:/usr/local/opt/rtmpdump/lib/pkgconfig:/usr/local/opt/flac/lib/pkgconfig:/usr/local/opt/libsndfile/lib/pkgconfig:/usr/local/opt/libsamplerate/lib/pkgconfig:/usr/local/opt/rubberband/lib/pkgconfig:/usr/local/opt/sdl2/lib/pkgconfig:/usr/local/opt/speex/lib/pkgconfig:/usr/local/opt/webp/lib/pkgconfig:/usr/local/opt/leptonica/lib/pkgconfig:/usr/local/opt/tesseract/lib/pkgconfig:/usr/local/opt/theora/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/x265/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/taglib/lib/pkgconfig:/usr/local/opt/chromaprint/lib/pkgconfig:/usr/local/opt/python@2/lib/pkgconfig:/usr/local/opt/openblas/lib/pkgconfig
Checking for program 'pkg-config'        : /usr/local/opt/pkg-config/bin/pkg-config 
Checking for 'eigen3'                    : not found 
The configuration failed
(complete log in /private/tmp/essentia-20191207-67958-gwiv6y/build/config.log)
alexanderkeijser73 commented 4 years ago

Fixed by installing from source and adding to conda environment as follows:

git clone --recursive https://github.com/MTG/essentia.git
cd essentia
python3 ./waf configure --build-static --with-python --with-cpptests --with-examples --with-vamp
python3 ./waf
python3 ./waf install

Package is installed here, add this to ~/.bash_profile

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.5/site-packages

Doesn't seem to work with python 3.7, create new environment with python 3.5

conda create -n essentia-environment python=3.5
conda activate essentia-environment
pip install -U numpy
pip install six
pip install ipykernel
python -m ipykernel install

Then select "Python 3" from kernels in jupyter notebook