[fpc-pascal] android share library with classes unit

Thomas Schatzl tom_at_work at gmx.at
Wed Apr 13 11:09:07 CEST 2011


 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




More information about the fpc-pascal mailing list