Hi,
On Tue, 12 Apr 2011 02:56:39 -0700 (PDT), herux wrote:
I managed to compile and run the library for android on emulator,
which I
compile the project just a libhellojni.so
compile using paramater like this
ppcarm -Scghi -O1 -Parm -gl -b -B -XX -Xc -XD -CpARMv6 -CfSOFT
-dandroid
-vewnhi -l -XParm-linux-
-Fi/home/herux/workspace/hellojni/jni/lib/arm-linux/ -Fu.
-FUlib/arm-linux/
-o../libs/armeabi/libhellojni.so -FD/usr/share/fpcsrc/binutils/
hellojni.lpr
[...]
then I try to use classes unit or sysutils, the project succeeded in
compiling, but the library did not loaded by the emulator. there is
an error
SIGSEGV
Fyi, there is an unresolved issue with Android shared library
initialization code which affects the use of the sysutils unit, see
http://bugs.freepascal.org/view.php?id=18833 for more details.
Thomas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal