aubio / ofxAubio

openFrameworks addon for aubio, estimates beat, onset, pitch, and a few other things
https://aubio.org/ofxAubio
GNU General Public License v3.0
59 stars 18 forks source link

improve windows build #7

Open piem opened 6 years ago

piem commented 6 years ago

It would be nice if building on windows was easier.

Downloading the latest binary build from https://aubio.org/download#win could be a first step.

SeanJD commented 6 years ago

The following steps worked for me in successfully building an executable using aubio / ofxAubio on Windows 10, VS2017, openFrameworks 0.98 ....

Create a project with the ofxAubio addon

Grab the windows build from above and extract.

I used the 64-bit version - if you do so make sure to set your platform to x64 in VS.

Go to Project Properties > Configuration Properties > C/C++ > General > Additional Include Directories and add the path to the include directory (path_to/aubio-0.4.6-win64/include) to include the header files for the compiler

Go to Project Properties > Configuration Properties > Linker > General > Additional Library Directories and add the path to the lib directory where your .a files can be found (path_to/aubio-0.4.6-win64/lib)

Go to Project Properties > Configuration Properties > Linker > Input > Additional Dependencies and add the .a files (add aubio.dll.a and libaubio.a here) to add the archive files for the linker.

Make sure to copy the libaubio-5.dll file to the bin directory of your project so it can be found at runtime.

ghost commented 5 years ago

Hi, i have tried to do the steps you mentioned above, but i keep getting these compilation errors: 1744f436c73152ac4c8c771e8bc16967

moebiussurfing commented 4 years ago

thanks @SeanJD, @Solanonaranj here it worked fine after following all your steps. No aubio errors at all. Just only like 3 errors related to not included std::string solved changing this:

//#include "ofLog.h"
#include "ofMain.h"
moebiussurfing commented 4 years ago

ofxAubio1 ofxAubio2 ofxAubio3 ofxAubio4