Re: [fpc-pascal] Re: android share library with classes unit

2011-04-14 Thread Felipe Monteiro de Carvalho
Forwarding to the mailling list:

On Thu, Apr 14, 2011 at 4:09 AM, heru susanto her...@gmail.com wrote:
 I've done the second step
 here :
 #!/bin/sh
 /usr/local/bin/arm-linux-as_org -march=armv6 -meabi=5 -mfloat-abi=softfp
 -mfpu=vfp3 $@
 my problem have been solved. my next problem is dynamic linking.
 thank you
 herux


 On Wed, Apr 13, 2011 at 3:29 PM, Felipe Monteiro de Carvalho
 felipemonteiro.carva...@gmail.com wrote:

 Have you done Step 2 described here:


 http://wiki.lazarus.freepascal.org/Android_Interface#Using_the_pre-compiled_compiler

 ?

 I know that those instructions are different from what you are doing,
 but Step 2 should apply anyway.

 --
 Felipe Monteiro de Carvalho


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: android share library with classes unit

2011-04-13 Thread Felipe Monteiro de Carvalho
Have you done Step 2 described here:

http://wiki.lazarus.freepascal.org/Android_Interface#Using_the_pre-compiled_compiler

?

I know that those instructions are different from what you are doing,
but Step 2 should apply anyway.

-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: android share library with classes unit

2011-04-13 Thread darekm
 I use this binutils http://www.gnu.org/software/binutils/
 using this command to build crosscompiler

 make clean crossinstall CPU_TARGET=arm OS_TARGET=linux
 CROSSBINDIR=/usr/share/fpcsrc/binutils/ OPT=-dFPC_ARMEL -O- -gl
 CROSSOPT=-dANDROID -CpARMv6 -gl -CfSOFT -O-

CROSSOPT=-dANDROID -CpARMv6  -dFPC_ARMEL 


I've trace Your debug log.  Bug is on line  where library is loaded.
It seems be corrupted. I always had once more line with absent of dlopen

D/dalvikvm( 1082): Trying to load lib
/data/data/com.herux.hellojni/lib/libhellojni.so 0x44e7ea48

here something with dlopen, I don't remember exactly.
^^^
I/DEBUG   (   31): *** *** *** *** *** *** *** *** *** *** *** *** *** ***
*** ***


Darek

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: android share library with classes unit

2011-04-13 Thread herux
My problem is resolved, I apply the patch contained in that link. reported by
Dejan Boras.
then rebuild cross compiler with this:

make clean crossinstall CPU_TARGET=arm OS_TARGET=linux
CROSSBINDIR=/usr/share/fpcsrc/binutils OPT=-dFPC_ARMEL -O- -gl
CROSSOPT=-dANDROID -CpARMv5 -gl -CfSOFT -O-

now it's work. libhellojni.so loaded succesfully.

thanks

herux

-
-
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/android-share-library-with-classes-unit-tp4297859p4300489.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: android share library with classes unit

2011-04-12 Thread herux
I use this binutils http://www.gnu.org/software/binutils/
using this command to build crosscompiler

make clean crossinstall CPU_TARGET=arm OS_TARGET=linux
CROSSBINDIR=/usr/share/fpcsrc/binutils/ OPT=-dFPC_ARMEL -O- -gl
CROSSOPT=-dANDROID -CpARMv6 -gl -CfSOFT -O-

I may have to repeat it

thank u

-
-
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/android-share-library-with-classes-unit-tp4297859p4299510.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal