I wrote a simple framework for developing apps using SDL. Theoretically it could be used for mobile or desktop, but my intent was for mobile devices. My next goal is to write a build script in python to compile it for any target.
I’ve successfully created the project (with the ndk-build script in Windows) but when I execute the program in an emulator, or on a real device, an error message comes up on the screen saying “App has stopped”. I can’t seem to solve this issue. Any ideas on what can cause this problem?
check the logcat to see the problem.
On a console, run adb logcat. Then execute program. The logcat will likely
contain the reason your program was stopped.
I’ve successfully created the project (with the ndk-build script in
Windows) but when I execute the program in an emulator, or on a real
device, an error message comes up on the screen saying “App has stopped”. I
can’t seem to solve this issue. Any ideas on what can cause this problem?
In the second image you linked to, at 5th line from the bottom, you can see
the cause of crash being UnsatisfiedLinkError. What this usually means is
that you are trying to load a native library that doesn’t exist or you
didn’t compile in. If you open SDLActivity.Java in eclipse and go to around
line 49 (the line number is visible in the error log you showed me), you
should see something like:
System.loadLibrary(“SDL2”); for example, loads the SDL libary dynamically.
Check for the libraries you are not using, but you are trying to load, and
comment those lines. In particular, try commenting the lines System
.loadLibrary(“reloc_library”); and System.loadLibrary(“signal”); if they
exist.
I edited the SDLActivity.java and commented in SDL_image and such so I can use the external libraries but I still get the following errors: http://tinypic.com/view.php?pic=2lx7ayv&s=8
I really don’t get it and it makes me really frustrated. A lot of people are making android apps with SDL (as far as I know) and there must be something that I’m doing wrong. :?
I edited the SDLActivity.java and commented in SDL_image and such so I can
use the external libraries but I still get the following errors: http://tinypic.com/view.php?pic=2lx7ayv&s=8
I really don’t get it and it makes me really frustrated. A lot of people
are making android apps with SDL (as far as I know) and there must be
something that I’m doing wrong. [image: Confused]
Sorry, still doesn’t work. I really doubt it’s something wrong with your framework and that the error / problem is with my computer. Thanks for your time.