heffalumpteam / audio_experiments

audio_experiments
0 stars 0 forks source link

include SDL2_mixer #2

Open tomrbland opened 8 years ago

tomrbland commented 8 years ago

On linux the include is #include "SDL2/SDL_mixer.h"

Is the #include "SDL2_mixer/SDL_mixer" a quirk of the MacOS or is it just where you put the library?

If there are differences between where MacOS installs libraries and linux installs them perhaps we need to work out an "#ifdef MAC" and "#ifdef LINUX"

Thoughts?

berkmolla commented 8 years ago

But for me SDL2_mixer is a different download/framework so it sits in a different folder. Is it not like that on Linux?

I tried SDL2/SDL_mixer but it can't find it.

Let's get Alex to test it since his -framework flag worked instantly, whereas I have to specify where the library is every time during compilation in my makefile.

But looks like we'll have to go down the #ifdef route anyway to get everyone's working (George is using windows so that might come up with other problems too)

tomrbland commented 8 years ago

I wonder if we can auto ifdef? Detect the OS automatically.... Hmmm To Google!!