Sorry, but... ofxMidi runs me crazy


I’m newbie in a cruel world, and as a goodnewbie I have questions…

Santa claus brought me a arduino card, and a big book to make stuff, but i can’t not run properly the ofxMidi addon

First, it don’t compile if i don’t include ofEvents.h in ofxMidiEvents.h

This error below :
…\addons\ofxMidi\events\ofxMidiEvents.h|17|error: expected class-name before ‘{’ token|
||=== Build finished: 1 errors, 0 warnings ===|

But at the end, i have erros like this :
_G:\PROJETS\_OF\addons\ofxMidi\libs\RtMidi.cpp|640|pthread.h: No such file or directory|
G:\PROJETS\_OF\addons\ofxMidi\libs\RtMidi.cpp|644|alsa/asoundlib.h: No such file or directory|
G:\PROJETS\OF\addons\ofxMidi\libs\RtMidi.cpp|649|error: ISO C++ forbids declaration of snd\_seq\_t' with no type| G:\PROJETS\\_OF\addons\ofxMidi\libs\RtMidi.cpp|649|error: expected;’ before ‘*’ token|…
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options…|
||=== Build finished: 50 errors, 0 warnings ===|

I’m proud to solve something, but desperate to not solve others…
Thx for helping, i know the answer is easy


PS: My system Windows XP Pro, my dev environnement : Code Blocks

It looks like ofxMidi is trying to use the Linux libraries instead of the Windows versions of those. You should be able to add:

#define TARGET_WIN32

to the ofxMidiConstants.h header file and have it use the windows headers and types rather than the Linux ones.

I found sometinhg like this by myself, I comment #define LINUX_…

Now, it’s compiling and linking, but no window, and no exe in the path \lib…

Thx for answer.

PS: The big book I was talking about was yours… he’s pretty good and more