How do the platform specific SDL interface with the SDL_main?

Hi

I was looking through the sdl_src on hg and I see the different platforms,
I would like to edit some android specific code, not removing anything just
adding a few additional JNI calls back to Java test some things.

but looking at my local installation of the SDL
/* I installed it from the .dmg fiile */
There doesn’t seem to be any connection at all.

Do I need to install SDL the linux way to be able to edit edit the SDL
source files. Specifically android?

I forgot to include this in the last email:

in src/core/android/SDL_android.c

there’s this line number 52: /* #define DEBUG_JNI */

If I uncomment this out, there’s still no update when I build and install a
test app. How could I edit that file to have the JNI debug logs show?On Tue, Sep 1, 2015 at 2:06 AM, Owen Alanzo Hogarth <@Owen_Alanzo_Hogarth> wrote:

Hi

I was looking through the sdl_src on hg and I see the different platforms,
I would like to edit some android specific code, not removing anything just
adding a few additional JNI calls back to Java test some things.

but looking at my local installation of the SDL
/* I installed it from the .dmg fiile */
There doesn’t seem to be any connection at all.

Do I need to install SDL the linux way to be able to edit edit the SDL
source files. Specifically android?

You probably have to recompile it yourself? Try downloading the source,
then make the changes, compile it, install it, and then compile/install
your test app again.On 31 August 2015 at 20:10, Owen Alanzo Hogarth wrote:

I forgot to include this in the last email:

in src/core/android/SDL_android.c

there’s this line number 52: /* #define DEBUG_JNI */

If I uncomment this out, there’s still no update when I build and install
a test app. How could I edit that file to have the JNI debug logs show?

On Tue, Sep 1, 2015 at 2:06 AM, Owen Alanzo Hogarth wrote:

Hi

I was looking through the sdl_src on hg and I see the different
platforms, I would like to edit some android specific code, not removing
anything just adding a few additional JNI calls back to Java test some
things.

but looking at my local installation of the SDL
/* I installed it from the .dmg fiile */
There doesn’t seem to be any connection at all.

Do I need to install SDL the linux way to be able to edit edit the SDL
source files. Specifically android?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

If you have a system-wide installation of SDL2, your compiler is likely
going to use that by default. If you are using sdl2-config, you could
probably copy it and in the copy, update the paths to your custom SDL2
build.

But like Bob said, you will have to do a full compile to have your library
to see the changes from that #define (#define is preprocessor, which means
SDL2 won’t see the header changes since they were already set at compile
time).On Mon, Aug 31, 2015 at 2:10 PM, Owen Alanzo Hogarth wrote:

I forgot to include this in the last email:

in src/core/android/SDL_android.c

there’s this line number 52: /* #define DEBUG_JNI */

If I uncomment this out, there’s still no update when I build and install
a test app. How could I edit that file to have the JNI debug logs show?

On Tue, Sep 1, 2015 at 2:06 AM, Owen Alanzo Hogarth wrote:

Hi

I was looking through the sdl_src on hg and I see the different
platforms, I would like to edit some android specific code, not removing
anything just adding a few additional JNI calls back to Java test some
things.

but looking at my local installation of the SDL
/* I installed it from the .dmg fiile */
There doesn’t seem to be any connection at all.

Do I need to install SDL the linux way to be able to edit edit the SDL
source files. Specifically android?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org