* * *

Author Topic: Free Pascal console programs on Android are easy  (Read 10129 times)

Paul Breneman

  • Full Member
  • ***
  • Posts: 227
    • Control Pascal
Re: Free Pascal console programs on Android are easy
« Reply #30 on: April 28, 2017, 02:25:53 pm »
If so, does 2.6.4 or 3.0.0 or 3.0.2 correct this problem?

I just made and posted two more zips on TurboControl.com for testing:
HelloWorld-fpc-2.6.4.arm-linux-042817.zip
HelloWorld-fpc-2.6.2.arm-linux-042817.zip

I previously had:
HelloWorld-fpc-3.0.2.arm-linux-041917.zip
HelloWorld-fpc-2.6.0.arm-linux-052412.zip
HelloWorld-fpc-2.2.2.arm-linux.tar.gz

The simple instructions at the bottom of http://turbocontrol.com/gnuroot.htm make testing easy.

When I run ppcarm from 2.6.2 and 2.6.0 I get: Illegal instruction

When I run ppcarm from 3.0.2 and 2.6.4 and 2.2.2 I get: Segmentation fault
Increasing stack size (ulimit -s 65536) doesn't change the last three errors.
« Last Edit: April 29, 2017, 03:12:49 am by Paul Breneman »
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Full Member
  • ***
  • Posts: 227
    • Control Pascal
Re: Free Pascal console programs on Android are easy
« Reply #31 on: May 19, 2017, 02:59:57 am »
I finally got back to this...

I just installed the full fpc on Debian Jessie on GNUroot (chroot) on ARM and 2.6.4 was installed.  A lot of fp* programs are installed in /usr/bin/ so I tried running those.  Most get Segmentation fault, one gets Illegal instruction, and two (fpdoc & fppkg) run OK!  Any ideas on why those two run?  I'll have to look at the dependencies.
Regards,
Paul Breneman
www.ControlPascal.com

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5339
Re: Free Pascal console programs on Android are easy
« Reply #32 on: May 19, 2017, 11:12:56 am »
fpdoc maybe doesn't use floating  point? The compiler does for literals.

Paul Breneman

  • Full Member
  • ***
  • Posts: 227
    • Control Pascal
Re: Free Pascal console programs on Android are easy
« Reply #33 on: May 19, 2017, 02:41:46 pm »
fpdoc maybe doesn't use floating  point? The compiler does for literals.

I didn't try to compile any program.  I just ran the programs by themselves.  fpdoc and fppkg both run and display their options.
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Full Member
  • ***
  • Posts: 227
    • Control Pascal
Re: Free Pascal console programs on Android are easy
« Reply #34 on: May 24, 2017, 05:32:19 am »
It seems that fpc has had problems before with proot:
https://github.com/proot-me/PRoot/issues/74

It also seems that development in proot and GNUroot has slowed or stopped?  Sadly things are no longer easy on Android.   :(
Please share if you know of something easy for engineers who are not full-time programmers!

Console and fpGUI programs are still easy on inexpensive Windows tablets such as this:  http://www.microcenter.com/product/439773/TW700_Tablet_-_Black  :)
Control Terminal works on my TW700: http://ctrlterm.com/
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Full Member
  • ***
  • Posts: 227
    • Control Pascal
Re: Free Pascal console programs on Android are easy
« Reply #35 on: May 29, 2017, 05:27:53 am »
I've had PascalGUI for a while which I need to check out more:
https://play.google.com/store/apps/details?id=com.n0n3m4.droidpascal

I'm also checking out the Limbo PC Emulator QEMU ARM x86:
https://play.google.com/store/apps/details?id=fr.energycube.android.app.com.limbo.emu.main.armv7

I'm also testing things here a little: http://wiki.freepascal.org/ideU

There must be some way to run simple Free Pascal & FreeVision console programs on Android!   :)
« Last Edit: May 29, 2017, 05:29:24 am by Paul Breneman »
Regards,
Paul Breneman
www.ControlPascal.com

jc99

  • Sr. Member
  • ****
  • Posts: 385
    • My private Site
Re: Free Pascal console programs on Android are easy
« Reply #36 on: May 29, 2017, 01:35:25 pm »
As a start, you are right, but in a point in time, it should be possible to create more complex Application in Android for Android. With no need to cross-compile and the ability to debug on the System itself.
My hope is that one time there is not only Laz4Android but also LazOnAndroid.

[Edit]
BTW: There are two more things to check out:
FlashPascal: http://flashpascal.sourceforge.net/

.. at the other, i can't remember the name, but it was a full Studio to compile Pascal to HTML-Websites..   




 
« Last Edit: May 29, 2017, 01:49:00 pm by jc99 »
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.2 - 1.6.4, 1.8rc1
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are

Paul Breneman

  • Full Member
  • ***
  • Posts: 227
    • Control Pascal
Re: Free Pascal console programs on Android are easy
« Reply #37 on: May 29, 2017, 04:50:46 pm »
As a start, you are right, but in a point in time, it should be possible to create more complex Application in Android for Android. With no need to cross-compile and the ability to debug on the System itself.
My hope is that one time there is not only Laz4Android but also LazOnAndroid.

One of my favorite technical authors is Rob Landley http://www.landley.net/ who has a lot of interesting stuff:
https://www.patreon.com/posts/mkroot-is-almost-9607891 - has a great video at the bottom
http://se-instruments.com/ - real engineering where he works

As you (and Rob) mention, it probably won't be very long before we're developing Android apps on Android!  I'm wanting to start this now with simple console apps.

BTW: There are two more things to check out:
FlashPascal: http://flashpascal.sourceforge.net/

.. at the other, i can't remember the name, but it was a full Studio to compile Pascal to HTML-Websites..

I'm looking for simple console programs!  Those are other things but thanks for sharing...
Regards,
Paul Breneman
www.ControlPascal.com

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus