Recent

Author Topic: First steps of LCL-Android are ready  (Read 119435 times)

mac.1

  • Newbie
  • Posts: 6
Re: First steps of LCL-Android are ready
« Reply #15 on: August 11, 2011, 09:34:40 pm »
Nobody would buy a phone with a pascal OS on it,
except we Call it "iPascal" , and put some vegetables at the back. Then it would rule the world  >:D

mdalacu

  • Full Member
  • ***
  • Posts: 233
    • dmSimpleApps
Re: First steps of LCL-Android are ready
« Reply #16 on: August 12, 2011, 07:05:08 am »
Nobody would buy a phone with a pascal OS on it,
except we Call it "iPascal" , and put some vegetables at the back. Then it would rule the world  >:D

It's sad but true!  :(
Anyway i hope that Android branch will catch momentum here because i love them both (Android + Lazaus)  :-[

laguna

  • Sr. Member
  • ****
  • Posts: 323
Re: First steps of LCL-Android are ready
« Reply #17 on: August 13, 2011, 04:37:02 pm »
Hello Felipe,
11.4 on ubuntu I installed the following packages:
fpc-2.4.4-1.i386.deb.tar
lazarus-0.9.31.31952-20110812.i386.deb.tar

Lazarus is working properly.
Can you tell me step by step, what should I install to be able to create applications for Android?
I ask this because in following the guidance which is mentioned above did not succeed, and I did not understand where I went wrong.
 
Thanks for everything.

RandyBeck

  • Newbie
  • Posts: 2
Re: First steps of LCL-Android are ready
« Reply #18 on: August 15, 2011, 11:40:08 pm »
Congrats!

Shouldn't this news go out on the twitter feed?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #19 on: August 16, 2011, 08:02:40 am »
Hello Felipe,
11.4 on ubuntu I installed the following packages:
fpc-2.4.4-1.i386.deb.tar
lazarus-0.9.31.31952-20110812.i386.deb.tar

Lazarus is working properly.
Can you tell me step by step, what should I install to be able to create applications for Android?
I ask this because in following the guidance which is mentioned above did not succeed, and I did not understand where I went wrong.

Hello,

1> First of all I recommend using Lazarus from SVN instead of Lazarus from a snapshot. http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_Lazarus_SVN_development_version

You can build Lazarus with the command lines:

cd lazarus
make bigide

2> Install the crosscompiler as described here: http://wiki.lazarus.freepascal.org/Android_Interface#Using_the_pre-compiled_compiler

3> Download the lazarus-ccr with this command:

svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr lazarus-ccr

Or if you have limited disk space just what matters:

svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/examples/androidlcl androidlcl

4> Now compile the example project in lazarus-ccr/examples/androidlcl

5> Download and install the Android SDK

6> Open all files in lazarus-ccr/examples/androidlcl/android and see where you need to update the SDK location

7> Build the Android package using this command line:

cd lazarus-ccr/examples/androidlcl/android
ant debug

If you don't have ant you need to install it.

Jonathan

  • New Member
  • *
  • Posts: 40
Re: First steps of LCL-Android are ready
« Reply #20 on: August 16, 2011, 10:44:20 am »
I have meet  an error :  "androidlcltest.lpr(1,1) Fatal: Can't find unit Interfaces used by androidlcltest  "   Do you know the reason?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #21 on: August 16, 2011, 10:48:18 am »
I have meet  an error :  "androidlcltest.lpr(1,1) Fatal: Can't find unit Interfaces used by androidlcltest  "   Do you know the reason?

Do you have the arm-linux cross-compiler installed?

Which Lazarus version are you using? It must be the latest SVN

Jonathan

  • New Member
  • *
  • Posts: 40
Re: First steps of LCL-Android are ready
« Reply #22 on: August 17, 2011, 05:07:51 am »
I hava installed cross compiler  . I found the Unit path is not correct! After I add the correct Unit path the problem is not solved.Maybe I dont use lastest SVN .  Lazarus 0.9.30  fpc:2.4.2

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #23 on: August 17, 2011, 08:05:35 am »
I hava installed cross compiler  . I found the Unit path is not correct! After I add the correct Unit path the problem is not solved.Maybe I dont use lastest SVN .  Lazarus 0.9.30  fpc:2.4.2

The latest lazarus svn is version 0.9.31 so for sure you are not using svn if you have 0.9.30

LCL-Android is available only in Lazarus SVN at the moment.

Jonathan

  • New Member
  • *
  • Posts: 40
Re: First steps of LCL-Android are ready
« Reply #24 on: August 17, 2011, 12:33:12 pm »
I try to use the pre-compiled compiler .MY system is Ubuntu .I dont find the suitable "cross-arm-binutils" .Is cross-arm-binutils-2.20.51.0.4-2mnb2.i586.rpm OK for ubuntu ???
« Last Edit: August 17, 2011, 12:38:33 pm by Jonathan »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #25 on: August 17, 2011, 12:44:47 pm »
I try to use the pre-compiled compiler .MY system is Ubuntu .I dont find the suitable "cross-arm-binutils" .Is cross-arm-binutils-2.20.51.0.4-2mnb2.i586.rpm OK for ubuntu ???

You can try that, but I don't think it is a good idea. The best would be if you find the real cross-arm-binutils from Ubuntu. You could try asking where they are in a forum to discuss Ubuntu or maybe someone here that uses Ubuntu will know.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: First steps of LCL-Android are ready
« Reply #26 on: August 17, 2011, 02:03:42 pm »
Quote
You can try that, but I don't think it is a good idea. The best would be if you find the real cross-arm-binutils from Ubuntu. You could try asking where they are in a forum to discuss Ubuntu or maybe someone here that uses Ubuntu will know.
I'd rather built from source instead

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #27 on: August 19, 2011, 05:35:20 pm »
Today I added quite a number of features:

* TComboBox now works, which involved adding support for interfaces in the bindings generator
* TextEdit.getText is now implemented, which involved adding support for reading text from Java
* I implemented a logging mechanism, now the Pascal side can write log messages to the Android console

One can take a look at the image here to see how it looks like now:

http://wiki.lazarus.freepascal.org/Android_Interface#Compiling_the_example_LCL-Android_Application

Jonathan

  • New Member
  • *
  • Posts: 40
Re: First steps of LCL-Android are ready
« Reply #28 on: August 25, 2011, 04:41:32 am »
Hi felipemdc! The apk I get is 1.9M. It doesnt work when I install . Lazarus 0.9.31 fpc 2.4.2 .Do you know Why? Thnak you !

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: First steps of LCL-Android are ready
« Reply #29 on: August 25, 2011, 09:24:56 am »
Are you sure that you compiled androidlcl in the build mode "Android" ?

Try the following command:

file androidlcl/android/libs/armeabi/libandroidlcl.so

And post here the result

 

TinyPortal © 2005-2018