[fpc-pascal] crosstool-ng

2015-09-04 Thread Chris Moody
Hi all, Going back to my cross compile to Pi question a while ago. I wounded up having to install crosstool-ng to cross compile VLC for the Pi. Could this tool also be used to to cross compile FPC apps? Chris ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Issue with Linking

2015-08-21 Thread Chris Moody
On 08/21/2015 01:08 AM, Jonas Maebe wrote: Chris Moody wrote: Seems it compiles but still complains about linking. Free Pascal Compiler version 3.0.0rc1 [2015/08/20] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for ARMHF Assembling dentist Linking Dentist

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 03:16 PM, Jonas Maebe wrote: Chris Moody wrote: To further add to the confusion, I found my Raspberry did not have locate installed, so I asked apt-get to get a copy and it obtained: Unpacking locate (from .../locate_4.4.2-4_armhf.deb) ... I did locate https://blogs.oracle.com

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 03:16 PM, Jonas Maebe wrote: Chris Moody wrote: To further add to the confusion, I found my Raspberry did not have locate installed, so I asked apt-get to get a copy and it obtained: Unpacking locate (from .../locate_4.4.2-4_armhf.deb) ... I did locate https://blogs.oracle.com

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 02:38 PM, Jonas Maebe wrote: Chris Moody wrote: The current FPC is from apt-get pi@raspberrypi ~ $ which fpc /usr/bin/fpc pi@raspberrypi ~ $ which ppcarm /usr/bin/ppcarm Ok, now please remove and reinstall that compiler (apt-get remove fpc; apt-get install fpc) to ensure it

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 08:01 AM, Jonas Maebe wrote: On 20/08/15 16:19, Chris Moody wrote: I see that the target is: Target OS: Linux for ARMEL I do have /usr/lib/arm-linux-gnueabihf/crti.o I don't need to specify -Fu/usr/lib/fpc/2.6.4/units/arm-linux is the target os the issue? Yes, it is

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
float versions of Raspbian. Your compiler may work because you also installed the ARMEL version of libc6-dev. That's another thing: * Chris may also to solve his problem by installing the ARMEL version of libc6-dev (package name: libc6-dev-armel ) * however, if he then compiles his program and g

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 07:02 AM, Graeme Geldenhuys wrote: On 2015-08-20 14:46, Chris Moody wrote: Thanks for that. Do you happen to know if you can build console based apps with it also? Yes definitely. I just tried with the latest archive from Paul. I could compile and link console apps and fpGUI&#

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 07:37 AM, Martin Schreiber wrote: On Thursday 20 August 2015 16:03:11 Chris Moody wrote: I've done that. Still can't compile code due to ld: Assembling dentist Linking Dentist /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/pi/fpc-2.6

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 07:11 AM, Jonas Maebe wrote: On 20/08/15 16:03, Chris Moody wrote: Assembling dentist Linking Dentist /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi': (

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 06:56 AM, Jonas Maebe wrote: On 20/08/15 15:46, Chris Moody wrote: Thanks for that. Do you happen to know if you can build console based apps with it also? I have a deadline fast approaching, and at this point seriously considering re-writing the code in a language I know is

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/19/2015 10:52 PM, Martin Schreiber wrote: On Thursday 20 August 2015 00:56:46 Chris Moody wrote: How do I verify what mine uses? I've found the directions at http://michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi / can't seem to be followed as Thaddy se

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 04:53 AM, Graeme Geldenhuys wrote: Hi Chris, I thought you might try the following pre-built FPC ARM compiler created by Paul Breneman - packaged as "EasyfpGUI". He packages everything you need to get started into a single 5.7MB zip archive. It even includes fpGUI and

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
On 08/19/2015 03:56 PM, Chris Moody wrote: On 08/19/2015 03:41 PM, Graeme Geldenhuys wrote: On 2015-08-19 21:12, Jonas Maebe wrote: while the Raspberry Pi uses ARM EABIHF. Doesn't that apply only for the newer Raspberry Pi 2 models? I have Raspberry Pi 1 model B revision 2, and I be

Re: [fpc-pascal] Windows IOT Core

2015-08-19 Thread Chris Moody
On 08/19/2015 02:14 AM, Michael Schnell wrote: Did anybody try to compile fpc programs for this variant of Windows 10. It is available for ARM (eg it's said to run on the RasPI) and on Intel (e.g. for the "MinnowBoard Max") . Seemingly M$ suggest to do non-native software (Java or C#) (-> h

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
ows of another location? I was unable to find another one. Chris ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
On 08/19/2015 01:12 PM, Jonas Maebe wrote: On 19/08/15 22:02, Chris Moody wrote: So I reset up my Pi and I was able to get the current version of FPC to get as far as the linking stage, at which point it shows this: /usr/bin/ld: warning: link.res contains output sections; did you forget -T

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
On 08/19/2015 01:08 PM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Wed, 19 Aug 2015, Chris Moody wrote: I'm not sure how to fix this. If anyone can assist, it would be greatly appreciated. You link against the libc (because of the nature of the source you're compiling) but C d

[fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: /home/pi/fpc-2.6.4/bin/ppcarm returned an error exitcode (normal if you did not specify a source file to be compiled) I'm not sure how to fix this. If anyone can assist, it would be greatly appreciated.

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

2015-08-19 Thread Chris Moody
On 08/19/2015 12:57 AM, Jonas Maebe wrote: /home/chris/Documents/fp/fpcbuild-2.6.4/binutils/bin/as --version Somehow this was for x86 linux, not sure how that happened. Will have to look again. Chris ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Different idea

2015-08-19 Thread Chris Moody
On 08/19/2015 12:38 AM, Graeme Geldenhuys wrote: On 2015-08-19 05:11, Chris Moody wrote: I tried to compile Lazarus on the Pi and it got to this point: Personally, I think Lazarus is a bit "heavy" for the RPi and would opt for something lighter and faster. The RPi is not a very f

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

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'

[fpc-pascal] Different idea

2015-08-18 Thread Chris Moody
issue it on the Pi? Thanks, Chris ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2015-08-18 Thread Chris Moody
upport armhf. Most likely the 3.0 pre-release will compile the same way, but I never tried. You need to have cross-binutils installed as you need arm-linux-gnueabihf-* tools to be able to successfully compile. Michael Hi Michael, Just to make sure, I run the script on the deskt

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

2015-08-17 Thread Chris Moody
On 08/15/2015 08:46 PM, Chris Moody wrote: On 08/15/2015 07:40 PM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Sat, 15 Aug 2015, Chris Moody wrote: Is there a better guide on how to do this than: http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically as far as this

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

2015-08-17 Thread Chris Moody
ling? or do you just call fpc with the right parameters? Mind sharing your setup? Thanks, Chris ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2015-08-16 Thread Chris Moody
On 08/15/2015 11:37 PM, Martin Schreiber wrote: On Sunday 16 August 2015 02:33:24 Chris Moody wrote: Hi all, I think my project is almost done, wanted to see how fast it ran under the Pi which its destined to be on. After spending a long time trying to get it to compile there I decided I&#

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

2015-08-15 Thread Chris Moody
On 08/15/2015 07:40 PM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Sat, 15 Aug 2015, Chris Moody wrote: Is there a better guide on how to do this than: http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically as far as this sentence is concerned: * Linux/Unix build or

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

2015-08-15 Thread Chris Moody
On 08/15/2015 06:40 PM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Sat, 15 Aug 2015, Chris Moody wrote: Is there a better guide on how to do this than: http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically as far as this sentence is concerned: * Linux/Unix build or

[fpc-pascal] Cross compile from x86 to Pi

2015-08-15 Thread Chris Moody
http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler ? specifically as far as this sentence is concerned: * Linux/Unix build or install the relevant crossbinutils (Linux, unix) Thanks in advance! Chris ___ fpc-pascal maillist - fpc-p

[fpc-pascal] EAccessViolation

2015-08-13 Thread Chris Moody
is where I call this procedure from the main code. How do I track down what is going on? If your familiar with PHP, my purpose of this procedure is to basically emulate the following code: Thanks in advance, Chris ___ fpc-pascal maillist -

Re: [fpc-pascal] Copy TJSonArray to Array

2015-08-12 Thread Chris Moody
On 08/12/2015 12:36 AM, Michael Van Canneyt wrote: On Wed, 12 Aug 2015, Chris Moody wrote: Hi all, First off thanks to all who have provided help over the past few weeks, I just have one last thing I'm trying to unravel (that I know of currently) and this project should be done.

[fpc-pascal] Copy TJSonArray to Array

2015-08-12 Thread Chris Moody
rmal array and then process the data? Or best to step through the TJSONArray? I'm not sure how to copy a TJSONArray to an Array, I tried: A:= E.Value.AsArray; but that of course did not work. Any suggestions are as normal greatly appreciated, Chris

Re: [fpc-pascal] Read JSON from file

2015-08-07 Thread Chris Moody
On 08/07/2015 12:46 AM, Michael Van Canneyt wrote: On Fri, 7 Aug 2015, Chris Moody wrote: On 08/06/2015 07:01 PM, leledumbo wrote: I download a file from a server that contains JSON code. I'm not sure how to read it into something that GetJSON is able to handle. Can't you

Re: [fpc-pascal] Read JSON from file

2015-08-07 Thread Chris Moody
e(jsonfile); J:=GetJSON(json);// Error is here. ReadJSON := J.FindPath(node).AsString; end; Does this mean my Lazarus / FPC is out of date? Or I'm using the wrong library or something? Chris ___ fpc-pascal maillist - f

[fpc-pascal] Read JSON from file

2015-08-06 Thread Chris Moody
much appreciated. Chris ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] another xml question

2015-08-06 Thread Chris Moody
Hi Marc, Thanks for the feedback. One more question and I think I'm done for now and able to finish the program I'm writing: If FindNode does not locate a node with the given name, what does it return? Thanks, Chris On 07/24/2015 01:34 PM, Marc Santhoff wrote: On Fr, 2015-07-2

[fpc-pascal] another xml question

2015-07-24 Thread Chris Moody
s: Would it be easiest to introduce a fourth element to the XML that says how many children the 3rd element has? Or is there an easy way already to get this and just run a for next loop to read each child? Thanks in advance! Chris ___ fpc-pasca

[fpc-pascal] XML from a site

2015-07-16 Thread Chris Moody
here a way to pass an URL to ReadXMLFile? Thanks in advance! Chris ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Compiler error

2009-01-25 Thread Chris Kirkpatrick
Jonas Maebe wrote: On 25 Jan 2009, at 11:43, Chris Kirkpatrick wrote: I have recently been getting the following error when tring to compile fpc using the standard sequence: svn update fpc make clean make all I tried deleting my complete fpc repository and checking out again; same thing

[fpc-pascal] Compiler error

2009-01-25 Thread Chris Kirkpatrick
report it as a bug, or am I doing something wrong? Chris ... last few lines of compilation: /home/kirkpatc/FreePascal/fpc/trunk/compiler/ppc386 -XX -CX -Ur -Xs -O2 -n -S2h -Fu/home/kirkpatc /FreePascal/fpc/trunk/rtl/units/i386-linux -Fu/home/kirkpatc/FreePascal/fpc/trunk/packages/fcl-ba se/units

[fpc-pascal] assigning a local function to a var

2008-07-09 Thread Chris Cheney
> I'd like to store an address of a local function in a variable, and > call that local function, but I don't know how to define a variable of > type "local function". Here's the error I'm stuck on, with sample > code: "One can assign the following values to a procedural type variable: 1. Nil, fo

RE: [fpc-pascal] Farewell

2008-05-05 Thread Chris
Why don't you "just code in pascal" any more? I hope you haven't moved to another language. Farewell! PO Box 627 00502 Karen, Nairobi, Kenya. Mobile: +254 722 996532 Fixed: +254 20 2050859 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf O

RE: [fpc-pascal] MySQL50 unit in freepascal

2008-04-22 Thread Chris
Also please note that I am writing a daemon that will be cron'd so I wont be using lazarus. Let me see what I can come up with. Thanks all. PO Box 627 00502 Karen, Nairobi, Kenya. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Kirkpatrick

Re: [fpc-pascal] MySQL50 unit in freepascal

2008-04-22 Thread Chris Kirkpatrick
/Lazarus_DB_Faq Regards - Chris Michael Van Canneyt wrote: On Tue, 22 Apr 2008, Chris wrote: Thanks, Where can I get these classes? Directories packages/fcl-db/src/sqldb and below. Michael. PO Box 627 00502 Karen, Nairobi, Kenya. -Original Message- From: [EMAIL

RE: [fpc-pascal] MySQL50 unit in freepascal

2008-04-22 Thread Chris
freepascal On Tue, 22 Apr 2008, Chris wrote: > Hi, > > I am a newbie in freepascal but I have used turbo pascal and Delphi > extensively for the last 7 years or so; I want to write an application for > my linux box to do some crude form of replication of mysql databases. I am &

[fpc-pascal] MySQL50 unit in freepascal

2008-04-22 Thread Chris
Hi, I am a newbie in freepascal but I have used turbo pascal and Delphi extensively for the last 7 years or so; I want to write an application for my linux box to do some crude form of replication of mysql databases. I am just trying to figure out how to use the mysql50 unit, but cannot find heads

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-02-04 Thread Chris Kirkpatrick
OK - speaking a bit loosely! When trying to untangle database stuff, I need to refer to both Units. Sorry - Chris Michael Van Canneyt wrote: On Mon, 4 Feb 2008, Chris Kirkpatrick wrote: Hi Joost - Would you have time to do the same for SQLDb? Otherwise, should I do a MakeSkel and send you

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-02-04 Thread Chris Kirkpatrick
Hi Joost - Would you have time to do the same for SQLDb? Otherwise, should I do a MakeSkel and send you a zipped file to commit? I have already started work on Db, but the two units depend heavily upon each other. Regards - Chris Joost van der Sluis wrote: Op vrijdag 25-01-2008 om 23:59 uur

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-25 Thread Chris Kirkpatrick
As far as I can see, there are no files relevant to fc-db or SQLDb in this repository. Have you committed your skeleton XMLs yet? If so, in which subdirectory? Regards - Chris Joost van der Sluis wrote: As fcl-db and sqldb are parts of fpc, the documenatation should be in the fpc-docs

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Chris Kirkpatrick
Yes please, an empty skeleton would be a very useful start. I can send you patches when I have made changes to the XMLs. Regards - Chris Joost van der Sluis wrote: As fcl-db and sqldb are parts of fpc, the documenatation should be in the fpc-docs-repository. I have full write access there so

Re: [fpc-pascal] Re: FCL-DB/SQLDB docs started

2008-01-23 Thread Chris Kirkpatrick
mailing list, in the hope that more volunteers may emerge! Please keep in touch and keep the impetus going. Regards - Chris John wrote: Adrian Maier wrote: Are there any people still interested in making it possible to have some real docs for sqldb and fcl-db ? If so, let's org

Re: [fpc-pascal] Notice: Possible copyright infringements in FPC code base

2008-01-05 Thread Chris Kirkpatrick
dsgnintf.pas, then just add // this file in your project: // dsgnintf.pas in 'C: \Program Files\Borland\Delphi5\Source\Toolsapi\dsgnintf.pas' Should this be removed? Does it infringe copyright? Is it even useful? Regards - Chris ___

Re: [fpc-pascal] Help getting started with FPC

2007-11-30 Thread Chris Kirkpatrick
ffer links to suitable places to get information. Hope this helps Regards - Chris Edward Kearns wrote: I am new to FPC, and can't get started. I have used Think Pascal, and I seem to have quite a hurdle here. Someone else told me that I need to start XCode first. I did that, then I chose

[fpc-pascal] Problems with Lazarus documentatin using FPDoc and LazDE

2007-10-17 Thread Chris Kirkpatrick
arget ID of is unknown: "TCustomControl" > Warning: Target ID of is unknown: "TWinControl" > Warning: Target ID of is unknown: "TControl" Regards - Chris ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Linux library access violation

2006-10-30 Thread Chris
>L505 wrote: >First thing to check is it declared CDECL or STDCALL in the C library? >I think the default C declaration mode is CDECL if it is not defined explicitely. I knew it was gonna be the obvious. I changed: function testreturn(thename:pchar;rcity:pchar;rstate:pchar):integer; stdcal

[fpc-pascal] Linux library access violation

2006-10-29 Thread Chris
I get an "Access violation" when I call a function from a C library. Not sure if I can explain well enough, so I will just post the code: The C library: #include #include int testreturn(const char *thename, char *rcity, char *rstate) { memcpy (rcity,"Boston",7); memcpy (rstate,"Massa