ml4a / ml4a-ofx

A collection of openFrameworks apps for working with machine learning
http://ml4a.github.io
1.22k stars 279 forks source link

Error when compiling AudioClassifier app using VisualStudio #21

Closed Pems closed 5 years ago

Pems commented 6 years ago

Hello. So, I downloaded the latest version of openFrameworks as well as the ml4a-ofx repository, and used the Project Generator to create a Visual Studio solution for the AudioClassifier app. Next I got the addons that the app uses, and placed them in the addons folder. At first I was getting some errors with the GRT addon, but I realized that the ofxGrt repo didn't have the GRT folder that appears here, so I placed the folder inside the addon's folder and it solved the issue.

However, with the ofxMaxim addon I get another issue: I noticed the github repo links to another repo which contains the same addon, but updated more recently. I have tried copying both folders into the addons folder, but I get different results with each. I attach screenshots. I have tried merging the contents of both folders into one, but I still get errors.

This is from the falcon4ever repo: falcon4ever_ofxmaxim

And this is from the Maximilian repo: micknoise_maximilian

I haven't tried the other apps yet, but any help with this would be very appreciated.

genekogan commented 6 years ago

can you get any of the examples working with ofxMaxim? this appears to be an issue with ofxMaxim, not the ml4a-ofx examples.

Pems commented 6 years ago

Hi. Well, kinda... I managed to make the ofMaximExampleVS2010 run, but it doesn't recognize the keyboard input. I got some errors at first, but they were due to being made in an erlier version of Visual Studio and openFrameworks.

Now, when I try to compile again the AudioClassifier app I get only this error: "Error LNK2001 unresolved external symbol "public: __thiscall GRT::FFT::FFT(unsigned int,unsigned int,unsigned int,unsigned int,bool,bool)" (??0FFT@GRT@@QAE@IIII_N0@Z) AudioClassifier D:\Open Frameworks\ml4a-ofx-master\apps\AudioClassifier\FFTFeatures.obj". I really have no idea what to make out of this, especially because when I browse the folder there's no FFTFeatures.obj file, which I'm asuming is part of the build process from Visual Studio... but beyond that I have no idea what could it be.

Do you have testimonies of people making it work on windows so far?

EDIT: Oh, reading the error, I notice the GRT. Could this be an issue with the GRT library? I only copied the GRT folder inside the ofxGrt folder, but I don't know if perhaps I should add or remove files from there?

genekogan commented 5 years ago

it seems perhaps you didn't download the GRT libs with the submodule. see the instructions in the ofxGRT github page.

cd ofxGRT
git submodule init
git submodule update