The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Strange error SDL 2.0 lib.org.app
Timodor


Joined: 14 Apr 2013
Posts: 72
Location: Australia
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"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="test.game"
android:versionCode="1"
android:versionName="1.00">
<uses-sdk android:minSdkVersion="9"/>
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:name="test.game.SDLActivity" android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
/>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</manifest>
strange problem
Timodor


Joined: 14 Apr 2013
Posts: 72
Location: Australia
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)

2. Android Manifest

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

3. SDLActivity.Java

package org.libsdl.app

3. 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.
Strange error SDL 2.0 lib.org.app
John
Guest

You're missing about a dozen. Look in 'SDL_android.cpp'.

On 05/12/2013 11:03 AM, Timodor wrote:
Quote:
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)

2. Android Manifest

package="org.libsdl.app"

3. SDLActivity.Java

package org.libsdl.app

3. 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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Strange error SDL 2.0 lib.org.app
Jonny D


Joined: 12 Sep 2009
Posts: 932
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 D



On Sun, May 12, 2013 at 11:44 AM, John wrote:
Quote:
You're missing about a dozen. Look in 'SDL_android.cpp'.

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


Quote:
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)

2. Android Manifest

package="org.libsdl.app"

3. SDLActivity.Java

package org.libsdl.app

3. 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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Timodor


Joined: 14 Apr 2013
Posts: 72
Location: Australia
Thanks dudes it was in the that cpp file John

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