Re: [Lazarus] Where is hwiringPi?

2015-09-18 Thread Bo Berglund
On Sat, 19 Sep 2015 01:21:25 +0300, Maxim Ganetsky wrote: >19.09.2015 1:10, Donald Ziesig ?: >> Hi All! >> >> It looks like this is Raspberry PI day :-) . >> >> I have Lazarus working on a RPi 2 B with no problems til now. >> >> (Started with monitor, keyboard and mouse till

Re: [Lazarus] Where is hwiringPi?

2015-09-18 Thread Graeme Geldenhuys
On 2015-09-18 at 18:50, Bo Berglund wrote: > The hiwiringpi.pas file is an interface to something else written in C > if I understood the text correctly. As far as I know there is another pure Object Pascal GPIO package which has no other dependencies. Maybe that would be a better option than

Re: [Lazarus] Where is hwiringPi?

2015-09-18 Thread Donald Ziesig
On 09/18/2015 07:50 PM, Bo Berglund wrote: On Sat, 19 Sep 2015 01:21:25 +0300, Maxim Ganetsky wrote: 19.09.2015 1:10, Donald Ziesig ?: Hi All! It looks like this is Raspberry PI day :-) . I have Lazarus working on a RPi 2 B with no problems til now. (Started with

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Schnell
On 09/18/2015 07:00 AM, Martin Schreiber wrote: On Linux X86 you could use MSEide and the FPC cross compiling environment from here: http://mseide-msegui.sourceforge.net/pics/crossarm.png http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/ Maybe MSE is more suitable in this case,

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Van Canneyt
On Fri, 18 Sep 2015, Michael Schnell wrote: On 09/18/2015 10:42 AM, Michael Van Canneyt wrote: To the best of my knowledge, Delphi itself does not offer an event queue either in console programs. In fact I doubt that the OP really intends to do a pure "console program" that is called by

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Schnell
On 09/18/2015 11:28 AM, Michael Van Canneyt wrote: The way your post was constructed, you made it sound as if lazarus fails to offer what Delphi offers. Sorry for being unclear !! (This obviously is just an issue of the word "Console Application".) The contrary is true. Lazarus (at least

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Schnell
On 09/18/2015 01:28 AM, Bo Berglund wrote: I have a need to port a Delphi console program written for Windows to be used on Raspberry Pi2. What are the steps needed to port to Pi2? I would use a Linux desktop to do the port to Linux in the most comfortable way, before considering the port

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Marco van de Voort
On Fri, Sep 18, 2015 at 11:02:23AM +0200, Michael Schnell wrote: > AFAIK, with Delphi a "console program" is just a normal application that > only does not show a Windows, but that can use e.g. TTimer in the normal > Delphi-way. Could you please post your Delphi test for that? Thanks. --

Re: [Lazarus] Where is hwiringPi?

2015-09-18 Thread Dennis
I have written a small program using FPC to run on Rasp Pi to connect, via i2c, to a temperature/humidity sensor and save the readings into a MySQL database. Initially, I tried to use wiringPi, but I later found out it was very simple to directly connect to i2c via fpRead() . It was as simple

Re: [Lazarus] Where is hwiringPi?

2015-09-18 Thread Maxim Ganetsky
19.09.2015 1:10, Donald Ziesig пишет: Hi All! It looks like this is Raspberry PI day :-) . I have Lazarus working on a RPi 2 B with no problems til now. (Started with monitor, keyboard and mouse till I got ssh and vnc setup, then switched to Remmina on my laptop via tcp/ip). I need to access

Re: [Lazarus] Where is hwiringPi?

2015-09-18 Thread Maxim Ganetsky
19.09.2015 1:39, Donald Ziesig пишет: On 09/18/2015 06:21 PM, Maxim Ganetsky wrote: 19.09.2015 1:10, Donald Ziesig пишет: Hi All! It looks like this is Raspberry PI day :-) . I have Lazarus working on a RPi 2 B with no problems til now. (Started with monitor, keyboard and mouse till I got

Re: [Lazarus] Where is hwiringPi?

2015-09-18 Thread Donald Ziesig
On 09/18/2015 06:21 PM, Maxim Ganetsky wrote: 19.09.2015 1:10, Donald Ziesig пишет: Hi All! It looks like this is Raspberry PI day :-) . I have Lazarus working on a RPi 2 B with no problems til now. (Started with monitor, keyboard and mouse till I got ssh and vnc setup, then switched to

[Lazarus] Where is hwiringPi?

2015-09-18 Thread Donald Ziesig
Hi All! It looks like this is Raspberry PI day :-) . I have Lazarus working on a RPi 2 B with no problems til now. (Started with monitor, keyboard and mouse till I got ssh and vnc setup, then switched to Remmina on my laptop via tcp/ip). I need to access the GPIO pins from my Lazarus

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Sven Barth
Am 18.09.2015 11:41 schrieb "Michael Schnell" : > The contrary is true. Lazarus (at least in Linux) is able to compile real "pure run through" command line tools, while Delphi (AFAIK) just does normal "Applications" that don't show the main Windows and calls this a "Console

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Martin Schreiber
On Friday 18 September 2015 16:14:35 Bo Berglund wrote: > I have not really used Lazarus except for some hello world tests and > for checking how to port a Sentinel dongle function to FPC. > Now that is a chance to use MSEide instead. ;-) MSEide runs amazingly fast on Raspberry Pi and has very

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Bo Berglund
On Fri, 18 Sep 2015 11:02:23 +0200, Michael Schnell wrote: >On 09/18/2015 10:42 AM, Michael Van Canneyt wrote: >> >> To the best of my knowledge, Delphi itself does not offer an event >> queue either in console programs. > >In fact I doubt that the OP really intends to do a

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Martin Schreiber
On Friday 18 September 2015 16:08:20 Martin Schreiber wrote: > 2. Port the FPC Windows to FPC Linux X86 on a Linux X86 PC. 2. Port the FPC Windows application to FPC Linux X86 on a Linux X86 PC. -- ___ Lazarus mailing list

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Graeme Geldenhuys
On 2015-09-18 at 00:43, Bo Berglund wrote: > It seems like an easier way to build directly on the end hardware than > crosscompiling. Yeah, that's what I've been doing for years, and it works very well. I have an original RPi, so even less memory and CPU power, so I opted not to use Lazarus IDE

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Martin Schreiber
On Friday 18 September 2015 15:44:40 Bo Berglund wrote: > On Fri, 18 Sep 2015 11:02:23 +0200, Michael Schnell > > What would be the best way in your view? 1. Port the Delphi 7 application to FPC Windows X86 on a Windows X86 PC. 2. Port the FPC Windows to FPC Linux X86 on a Linux X86 PC. 3. Cross

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Bo Berglund
On Fri, 18 Sep 2015 16:08:20 +0200, Martin Schreiber wrote: >On Friday 18 September 2015 15:44:40 Bo Berglund wrote: >> On Fri, 18 Sep 2015 11:02:23 +0200, Michael Schnell > >> >> What would be the best way in your view? > >1. Port the Delphi 7 application to FPC Windows X86

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Van Canneyt
On Fri, 18 Sep 2015, Michael Schnell wrote: On 09/18/2015 01:28 AM, Bo Berglund wrote: I have a need to port a Delphi console program written for Windows to be used on Raspberry Pi2. What are the steps needed to port to Pi2? I would use a Linux desktop to do the port to Linux in the most

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Schnell
On 09/18/2015 10:42 AM, Michael Van Canneyt wrote: To the best of my knowledge, Delphi itself does not offer an event queue either in console programs. In fact I doubt that the OP really intends to do a pure "console program" that is called by e.g. bash and runs through without waiting for

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Mark Morgan Lloyd
Bo Berglund wrote: I found a guide t o install FPC-Lazarus directly on the Pi2 itself here: http://www.tweaking4all.com/hardware/raspberry-pi/install-lazarus-pascal-on-raspberry-pi-2/ It seems like an easier way to build directly on the end hardware than crosscompiling. But the CPU power might

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Dennis
FYI, I have done FPC daemon to run on RPi to communicate with Serial port and the feed the data back to a PC program from time to time via LAN. It is not very difficult. However, I had difficulties using Indy on FPC and eventually gave up. I later moved to lNet because it runs on linux and

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Bo Berglund
On Fri, 18 Sep 2015 11:40:53 +0200, Michael Schnell wrote: > >So Bo supposedly is save if he selects "Application" and not "Console >Application" when setting up his project. In fact on a PI a GUI system >is active by default. > >Other than MSE, a Lazarus "Console

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Bo Berglund
On Fri, 18 Sep 2015 16:43:38 +0200, Martin Schreiber wrote: >On Friday 18 September 2015 16:14:35 Bo Berglund wrote: > >> I have not really used Lazarus except for some hello world tests and >> for checking how to port a Sentinel dongle function to FPC. >> >Now that is a

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Graeme Geldenhuys
Hello Bo, On 2015-09-18 at 11:12, Bo Berglund wrote: > Does that mean I can install FPC only on the Pi and then develop on a > Linux box (x86) using Lazarus and then move the project to the Pi and > recompile using the FPC from a terminal on the Pi? Yes, that is an option too, and should work

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Bo Berglund
On Fri, 18 Sep 2015 14:20:43 +0100, Graeme Geldenhuys wrote: >On 2015-09-18 at 00:43, Bo Berglund wrote: > >> It seems like an easier way to build directly on the end hardware than >> crosscompiling. > >Yeah, that's what I've been doing for years, and it works very

Re: [Lazarus] Cross-compiling for Raspberry Pi2

2015-09-18 Thread Michael Van Canneyt
On Fri, 18 Sep 2015, Martin Schreiber wrote: On Friday 18 September 2015 16:14:35 Bo Berglund wrote: I have not really used Lazarus except for some hello world tests and for checking how to port a Sentinel dongle function to FPC. Now that is a chance to use MSEide instead. ;-) MSEide runs