Strange error SDL 2.0 lib.org.app

If one complies with lib.org.app it works fine but lets if you change it to tes.game or something it doesn’t.

Comes up with this.

05-12 20:58:27.079: E/AndroidRuntime(4667): FATAL EXCEPTION: main
05-12 20:58:27.079: E/AndroidRuntime(4667): java.lang.UnsatisfiedLinkError: onNativeResize

  System.loadLibrary("SDL2");
    System.loadLibrary("SDL2_image");
    System.loadLibrary("mikmod");
    System.loadLibrary("SDL2_mixer");
    System.loadLibrary("main");

One renames the source from lib.org.app to test.game and places the java file. Tries to compile not luck with that error.

I though I had found the problem when I looked into SDL\SRC\MAIN\ANDROID\SDL_Andriod_main.cpp and found the lib.org.app in there, changed that still no luck.

My Make file is identical to SDL 1.2 previous compile.

I have no idea how

<?xml version="1.1" encoding="utf-8"?>











/>



The only places where I can find org.lib.sdl

  1. SDL_android_main.cpp

SDL_android_main.cpp
extern “C” void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj)

  1. Android Manifest

package=“org.libsdl.app”
<activity android:name=“org.libsdl.app.SDLActivity”

  1. SDLActivity.Java

package org.libsdl.app

  1. Src/org/libsdl/app

If I changed these to it.software.pocker, it all should work? or am i missing something? when If I change everything back to libsdl everything works.

You’re missing about a dozen. Look in ‘SDL_android.cpp’.On 05/12/2013 11:03 AM, Timodor wrote:

The only places where I can find org.lib.sdl

  1. SDL_android_main.cpp

SDL_android_main.cpp
extern “C” void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass
cls, jobject obj)

  1. Android Manifest

package=“org.libsdl.app”

  1. SDLActivity.Java

package org.libsdl.app

  1. Src/org/libsdl/app

If I changed these to it.software.pocker, it all should work? or am i missing
something? when If I change everything back to libsdl everything works.


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

By the way, these changes should not be necessary and they do separate you
from the mainline SDL2 code as it is updated. I just want to make sure
that you are aware of the info in README.android and that you are meant to
use a separate Java file and class that extends SDLActivity.
SDLActivity.java and all the other references should be left intact.

Jonny DOn Sun, May 12, 2013 at 11:44 AM, John wrote:

You’re missing about a dozen. Look in ‘SDL_android.cpp’.

On 05/12/2013 11:03 AM, Timodor wrote:

The only places where I can find org.lib.sdl

  1. SDL_android_main.cpp

SDL_android_main.cpp
extern “C” void Java_org_libsdl_app_*SDLActivity_nativeInit(JNIEnv
env, jclass
cls, jobject obj)

  1. Android Manifest

package=“org.libsdl.app”

  1. SDLActivity.Java

package org.libsdl.app

  1. Src/org/libsdl/app

If I changed these to it.software.pocker, it all should work? or am i
missing
something? when If I change everything back to libsdl everything works.

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

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

Thanks dudes it was in the that cpp file John

There was about 10 of them, quick copy and paste and it was done :slight_smile:
Thanks everyone on here, without the advice to move onto SDL 2.0 I would of been screwed.