leozimmerman / ofxAudioAnalyzer

openFrameworks wrapper for Essentia. Audio analysis algorithms in real-time
GNU Affero General Public License v3.0
183 stars 37 forks source link

Any idea to make it work on Windows? #26

Open moebiussurfing opened 4 years ago

moebiussurfing commented 4 years ago

any chance to compile on Windows? Essentia looks multiplatform and also https://github.com/npisanti/ofxAudioFile could work as file loader maybe.

leozimmerman commented 4 years ago

It can certainly be compiled on Windows. You'll need to compile first Essentia for Windows and probably that will be enough. I don't use Windows pcs and honestly I'm not maintaining this addon very much anymore

moebiussurfing commented 4 years ago

Thanks for your addon @leozimmerman , and sorry to ask again here.

Just in case some one has any idea to compile the addon/essentia on Windows... will be appreciated.

I just downloaded the essentia.lib file from here: https://github.com/MTG/essentia/issues/330 moved to -> openFrameworks\addons\ofxAudioAnalyzer\libs\essentia\lib\vs\essentia.lib

I created with PG and opened the example-rmsInput. Deleted the ofSoundPlayerExtended h/cpp files.

Compiled to Release/x64 and getting this errors: https://pastebin.com/CQXBixsx

//-

Then I tried to replace the sources from libs F:\essentia-2.1_beta5\src\essentia

Then I'm getting only like 22 errors, much less. But I am stuck.

Severity    Code    Description Project File    Line    Suppression State
Error   C2059   syntax error: ')' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\streamingalgorithmcomposite.cpp) example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\scheduler\graphutils.h 112 
Error   C1083   Cannot open include file: 'libavcodec/avcodec.h': No such file or directory (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\utils\audiocontext.cpp)  example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\utils\ffmpegapi.h  24  
Error   C1083   Cannot open include file: 'yaml.h': No such file or directory (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\utils\jsonconvert.cpp) example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\utils\yamlast.h    28  
Error   C1083   Cannot open include file: 'yaml.h': No such file or directory (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\utils\yamlast.cpp) example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\utils\yamlast.h    28  
Error   C2589   '(': illegal token on right side of '::' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.cpp)   example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.h 51  
Error   C2062   type 'unknown-type' unexpected (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.cpp) example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.h 51  
Error   C2059   syntax error: ')' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.cpp)  example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.h 51  
Error   C2589   '(': illegal token on right side of '::' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.cpp)   example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.h 53  
Error   C2062   type 'unknown-type' unexpected (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.cpp) example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.h 53  
Error   C2059   syntax error: ')' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.cpp)  example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\devnull.h 53  
Error   C2589   '(': illegal token on right side of '::' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.cpp)   example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.h 71  
Error   C2062   type 'unknown-type' unexpected (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.cpp) example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.h 71  
Error   C2059   syntax error: ')' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.cpp)  example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.h 71  
Error   C2589   '(': illegal token on right side of '::' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.cpp)   example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.h 73  
Error   C2062   type 'unknown-type' unexpected (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.cpp) example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.h 73  
Error   C2059   syntax error: ')' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.cpp)  example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\streaming\algorithms\poolstorage.h 73  
Error (active)  E0040   expected an identifier  example-rmsInput    F:\openFrameworks\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\scheduler\graphutils.h 112 
Error   C2589   '(': illegal token on right side of '::' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\scheduler\network.cpp)  example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\scheduler\graphutils.h 112 
Error   C2062   type 'unknown-type' unexpected (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\scheduler\network.cpp)    example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\scheduler\graphutils.h 112 
Error   C2059   syntax error: ')' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\scheduler\network.cpp) example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\scheduler\graphutils.h 112 
Error   C2589   '(': illegal token on right side of '::' (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\streamingalgorithmcomposite.cpp)  example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\scheduler\graphutils.h 112 
Error   C2062   type 'unknown-type' unexpected (compiling source file ..\..\..\addons\ofxAudioAnalyzer\libs\essentia\include\essentia\streaming\streamingalgorithmcomposite.cpp)    example-rmsInput    f:\openframeworks\addons\ofxaudioanalyzer\libs\essentia\include\essentia\scheduler\graphutils.h 112 

I'll post here news if I get it working.

(I'll try to search better on how to compile essentia-2.1_beta5 by myself... maybe with Msys2/MinGW from Windows Crosscompile on Linux help info. )