Re: [fpc-pascal] Different idea

2015-08-18 Thread Michael Ring
Try this link for instructions on how to compile: http://michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi/ Von meinem iPad gesendet > Am 19.08.2015 um 06:11 schrieb Chris Moody : > > > >> On 08/18/2015 02:34 PM, Chris Moody wrote: >>> On 08/18/2015 02:29 PM, Graeme Gelde

Re: [fpc-pascal] Different idea

2015-08-18 Thread Chris Moody
On 08/18/2015 02:34 PM, Chris Moody wrote: On 08/18/2015 02:29 PM, Graeme Geldenhuys wrote: On 2015-08-18 21:03, Chris Moody wrote: Or perhaps even better, how can I get the command Lazarus sends to FPC from my computer so I can issue it on the Pi? "Project -> Project Options -> Show Opti

Re: [fpc-pascal] Different idea

2015-08-18 Thread Chris Moody
On 08/18/2015 02:29 PM, Graeme Geldenhuys wrote: On 2015-08-18 21:03, Chris Moody wrote: Or perhaps even better, how can I get the command Lazarus sends to FPC from my computer so I can issue it on the Pi? "Project -> Project Options -> Show Options" 'Show Options' is a button at the bottom o

Re: [fpc-pascal] Different idea

2015-08-18 Thread Graeme Geldenhuys
On 2015-08-18 21:03, Chris Moody wrote: > Or perhaps even better, > how can I get the command Lazarus sends to FPC from my computer so I can > issue it on the Pi? "Project -> Project Options -> Show Options" 'Show Options' is a button at the bottom of the dialog. Regards, - Graeme - __

[fpc-pascal] Different idea

2015-08-18 Thread Chris Moody
Having issues getting cross compiling to work, so here's another idea: What files would I need to move from Lazarus on my computer to the Pi, so it will be able to find all of the libraries? Or perhaps even better, how can I get the command Lazarus sends to FPC from my computer so I can issue

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Ring
You first need to check out the sourcecode from svn: svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc then change into the fpc directory and enter the build commands line by line. and yes, this is all done on the host, not on the raspberry pi; Host means a linux or a mac system, I un

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread John Lee
Did I miss something? - where does it it get the rtl & compiler source? TIA John On 18 August 2015 at 16:27, Chris Moody wrote: > > > On 08/18/2015 01:24 AM, Michael Ring wrote: > > This is how I build fpc trunk cross compiler: > > echo "Building fpchf-linux from trunk" > SUBARCH=armv7 > C

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Chris Moody
On 08/18/2015 01:24 AM, Michael Ring wrote: This is how I build fpc trunk cross compiler: echo "Building fpchf-linux from trunk" SUBARCH=armv7 CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16 -OpARMV7A -O2 -OoFASTMATH -XX -Xs" //CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV6 -Cf

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Ring
This is how I build fpc trunk cross compiler: echo "Building fpchf-linux from trunk" SUBARCH=armv7 CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16 -OpARMV7A -O2 -OoFASTMATH -XX -Xs" //CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV6 -CfVFPV2 -OpARMV6 -O2 -OoFASTMATH -XX -Xs" OPT

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
On 08/18/2015 09:17 AM, Martin Schreiber wrote: The already several times mentioned cross environment from here: http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/ works well for me. I don't doubt that and will be happy to try it (and report what I find) next time I want to do some

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Martin Schreiber
Am 18.08.2015 09:01, schrieb Michael Schnell: On 08/18/2015 08:54 AM, Martin Schreiber wrote: I assume one could setup a ssh tunnel -> remote native ARM gdb too, I never tried it. I feel it even would be easier to do than using gdbserver, as - after setting up the SSH connection - the IDE wo

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
On 08/18/2015 08:54 AM, Martin Schreiber wrote: I assume one could setup a ssh tunnel -> remote native ARM gdb too, I never tried it. I feel it even would be easier to do than using gdbserver, as - after setting up the SSH connection - the IDE would just use the same commands with the rem

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Martin Schreiber
Am 18.08.2015 08:44, schrieb Michael Schnell: On 08/17/2015 09:55 PM, Martin Schreiber wrote: This works with MSEide. GREAT ! So MSE IDE does use GDBServer and not native ARM GDB remote controlled by SSH ? Yes. Or a local gdbserver which communicates by a proxy with a hardware debug inter

Re: [fpc-pascal] Cross compile from x86 to Pi

2015-08-18 Thread Michael Schnell
On 08/17/2015 09:55 PM, Martin Schreiber wrote: This works with MSEide. GREAT ! So MSE IDE does use GDBServer and not native ARM GDB remote controlled by SSH ? Or is this selectable ? When I did that research, I had the impression that SSH would be preferable (whenever Ethernet is install

Re: [fpc-pascal] shift right operation with variables

2015-08-18 Thread Michael Schnell
AFAIK literals are integer unless denoted otherwise The type of the operands determines the operation. this is rather obvious for e.g. "+" but not obvious for shift operations. AFAIK, the type left of the ":=" does not determine the operation. This is not obvious for everybody. I never rely