Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-10-03 Thread Dennis
Bo Berglund wrote: UPDATE: Since advice was to not cross-compile but build on the final hardware I have installed fpc and Lazarus on the Rpi2B. I followed the tutorial for installing fpc and Lazarus from sources on the Raspberry Pi2B fouund here:

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-10-03 Thread Bo Berglund
On Thu, 24 Sep 2015 09:48:32 -0400, Bo Berglund wrote: >I want to check my options regarding Lazarus and FPC. > >If I develop a program on Windows Lazarus, move it to Debian Lazarus >(x86) and then finally want to compile on ARM on for example Raspberry >Pi but outside of

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Ralf Quint
On 10/3/2015 11:30 AM, Bo Berglund wrote: I am wondering if there is some method to autoupdate an fpc program running on a RaspberryPi? It really should not matter where the fpc program runs but I figured the operating system has some influence, so let's limit this to Linux. What I would like

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Bo Berglund
On Sat, 3 Oct 2015 13:58:27 -0700, Ralf Quint wrote: >On 10/3/2015 11:30 AM, Bo Berglund wrote: >> I am wondering if there is some method to autoupdate an fpc program >> running on a RaspberryPi? It really should not matter where the fpc >> program runs but I figured the

[fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Bo Berglund
I am wondering if there is some method to autoupdate an fpc program running on a RaspberryPi? It really should not matter where the fpc program runs but I figured the operating system has some influence, so let's limit this to Linux. What I would like is to endow my data collection control

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-10-03 Thread José Mejuto
El 03/10/2015 a las 20:24, Bo Berglund escribió: Is there some way one can reset all unused sectors on the disk to only contain 0xFF or Ox00? That would make the image file compressible to a few GB and possible to share. Hello, Just two links:

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Ralf Quint
On 10/3/2015 2:15 PM, Bo Berglund wrote: Yes, I found that but it seems to be a visual component that will interact with a user. My program is a command line application started by cron and running on a headless Pi2B installed inside a box in the wilderness. Only communicates via a mobile

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-10-03 Thread Bo Berglund
On Sat, 03 Oct 2015 17:29:28 +0800, Dennis wrote: > >Would you be kind enough to save your SD Card into an image file and >share with us? >If you don't have the web space needed, please kindly email me and I >shall give you an ftp account of my web site. I made an

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-10-03 Thread Paul Breneman
On 10/03/2015 02:24 PM, Bo Berglund wrote: ... Is there some way one can reset all unused sectors on the disk to only contain 0xFF or Ox00? That would make the image file compressible to a few GB and possible to share. On this wiki page: http://wiki.freepascal.org/Small_Virtual_Machines I

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread waldo kitty
On 10/03/2015 02:30 PM, Bo Berglund wrote: The program will probably be started by cron every minute to check if it has anything to do and if so execute its data collection task and quit. Otherwise just quit, but here maybe also check for an update on the web? But how could one exchange a

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Sven Barth
Am 04.10.2015 00:02 schrieb "Jonas Maebe" : > > Bo Berglund wrote: >> >> So this little program is24.5 Mbytes in size! >> >> Amazing and no wonder the MD5 calculation takes such a long time! > > > Program size and speed are generally not directly correlated (think of

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Bo Berglund
On Sat, 03 Oct 2015 23:40:01 +0200, Bo Berglund wrote: >I just tested on Lazarus inside the Pi2B and it was simple to do a MD5 >sum of one's own executable: > >strMD5 := MD5Print(MD5File(Application.Exename)); > >The only problem is that it seems to take quite some time to

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Bo Berglund
On Sat, 3 Oct 2015 15:04:31 -0400, waldo kitty wrote: >On 10/03/2015 02:30 PM, Bo Berglund wrote: >> The program will probably be started by cron every minute to check if >> it has anything to do and if so execute its data collection task and >> quit. Otherwise just

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Jonas Maebe
Bo Berglund wrote: So this little program is24.5 Mbytes in size! Amazing and no wonder the MD5 calculation takes such a long time! Program size and speed are generally not directly correlated (think of e.g. inlining, which increases program size and which can also increase speed at the same

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Sven Barth
Am 03.10.2015 23:56 schrieb "Bo Berglund" : > So this little program is 24.5 Mbytes in size! > Amazing and no wonder the MD5 calculation takes such a long time! > Why is FPC producing such an incredibly big program file? That's the debug information. If you disable the

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Bo Berglund
On Sun, 04 Oct 2015 00:02:01 +0200, Jonas Maebe wrote: >> And why is Lazarus running as root? > >Because you presumably started it as root. If you start an application >as a normal user, it cannot get root permissions (unless your lazarus >binary is marked as setuid