Recent

Author Topic: Android?  (Read 58294 times)

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Android?
« Reply #15 on: October 12, 2010, 09:42:33 pm »
Another possible solution would be building the entire application into Java bytecode, by adding a new architecture to FPC, a new RTL and then a new Lazarus widgetset. But this would be around 2 orders of magnitude more work.

However, that could be a good thing to do in itself. If Java VM is added as a new architecture, together with the Java GUI widgetset, that could present a possibility to write Java bytecode programs usable on many other platforms besides Android. And of course it would practically solve programming for Android (together with a few more bindings).

Yes, I know, it IS much work   :-[
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Android?
« Reply #16 on: October 13, 2010, 08:10:52 am »
Actually after researching more, Android does not use the Java Bytecode, it uses it's own incompatible bytecode. So no, implementing support for the Dalvik bytecode wouldn't help anything for any other platform.

http://en.wikipedia.org/wiki/Dalvik_(software)

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Android?
« Reply #17 on: October 13, 2010, 10:11:41 am »
Uh... I guess that means a whole new architecture must be created for Android  :(
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11449
  • FPC developer.
Re: Android?
« Reply #18 on: October 13, 2010, 01:30:12 pm »
Uh... I guess that means a whole new architecture must be created for Android  :(

It's this that strikes me time and time again. There is much interest in Android, but it is so superficial, that most people don't know what they are actually porting too.

acoliveira

  • Newbie
  • Posts: 3
Re: Android?
« Reply #19 on: October 19, 2010, 08:01:00 pm »
Sorry for my poor english.

Device N900 can run Android/Maemo see "http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html" and this sample is arm-sdk.

zariq

  • Full Member
  • ***
  • Posts: 109
Re: Android?
« Reply #20 on: October 20, 2010, 03:45:37 am »
Hi.

Just came across this. He is working on getting delphi programs running on android. He reckons it might work with lazarus too. Any body else seen it? Sorry about the links, can't seem to work out the posting features

http://lenniedevilliers.blogspot.com/

There's a video of it at.

http://lenniedevilliers.blogspot.com/2010/09/delphi-for-android-sneak-preview-2.html

Is it real?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Android?
« Reply #21 on: October 20, 2010, 05:03:47 pm »
Is it real?

Could be. He is basically building a Delphi .NET project and then he has made some glue code in C# which allows it to run in the experiemental Mono for Android. His glue code probably implements TForm and TLabel using C#.

Mono for Android is still experimental, you can't even download it yet, so that makes this project quite far from being usable. He probably signed to their beta testing program.

No chance of that working with Lazarus.

Also note that this requires using only what C# offers through the helper library. There is no chance of using the Java native APIs directly with this architecture, and therefore it is flawed. You are limited to what Mono gives you.
« Last Edit: October 20, 2010, 05:09:46 pm by felipemdc »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Android?
« Reply #22 on: October 20, 2010, 05:05:33 pm »
Device N900 can run Android/Maemo see "http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html" and this sample is arm-sdk.

That is for Maemo, not Android. Both are completely different and made by different companies for different smartphones.

lyh1

  • New Member
  • *
  • Posts: 19
Re: Android?
« Reply #23 on: October 30, 2010, 05:18:59 pm »
Just drop a note here, in case someone want to crosscompile arm-linux(eventruly android/Maemo) from windows.

First step, you got a newest snapshot or svn , and you can make a i386-win32 built with no problem.

In your FPC Source directory, FPCMAKE -Tall, so you got a make file that can make for other platform.

for arm-wince, you got the abi-arm tool chain from FPC 2.4 so you should built with no problem too whit this command line:
{Your working FPC directory}\make crossinstall CPU_TARGET=arm OS_TARGET=wince BASEDIR={Your FPC SVN/snapshot directory}\compiler CROSSOPT="-ap -Cfvfpv2" INSTALL_PREFIX={Your desired new FPC directory}

example:
C:\lazarus\fpc\2.4.0\bin\i386-win32\make crossinstall CPU_TARGET=arm OS_TARGET=wince BASEDIR=C:\freepascal\2.5_snapshot\fpc\compiler CROSSOPT="-ap -Cfvfpv2" INSTALL_PREFIX=C:\lazarus\fpc\2.5.1

but for arm-linux, you will not build with following line when you just got the FPC Source and a working FPC.

{Your working FPC directory}\make crossinstall CPU_TARGET=arm OS_TARGET=linux BASEDIR={Your FPC SVN/snapshot directory}\compiler CROSSOPT="-ap -Cfvfpv2" INSTALL_PREFIX={Your desired new FPC directory}


You will need the GNU ARM Tools chain for win32 to build arm-linux,
but the offical GNU ARM Tools is linux only.
You will need nother GNU ARM toolchain http://www.yagarto.de.
Install it and get the arm-none-eabi-*.exe

you will need these files in your fpc directory
arm-linux-ar.exe
arm-linux-as.exe
arm-linux-gdb.exe
arm-linux-ld.exe
arm-linux-objdump.exe
arm-linux-run.exe
arm-linux-strip.exe

or

Here with the official crosscompile tools chain.
I dont know if it support eabi or not which seems required for android.
ftp://ftp.freepascal.org/pub/fpc/contrib/cross/mingw/

From now you should build with arm-linux target.
« Last Edit: October 30, 2010, 05:31:43 pm by lyh1 »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Android?
« Reply #24 on: November 01, 2010, 07:21:57 pm »
Please open a new thread for discussing Maemo.

Zaher

  • Hero Member
  • *****
  • Posts: 680
    • parmaja.org
Re: Android?
« Reply #25 on: November 03, 2010, 03:08:51 pm »
There is a promised project MeeGo

Quote
Q: Will MeeGo support Clutter, GTK+?

A: MeeGo's UI API is based on the Qt toolkit as described in the architecture; MeeGo will also
include Clutter and GTK+.

http://meego.com/community/blogs/valhalla/2010/meego-1.1-release

gasdeveloper

  • New Member
  • *
  • Posts: 17
Re: Android?
« Reply #26 on: January 22, 2011, 01:27:21 am »
Just out of curiosity has anyone successfully compiled binary files using FreePascal and or Lazarus and consumed them in Java for use on an Android Device?

I am currently working on a couple projects and would like to develop client applications for the projects in pascal for my android phone.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Android?
« Reply #27 on: January 22, 2011, 04:09:59 pm »
Just out of curiosity has anyone successfully compiled binary files using FreePascal and or Lazarus and consumed them in Java for use on an Android Device?

I am currently working on a couple projects and would like to develop client applications for the projects in pascal for my android phone.

Yes, a couple of people, including me, see our Android OS sub-forum:

http://www.lazarus.freepascal.org/index.php/board,43.0.html

 

TinyPortal © 2005-2018