Recent

Author Topic: FPC4Android branch  (Read 84530 times)

meanderix

  • Jr. Member
  • **
  • Posts: 50
Re: FPC4Android branch
« Reply #45 on: April 26, 2012, 04:12:17 pm »
Hello, meandrix, would it be possible to explain how you did this ? :
http://wiki.lazarus.freepascal.org/File:vpr-android.png

thanks (maybe I have to post on the forum ? )

It's okay, but I'll post my reply to the public fpc4android thread, in case anyone else is curious.

I'm basically using the VirtualBox image that is found on the following page (I tried to set it up in Windows initially, but eventually I realized it was easier to just go with the VB image):
http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android

I'm using Graphics32 together with the new GR32_Backends_LCL_CustomDrawn backend (it will be used automatically if you compile with the CustomDrawn widget set:
http://www.graphics32.org

I'm using a slightly updated version of VPR and a rather light-weight SVG renderer that I have not published (because I'm working on a more advanced version):
http://vpr.sourceforge.net

However, since I've made modifications to VPR that are not checked in, I would suggest that you wait with trying to use the current head revision. VPR will be natively included in Graphics32 in the next major release (the release after the 1.9.1. update.) Then it should be much easier to use it on Android.

meanderix

  • Jr. Member
  • **
  • Posts: 50
Re: FPC4Android branch
« Reply #46 on: April 26, 2012, 04:21:49 pm »
Ok, another question for Felipe:

It seems there is no support for inline assembly, but is there some other way to use assembly routines -- e.g. can you link in object files? I'm considering learning a bit about the Advanced SIMD extensions for the ARM architecture (a.k.a. NEON.)

meanderix

  • Jr. Member
  • **
  • Posts: 50
Re: FPC4Android branch
« Reply #47 on: April 26, 2012, 05:04:52 pm »
Please test with revision 37016

Everything works fine with this revision.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: FPC4Android branch
« Reply #48 on: April 26, 2012, 05:18:37 pm »
It seems there is no support for inline assembly, but is there some other way to use assembly routines -- e.g. can you link in object files? I'm considering learning a bit about the Advanced SIMD extensions for the ARM architecture (a.k.a. NEON.)

I have no idea about that... I would recommend asking in the fpc-pascal mailling list. Note that this question is generic to ARM-linux not specific to Android.

huberte

  • Jr. Member
  • **
  • Posts: 78
Re: FPC4Android branch
« Reply #49 on: April 27, 2012, 06:01:20 am »
Hello, meandrix, would it be possible to explain how you did this ? :
http://wiki.lazarus.freepascal.org/File:vpr-android.png

thanks (maybe I have to post on the forum ? )

It's okay, but I'll post my reply to the public fpc4android thread, in case anyone else is curious.



I have created a more pecific topic here : :http://www.lazarus.freepascal.org/index.php/topic,16769.0.html

thanks

Andru

  • Full Member
  • ***
  • Posts: 112
Re: FPC4Android branch
« Reply #50 on: May 01, 2012, 03:19:42 am »
"Good news" everybody - FreePascal broken one more time, now the latest revision of fixes_2_6 branch doesn't work for me with patches which I used... Revision 20768 the latest one which will work. But there was some move from dead point and maybe soon we will get something useful in this official branch:
http://svn.freepascal.org/svn/fpc/branches/targetandroid/

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: FPC4Android branch
« Reply #51 on: May 01, 2012, 09:18:20 am »
"Good news" everybody - FreePascal broken one more time, now the latest revision of fixes_2_6 branch doesn't work for me with patches which I used...

That's why I use my own branches!

Quote
But there was some move from dead point and maybe soon we will get something useful in this official branch:
http://svn.freepascal.org/svn/fpc/branches/targetandroid/

Yes, I am also reliaved that we are no longer stuck here, although I would prefer if it was already merged to 2.7. 2.7 is highly experimental anyway.

Takeda

  • Full Member
  • ***
  • Posts: 157
Re: FPC4Android branch
« Reply #52 on: June 27, 2012, 04:03:45 pm »
I saw and confirm FPC 2.6.1 svn 21637 and svn 21720 would successfully compile AndroidLCL example which shipped on Lazarus. ;)

NOTE : I tested, we must use "Cross-Binutils" which came from NDK7. "Cross-Binutils" from NDK7b and NDK7c, was failed to work (to compile, the example). Sometime "Cross-Binutils" which came from NDK7b and NDK7c would make Crash when compile the examples.

FPC 2.7.1 (even the latest svn) would failed to compile the example. :(

[I Use Windows 7 Ultimate 64bit]

-takeda-
« Last Edit: June 27, 2012, 04:06:56 pm by Takeda »
Call me Takeda coz that's my true name.
Pascal coding using Lazarus => "Be native in any where.."

ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ

barlone

  • New Member
  • *
  • Posts: 49
Re: FPC4Android branch
« Reply #53 on: July 03, 2012, 07:38:49 pm »
Good day, Felipe!
First of all - many thanks for your great work.

After todays update from svn my android project stop to build with message:

androidlcltest.lpr(38) Error: resource compiler "arm-linux-fpcres.exe" not found, switching to external mode

but in binary distribution from http://sourceforge.net/projects/p-tools this file is absent. Please, add this file.

pkostik

  • Newbie
  • Posts: 1
Re: FPC4Android branch
« Reply #54 on: September 06, 2013, 12:31:50 pm »
Hi All!
I want to write simple TCP socket client on FPC for Android, does anyone know if sockets works for android?
Thanks

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: FPC4Android branch
« Reply #55 on: September 06, 2013, 05:04:38 pm »
Hi pkostik,

Many of us are using

TrueTom Laz4Android Package (laz4android1.1-41139 - FPC 2.7.1)


https://skydrive.live.com/?cid=89ae6b50650182c6&id=89AE6B50650182C6%21149

It can facilitate any help...

To facilitate I made available a Wizard for this package, see here:

http://forum.lazarus.freepascal.org/index.php/topic,21919.0.html

Welcome and Good luck!

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018