Stock 2.6.0 did not build hardware float targets, so that is not a standard 2.6.0 FPC.
Stock 2.6.0 did not build hardware float targets, so that is not a standard 2.6.0 FPC.
I'm sorry but I don't really understand what you wrote. The file is the FPC ppcarm, not something that I compiled.
And afaik android is EABI
It worked three years ago so did Android or GNUroot/Debian (or both) change in that time?
Is "Illegal instruction" shown by the FPC 2.6.0 ppcarm program or is it shown by the OS?
Is "Segmentation fault" shown by the FPC 3.0.2 ppcarm program or is it shown by the OS?
But worse, there are many 2.6.0 versions patched fo EABI,Why is it worse ?
not in the least the Raspbian version.
QuoteBut worse, there are many 2.6.0 versions patched fo EABI,Why is it worse ?
not in the least the Raspbian version.
Isn't it good that it can be patched ?
Debian did change from OABI to EABI. But worse, there are many 2.6.0 versions patched fo EABI,
not in the least the Raspbian version.
Stock 2.6.0 did not build hardware float targets, so that is not a standard 2.6.0 FPC.
Maybe we're not supposed to compile and run FPC console programs so easily on Android? :)
Not with versions that predate android support.
Maybe we're not supposed to compile and run FPC console programs so easily on Android? :)
Not with versions that predate android support.
As for the rest, EABI and OABI also influence parameter passing. They are mostly not compatible.
Since official 2.6.0 is afaik OABI, it is mostly only useful for generating binaries for old armv5 NAS boxes that run old OABI linux systems. Later 2.6.x versions afaik switch to EABI, which was good for the very first RPI boxes. (EABI, but not hardfloat)
Then later raspbian also switched to hardfloat (from armv5 to armv6 ABI), and for anything with hardware floating point in an officially released version you'll need at least 3.0.0
Not with versions that predate android support.
But this is running a Debian chroot in Linux, and FPC does support that well!
That is the opposite of easy
Why is the thread titled "easy" when it is not easy?
Reminds of the time I tried it, too (https://github.com/benibela/xidel/issues/2). It took like a year!
Stock 2.6.0 did not build hardware float targets, so that is not a standard 2.6.0 FPC.
I've looked up SIGILL and see that if we get that then the device has no fpu. But I'm using the standard 2.6.0 (ppcarm) which shouldn't generate hardware floats anyway. Something is still confusing here. Maybe we're not supposed to compile and run FPC console programs so easily on Android? :)
If so, does 2.6.4 or 3.0.0 or 3.0.2 correct this problem?
fpdoc maybe doesn't use floating point? The compiler does for literals.
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.
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..
You're probably right, they are defintily not simple, but as I can remember they both do console-programs.BTW: There are two more things to check out:
FlashPascal: http://flashpascal.sourceforge.net/ (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...
Am I the only person left who cares about simple things like console programs on Android? :-\I tried an alternative approach and got at least some attention (but no reaction from your side either)
I do need to find some way to keep busy since retiring (there are a lot of us old Delphi programmers). :)
So I added the 4th paragraph (5th if you count the TOC) here today: http://controlpascal.com/tutorial.htm (http://controlpascal.com/tutorial.htm)
I tried an alternative approach and got at least some attention (but no reaction from your side either)
see:
http://forum.lazarus.freepascal.org/index.php/topic,37229.msg249603.html#msg249603
http://turbocontrol.com/gnuroot.htm (http://turbocontrol.com/gnuroot.htm) is a new (unpublished) web page. Feedback appreciated!
Sorry jc99, but I don't get your joke? You can update the wiki page yourself...Me neither, what Wiki Page ?
... what Wiki Page ?
http://turbocontrol.com/gnuroot.htm (http://turbocontrol.com/gnuroot.htm) is a new (unpublished) web page. Feedback appreciated!
The original still works on my samsung S4 mini.
4.4.2 (this is after a Samsung firmware upgrade. Did not affect functionality.)
One year later...What makes you think it doesn't? (written on Raspbian Debian)
There is a new Android program (UserLAnd) (that replaces GNURoot) for Android devices. Can we please try to get Free Pascal (and Lazarus) working on Debian?
http://www.turbocontrol.com/userland.htm (http://www.turbocontrol.com/userland.htm)
What makes you think it doesn't? (written on Raspbian Debian)
FPC is even in the standard repositories. In stretch it is 3.0 and in backports for stretch 3.0.4
Web page to be updated soon!
It looks EASY again!