Closed GitLau closed 6 years ago
How did you resolve this? I run into the same problem.
Hey Tobias, I ended up getting help to install essentia without using homebrew. It's a pretty good workaround unless you need/want homebrew for other reasons.
I had a similar issue trying to build beta3. Note that this issue might have been fixed in the latest version of the master branch.
For beta3 the build is failing on constantq.cpp, here's a quick (hacky) fix:
It appears the compiler is complaining about a cast from _Complex double
to double
. Note that the complex value in all the lines the compiler is complaining about is 0.0 + 0.0j
which is just 0. So you can replace 0.0 + 0.0j
with just 0.0
in these lines, and then the compilation completes successfully (at least for me).
Note that for these lines this change shouldn't change the semantics of the code because it's just a complex 0 value that's immediately cast to a double 0, but be careful about making this change to lines where the value is not 0 or where it's not immediately cast to a double, since that could change the behavior of the code in undesired ways.
I installed essentia earlier today using homebrew and it worked like a charm. Then I decided I needed to remove anaconda and do a clean install of homebrew to start setting up my environments with a clean slate.
When I try to install essentia now, I get the following error:
Last 15 lines from /Users/Christoffer/Library/Logs/Homebrew/essentia/02.waf: ../src/algorithms/standard/constantq.cpp:104:58: error: implicit conversion from '_Complex double' to 'double' is not permitted in C++ vector<complex > hammingWindow(_FFTLength, 0.0 + 0.0j);