Dear Juce Experts,
I'm trying to compile Juce library for Android, so I can link to something like libjuce.so and my C++ code can utilize awesome classes like AudioSampleBuffer etc. So here's what I did:
1. Projucer an Android gui application, compiled it with Android Studio successfully.
2. in path_to_my_folder\AndroidStudio\app\build\intermediates\binaries\debug\armeabi-v7a\lib\armeabi-v7a, I found libjuce_jni.so
3. Write an Android.mk to link to this libjuce_jni.so, while including JuceHeader.h in the correct folder
4. Then when I'm trying to link to it this way, I got:
"/../../JuceLibraryCode/modules/juce_opengl/../../../../JUCE/modules/juce_opengl/juce_opengl.h:59:20: fatal error: GL/gl.h: No such file or directory #include <GL/gl.h> "
Apparently in this juce_opengl.h, it think JUCE_WINDOWS is active and not JUCE_ANDROID flag.
At this point I'm banging my head and stuck, CouldJu help? Am I doing this whole thing right, or did I miss the correct way to set some flag to get around this?
Thanks in advance.