[fpc-pascal] Is Delphi7 on Windows to FPC on embedded Linux possible?

2010-09-24 Thread Bo Berglund
This may be a stupid question, but I just discovered FPC so please bear with me... I have been writing Delphi programs since 1996 or so (when Delphi 2 was released), so I am rather comfortable with that. Now I need to write for the Linux platform because we are trying to make a Linux front end

[fpc-pascal] Posting to the list via GMAIL

2010-09-30 Thread Bo Berglund
it would make for a much better information store to interact with via news rather than email. Best wishes, Bo Berglund ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Bo Berglund
such functions? I am not a matematician myself so I don't know what these functions really do... -- Bo Berglund ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Bo Berglund
such functions? I am not a matematician myself so I don't know what these functions really do... -- Bo Berglund ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Posting to the list via GMAIL

2010-10-09 Thread Bo Berglund
On 30 Sep 2010, at 20:50, Bo Berglund wrote: I asked that this group also be made working for posting via the news server, but in this case Lars' reply was: This group is also backed by a mailing list and in this case the mail list email address on GMANE seems to be OK. But for some

[fpc-pascal] Re: Posting to the list via GMAIL

2010-10-23 Thread Bo Berglund
anything. I've just received confirmation from the GMANE admin that they've made the gateway read-write now. Really great! Thanks! (this is posted via the Gmane News server) -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] Re: Reading MDB (MS-Access) data under Linux

2010-11-01 Thread Bo Berglund
access to the database engine. When I make data sources in Windows for these databases I do not use ODBC but a native SQLServer driver, is such available also on Linux? Bo Berglund ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] Endian issues when porting FPC programs from x86 to other platforms

2010-11-02 Thread Bo Berglund
these targets: - Windows and Linux on x86 CPU:s - Embedded Linux on ARM CPU:s Bo Berglund ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Endian issues when porting FPC programs from x86 to other platforms

2010-11-02 Thread Bo Berglund
On Tue, 02 Nov 2010 09:09:05 +0100, Bo Berglund bo.bergl...@gmail.com wrote: OK, I see that there are functions to convert a known BE or LE integer value to the *native* order. This would in principle work across all platforms where FPC is implemented so that is good news! However now I have

[fpc-pascal] Re: Endian issues when porting FPC programs from x86 to other platforms

2010-11-02 Thread Bo Berglund
) Thanks, that helps a lot! Are there also overloaded BEtoN functions for floating point values? Like so: function BEtoN(const AValue: Single):Single; function BEtoN(const AValue: Double):Double; -- Bo Berglund Developer in Sweden ___ fpc-pascal

[fpc-pascal] Re: Endian issues when porting FPC programs from x86 to other platforms

2010-11-02 Thread Bo Berglund
On Tue, 02 Nov 2010 22:53:21 +0100, Vinzent Höfler jellyfish.softw...@gmx.net wrote: On Tue, 02 Nov 2010 21:39:31 +0100, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Tue, Nov 2, 2010 at 7:04 PM, Bo Berglund bo.bergl...@gmail.com wrote: Thanks, that helps a lot

[fpc-pascal] Re: Endian issues when porting FPC programs from x86 to other platforms

2010-11-05 Thread Bo Berglund
(longint(AValue))); end; I.e. I use typecasting to get the compiler to treat the same 4 bytes in different ways inside the expression Is this legal in FPC? (I can't test now because I am at work with no FPC system installed) -- Bo Berglund Developer in Sweden

[fpc-pascal] Dynamic array as result of class method?

2010-11-07 Thread Bo Berglund
sized inside the function?? Or is this a Lazarus implementation problem rather than a FPC problem? Bo Berglund ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Dynamic array as result of class method?

2010-11-07 Thread Bo Berglund
defined type: type tbytearray = array of byte; Thanks, works fine! -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Convert error hex string to cardinal....

2011-01-17 Thread Bo Berglund
On Mon, 17 Jan 2011 23:29:07 +0100, Vincent Snijders vincent.snijd...@gmail.com wrote: 2011/1/17 Bo Berglund bo.bergl...@gmail.com: I have encountered a conversion error using FPC 2.4.2 with Lazarus 0.9.29 as follows: var  t: Int64;  v: string; begin  ...  t := StrToInt('$' + v

[fpc-pascal] Re: Converting .doc and/or .html to .pdf

2011-01-30 Thread Bo Berglund
, I would be very much interested too! The link above goes in the end to a download of *compiled* java code so it is not that good for me. An FPC implementation would be really useful though. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist

[fpc-pascal] Re: Converting .doc and/or .html to .pdf

2011-01-30 Thread Bo Berglund
On Sunday, January 30, 2011 11:07 Andreas Schneider wrote: On Sunday, January 30, 2011 09:46 Bo Berglund wrote: The link above goes in the end to a download of *compiled* java code so it is not that good for me. An FPC implementation would be really useful though. The source code

[fpc-pascal] Memory leak or object destruction?

2011-02-02 Thread Bo Berglund
? Memory leak or object destruction? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Correct use of var in function calls?

2011-02-03 Thread Bo Berglund
, but I am not sure. I want to treat the array as a variable because it is the return container for the data. Bo Berglund ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Correct use of var in function calls?

2011-02-04 Thread Bo Berglund
to a record in heap and it's reference counted. OK, what will happen if I have a declaration like this: function TSSCommBuf.Read(var Data: TByteArr): boolean; as opposed to function TSSCommBuf.Read(Data: TByteArr): boolean; Will they be equivalent or will there be an extra layer of pointer?? Bo

[fpc-pascal] Re: Correct use of var in function calls?

2011-02-05 Thread Bo Berglund
On Fri, 4 Feb 2011 19:10:33 +0100, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 04 Feb 2011, at 16:25, Bo Berglund wrote: OK, what will happen if I have a declaration like this: function TSSCommBuf.Read(var Data: TByteArr): boolean; as opposed to function TSSCommBuf.Read(Data: TByteArr

[fpc-pascal] Re: Correct use of var in function calls?

2011-02-05 Thread Bo Berglund
as requested... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Pointer to first dynamic array element (was: Re: Correct use of var in function calls?)

2011-02-05 Thread Bo Berglund
On Sat, 5 Feb 2011 12:47:53 +0100, Michael Müller mueller_mich...@alice-dsl.net wrote: Hi Bo! Am 03.02.2011 um 22:53 schrieb Bo Berglund: function TSSCommBuf.Read(var Data: TByteArr): boolean; // == ??? begin Result := Read(@Data, SizeOf(Data)) = SizeOf(Data); end; When using dynamic

[fpc-pascal] Re: Correct use of var in function calls?

2011-02-06 Thread Bo Berglund
On Sat, 05 Feb 2011 15:51:37 +0100, Florian Klaempfl flor...@freepascal.org wrote: Am 05.02.2011 10:46, schrieb Bo Berglund: But that is not what I am doing at all, so I can stick with a simple: FillArr(Arr: TByteArr) and be sure that I will not get back a different array, but instead get

[fpc-pascal] Converting code from C++ to FP....

2011-03-18 Thread Bo Berglund
sum := 0.0; for j := jBegin to k-1 do sum := sum + A[kPos+j-1] * A[kPos+j-1]; == array A[kPos+k-1] := sqrt(A[kPos+k-1] - sum); end end; -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Re: Converting code from C++ to FP....

2011-03-19 Thread Bo Berglund
On Sat, 19 Mar 2011 08:30:45 +0100, Aleksa Todorovic alexi...@gmail.com wrote: On Sat, Mar 19, 2011 at 06:07, Bo Berglund bo.bergl...@gmail.com wrote: 1) The second line in the loop contains the command std::max, how can that be translated? I have not found any class definition for std

[fpc-pascal] Re: Converting code from C++ to FP....

2011-03-19 Thread Bo Berglund
of converting to Pascal then get rid of C design flaws and convert to clear Pascal code. That is indeed my aim! :-) -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

[fpc-pascal] Re: Converting code from C++ to FP....

2011-03-19 Thread Bo Berglund
! :-) -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Accessing USB HID from Lazarus programs?

2011-03-20 Thread Bo Berglund
I posted this on the lazarus list but they suggested to send it to the FPC list instead in order to possibly get better answers... On Sun, 20 Mar 2011 10:04:28 -0500, Bo Berglund bo.bergl...@gmail.com wrote: I need to create a program using Lazarus/FPC to access a data collection device built

[fpc-pascal] Re: Accessing USB HID from Lazarus programs?

2011-03-20 Thread Bo Berglund
On Sun, 20 Mar 2011 19:47:28 +, Henry Vermaak henry.verm...@gmail.com wrote: On 20 March 2011 16:35, Bo Berglund bo.bergl...@gmail.com wrote: I need to create a program using Lazarus/FPC to access a data collection device built using a PIC24F series microprocessor with built-in USB support

[fpc-pascal] Re: Accessing USB HID from Lazarus programs?

2011-03-21 Thread Bo Berglund
today. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.0-rc2 release

2015-10-25 Thread Bo Berglund
string handling. >Also there is a new Windows to Android cross-compiler installer. > I installed from SVN head a while ago and this version seems to be 3.1.1 SVN 32000. Are there a lot of differences between the RC and 3.1.1? Should I back off to the 3.0 RC? -- Bo Berglun

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-08 Thread Bo Berglund
released Lazarus is 1.4.4, and I think that FPC 2.6.4 is the latest release. So since I have 2.6.4 installed it might just be about changing the symlink inside /usr/local/bin to point pparm to that versionon the FPC side? -- Bo Berglund Developer in Sweden ___

[fpc-pascal] Updated FPC from svn but make does not work..

2015-11-08 Thread Bo Berglund
supported starting compiler version is 2.6.4. You are trying to build with 3.1.1.. Stop. How am I supposed to update fpc 3.1.1? Web sources only describe how to get it in the first place but not how to keep it updated. Do I have to adjust all the fpc related symlinks first or what? -- Bo

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-08 Thread Bo Berglund
ollowing commands afterwards: make install OPT=-dFPC_ARMHF PREFIX=/usr/local make install sourceinstall OPT=-dFPC_ARMHF PREFIX=/usr/local and do these also need the PP=ppcarm-2.6.4 parameter? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist -

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-08 Thread Bo Berglund
On Sun, 08 Nov 2015 11:44:15 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote: >How am I supposed to update fpc 3.1.1? Forgot to say that I am doing this on an ARM device (Raspberry Pi2). -- Bo Berglund Developer in Sweden ___ fpc-pascal

[fpc-pascal] What is the svn url for fpc release 2.6.4

2015-11-09 Thread Bo Berglund
I have googled extensively now and not found this, so please tell me how I can get fpc 2.6.4 sources from svn. svn co http://svn.freepascal.org/svn/fpc/tags/fpc_2_6_4 fpc-2.6.4 did not work... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist

Re: [fpc-pascal] What is the svn url for fpc release 2.6.4

2015-11-09 Thread Bo Berglund
On Mon, 9 Nov 2015 17:15:06 +0100, Sven Barth <pascaldra...@googlemail.com> wrote: >Am 09.11.2015 17:05 schrieb "Bo Berglund" <bo.bergl...@gmail.com>: >> >> I have googled extensively now and not found this, so please tell me >> how I can get

Re: [fpc-pascal] What is the svn url for fpc release 2.6.4

2015-11-11 Thread Bo Berglund
shot which won't be subject to retroactive patches, which >you only have to download once, and which you can copy between machines >without local svn deciding it doesn't like something. Lost that exact advice. But now I know so I will stick with fpcbuild. Thanks! --

Re: [fpc-pascal] What is the svn url for fpc release 2.6.4

2015-11-09 Thread Bo Berglund
On Mon, 09 Nov 2015 17:03:42 +, Mark Morgan Lloyd <markmll.fpc-pas...@telemetry.co.uk> wrote: >Bo Berglund wrote: >> I have googled extensively now and not found this, so please tell me >> how I can get fpc 2.6.4 sources from svn. >> svn co http://svn.freepascal.org

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-09 Thread Bo Berglund
BIHF? So you think that fixes_3_0 would be a better fpc on my RPi2? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-09 Thread Bo Berglund
On Sun, 08 Nov 2015 16:18:51 +, Mark Morgan Lloyd <markmll.fpc-pas...@telemetry.co.uk> wrote: >Bo Berglund wrote: >> I think my 2.6.4 is OK because I got it as follows (from my notes): >> wget >> http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6

[fpc-pascal] Does TThread.Execute terminate thread on exit?

2015-11-01 Thread Bo Berglund
? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Does TThread.Execute terminate thread on exit?

2015-11-01 Thread Bo Berglund
in thread retains the responsibility to terminate and free the thread after first commanding Disconnect (and gotten feedback from the OnDisconnect event). Any other suggestions? Threading is tricky business... -- Bo Berglund Developer in Sweden ___ fpc-pa

[fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-07 Thread Bo Berglund
and it is also always mentioned that the program must be run as root. My program must be started every minute by cron so I don't know how this will happen... (Not so used to Linux) Do I need to install some driver in Raspbian to allow access to the GPIO ports from FPC? -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-08 Thread Bo Berglund
o/gpio/gpiochip0 -rwxrwx--- 1 root gpio 4096 Jan 1 1970 unexport -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Byte order modification in fpc on ARM?

2015-10-19 Thread Bo Berglund
On Mon, 19 Oct 2015 15:32:00 +0200, Jonas Maebe <jonas.ma...@elis.ugent.be> wrote: > >Bo Berglund wrote on Mon, 19 Oct 2015: > >> Is there a function or such to interrogate the byte order of the >> platform FPC runs on? So that I could add a test at the start of >&

[fpc-pascal] Delphi-FPC difference in handling TList

2015-10-20 Thread Bo Berglund
Sort(Compare: TListSortCompare); Description Call Sort to sort the items in the Items array. Compare is a comparison function that indicates how the items are to be ordered. I tried to typecast the function but it does not change anything: FCommands.Sort(TListSortCompare(CommandCompare)); What am I mis

Re: [fpc-pascal] Delphi-FPC difference in handling TList

2015-10-20 Thread Bo Berglund
On Tue, 20 Oct 2015 08:31:57 +0200, Bo Berglund <bo.bergl...@gmail.com> wrote: Thanks! FCommands.Sort(@CommandCompare); works fine, at least no longer any compile errors in this unit. Now in another unit and wound up with lots of Windows specific stuff I really do not need, so I a

[fpc-pascal] Lazarus implementation of TListView etc?

2015-10-20 Thread Bo Berglund
lace but then I need the definition units to come on-line... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus implementation of TListView etc?

2015-10-20 Thread Bo Berglund
On Tue, 20 Oct 2015 18:47:49 +0200, Bo Berglund <bo.bergl...@gmail.com> wrote: >I want to konow why comctrls is not found by Lazarus and hence the >definitions of a lot of objects in my Delphi code ported to FPC >generate errors? Sorry, wrong list. Heading to Lazarus list now...

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-08 Thread Bo Berglund
file by asking in the Lazarus forum instead. Bye! -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-09 Thread Bo Berglund
ob in this low level handling of Linux... I will continue searching for your echo examples after I return home again. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Access GPIO pins on RPi2 without root?

2015-10-10 Thread Bo Berglund
OK, I have now subscribed to the fpc-other list. Hopefully I can ask "stupid" fpc usage questuions there... Best Regards, Bo Berglund -Original Message- You just mentioned that you don't like to subscribe to mailing lists because you already receive many mails. By pos

Re: [fpc-pascal] Screwed FPC installation in Xubuntu

2015-10-01 Thread Bo Berglund
nstall of Lazarus + FPC on RaspberryPi2 with Raspbian Jessie. Is the recommended method to do as you describe above also there? Or is Lazarus itself going to correctly install FPC too? (Will ask about Lazarus install on the Lazarus list) -- Bo Berglund Developer in Sweden ___

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 <bo.bergl...@gmail.com> 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 Raspber

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 <freedos...@gmail.com> 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 >>

[fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Bo Berglund
, but here maybe also check for an update on the web? But how could one exchange a running program on the pi from within itself? Any common methods available somewhere? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal

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

2015-10-03 Thread Bo Berglund
Ox00? That would make the image file compressible to a few GB and possible to share. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2015-10-04 Thread Bo Berglund
On Sun, 04 Oct 2015 00:36:09 +0200, Bo Berglund <bo.bergl...@gmail.com> wrote: >But if I open a terminal from the menu in the VNC window it shows it >is running as root... > >I have to check with the RPi forum on this VNC problem. I have now found out the reason for the VNC she

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 <bo.bergl...@gmail.com> 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

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 <wkitt...@windstream.net> 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 >>

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

2015-10-03 Thread Bo Berglund
s no user login required where the active user is set. But if I open a terminal from the menu in the VNC window it shows it is running as root... I have to check with the RPi forum on this VNC problem. -- Bo Berglund Developer in Sweden ___ fpc-pascal

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

2015-10-04 Thread Bo Berglund
On Sun, 4 Oct 2015 12:37:29 +0100, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote: >On 2015-10-03 19:30, Bo Berglund wrote: >> But how could one exchange a running program on the pi from within >> itself? > >On non-Windows platforms it is much easier, becaus

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

2015-09-24 Thread Bo Berglund
such that paths etc are observed? Or is thare a separate file for FPC I have to prepare in order to set the unit paths? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

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

2015-09-25 Thread Bo Berglund
On Fri, 25 Sep 2015 08:30:10 +, Mark Morgan Lloyd <markmll.fpc-pas...@telemetry.co.uk> wrote: >Bo Berglund wrote: >> If absolutely necessary I will have to set up the RPi with a monitor, >> keyboard and mouse and install Lazarus and compile from there. But RPi >> is

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

2015-09-24 Thread Bo Berglund
On Thu, 24 Sep 2015 09:48:32 -0400, Bo Berglund <bo.bergl...@gmail.com> 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 Raspber

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Bo Berglund
id so I can revert it Is there an uninstall way? Here is where apt-get would have been good since it has an uninstall function. But, should not the 32 bit compiler work also in my Linux Mint 17 machine? Even though it has an Intel 64 bit CPU... -- Bo Berglund D

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-08 Thread Bo Berglund
t; file I downloaded to install fpc x64 version... I assume the install.sh script has put the sources somewhere on the disk, for example below /usr/local, but I am not Linux versed enough to know how to find the exact location. Could someone here please tell me where? -- Bo Berglund Developer in

Re: [fpc-pascal] I thought fpc 3.0 would be compilable from fpc 3.0?

2015-12-06 Thread Bo Berglund
e newly made compiler to build it. Did I get this correct? PS: Is there a package available for Debian Jessie on Raspberry Pi2 such that one does not have to build the compiler at all? Like getting it via apt: sudo apt-get install freepascal DS -- Bo Berglund Develop

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-08 Thread Bo Berglund
On Tue, 8 Dec 2015 18:39:30 +0100, Jonas Maebe <jonas.ma...@elis.ugent.be> wrote: >On 08/12/15 18:04, Bo Berglund wrote: >> But I have no idea where the sources were placed by the "very big with >> everything" file I downloaded to install fpc x64 version... > >

[fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Bo Berglund
Mint 17 via apt-get? And if so what would be the correct command to get it? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Bo Berglund
On Mon, 07 Dec 2015 20:10:22 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote: >So is there a release 3.0 version available for Linux Mint 17 via >apt-get? >And if so what would be the correct command to get it? I tried this: sudo apt-get install fpc lazarus It gathered i

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Bo Berglund
nstallation I was asked to select target and entered /usr/local as I was told in another case some time ago. 6) Then I just replied Y to most of the questions and it installed apparently just fine. At least it responds to my fpc -h command... Now I have to deal with Lazarus, but that is another list/forum.

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Bo Berglund
of trunk? >Lazarus 1.6RC1 will be available soon and it provides deb >packages for FPC 3.0.0 and Lazarus. > Will there be a tar package like for fpc or should I go for an svn checkout? Is there an RC tag for Lazarus? -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Bo Berglund
>Many. For example: >http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_RC1 > Thanks, I will go with that tag. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Bo Berglund
On Mon, 07 Dec 2015 23:47:36 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote: >On Mon, 7 Dec 2015 23:35:05 +0100, Mattias Gaertner ><nc-gaert...@netcologne.de> wrote: > >>> apt-get update >>> apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev

[fpc-pascal] Do I need to make fpc 3.0.0 twice?

2016-01-08 Thread Bo Berglund
I downloaded the release tag of fpc 3.0.0 via svn and built it using the 2.6.4 seed compiler. It seems to work OK. But now I got to thinking: Should I make fpc 3.0.0 once more using the newly created fpc 3.0.0? Will there be some difference between the two 3.0.0 versions if I do? -- Bo

Re: [fpc-pascal] what does fpc make target sourceinstall do?

2016-01-04 Thread Bo Berglund
On Sun, 20 Dec 2015 09:14:40 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote: >I have looked at a cook-book description on how to build fpc from >sources on RaspBian Linux and there I found these steps (I have left >out some other steps non-related to my question):

[fpc-pascal] what does fpc make target sourceinstall do?

2015-12-20 Thread Bo Berglund
direction from some instructions (files or webpages). -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-21 Thread Bo Berglund
goes Linux Mint, what version is the one I should choose to get FPC/Lazarus working in the easiest way with cross compilation for ARMHF? I don't want to be on an unstable/unsupported distribution. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-22 Thread Bo Berglund
e the company version control uses CVS since many years. Switching to something else is a major engagement... Of course I could use something newer myself locally, but the idea is to have everything in the company version control system. -- Bo Berglund Developer in Sweden __

[fpc-pascal] Delphi-FPC portable code for endian conversion

2016-06-03 Thread Bo Berglund
. I have tried to figure out a set of {$IFDEF } statements but so far with no success. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using paszlib from fpc 3.0 with fpc and delphi 2007?

2016-05-25 Thread Bo Berglund
rom Sourceforge it turned out to be really massive, some 700+ files and basically overwhelming. I would like something simple, preferably built-in like TZipFile in later versions of Delphi. Or paszlib in FPC... But I also would like to have it work both in Delphi and FPC/Lazarus. -- Bo Berglund Deve

Re: [fpc-pascal] Using paszlib from fpc 3.0 with fpc and delphi 2007?

2016-05-25 Thread Bo Berglund
n which units were needed for a minimum file write). -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using paszlib from fpc 3.0 with fpc and delphi 2007?

2016-05-26 Thread Bo Berglund
On Thu, 26 May 2016 00:10:20 +0200, Bo Berglund <bo.bergl...@gmail.com> wrote: >OK, I will see if I can work with Abbrevia without installing the complete >package. Maybe I can just figure out the needed units and go with >these. If so I will post the result here (I mean which uni

Re: [fpc-pascal] Do I need to make fpc 3.0.0 twice?

2016-01-10 Thread Bo Berglund
On Sun, 10 Jan 2016 16:35:43 +0100, Jonas Maebe <jonas.ma...@elis.ugent.be> wrote: >On 10/01/16 16:22, Bo Berglund wrote: >> I always use the make all command via the Makefile. >> So do I read you right that the Makefile compiles the compiler twice, >> once using the s

Re: [fpc-pascal] Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)

2016-02-24 Thread Bo Berglund
to inspect the values while debugging. Further: I see every other day in the Embarcadero forum comments by Remy Lebeau where he strongly advices against using WITH. Only goes to show that it plagues Delphi as well. Join the crusade against WITH!!! -- Bo

Re: [fpc-pascal] Delphi compiler team left Embarcadero/Idera

2016-02-22 Thread Bo Berglund
p as soon as the next release is made in 6 months or so. So a product no longer actively developed gets a higher price... I'm glad I am retired now. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

Re: [fpc-pascal] Delphi compiler team left Embarcadero/Idera

2016-02-22 Thread Bo Berglund
;> Yes, the subscription is "by default". > >That recently changed? I bought Seattle without in november or so. There was an email message from them recently that said they are changing the conditions as of March 1, 2016. After that there is always a su

Re: [fpc-pascal] Delphi compiler team left Embarcadero/Idera

2016-02-22 Thread Bo Berglund
I retired in 2011. Converting from Delphi7 to FPC 3.0 and Lazarus should not be that big of a problem unless there are snags with the 3rd party stuff we used. If one has moved on with RAD until Seattle and used the stuff in there (like FireMonkey) then it would be a hard deal I guess -- B

Re: [fpc-pascal] libevent for socket

2016-01-21 Thread Bo Berglund
using the libevent >2.0.5: > Is this a purely Windows thing or is it portable to all environments supported by FreePascal, like Linux on ARM etc? There seems to be conditionals for MSWINDOWS but nothing else -- Bo Berglund Developer in Sweden __

[fpc-pascal] SVN FPC tag content?

2016-04-02 Thread Bo Berglund
I am wondering if the FPC release tag for 3.0.0 is ever updated with the bugfixes or if it is static. I.e. if I want to get the bugfixes into my FPC do I have to update to a new tag then? Or is it OK just to make a svn up in the source dir? -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Postgresql interface bronken for Raspberry pi model 1b

2016-04-02 Thread Bo Berglund
.boberglund.com/install_laz_pi.sh You can have a look at it and strip off Lazarus if you like. It is not very difficult to build FPC from sources really... One caveat with wheezy and some Pi versions is that you should up swap to 1000 to not get caught in the linker. Swap expansion is found in sudo raspi-c

Re: [fpc-pascal] SVN FPC tag content?

2016-04-02 Thread Bo Berglund
On Sat, 2 Apr 2016 19:53:39 +0100, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote: >On 2016-04-02 19:33, Bo Berglund wrote: >> I am wondering if the FPC release tag for 3.0.0 is ever updated with >> the bugfixes or if it is static. > >As far as I'm concerne

Re: [fpc-pascal] What to use when porting WaitForMultipleObjects to Linux?

2016-05-16 Thread Bo Berglund
On Mon, 16 May 2016 08:42:22 -0400, Dmitry Boyarintsev <skalogryz.li...@gmail.com> wrote: >On Mon, May 16, 2016 at 6:22 AM, Bo Berglund <bo.bergl...@gmail.com> wrote: > >> When porting a Delphi console program on Windows to FreePascal on >> Linux, what

[fpc-pascal] What to use when porting WaitForMultipleObjects to Linux?

2016-05-16 Thread Bo Berglund
application to let a thread handle the (blocking) socket transfers. The first tests were done on Windows with Delphi2007 but the aim is to port it to Linux. Hence I need to get it into FreePascal. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist

[fpc-pascal] Using paszlib from fpc 3.0 with fpc and delphi 2007?

2016-05-25 Thread Bo Berglund
. Question before I start: Does this work or must I add a number of conditionals or such in the code to make it work? Also: which files are needed? It looks like the paszlib src dir has a subdir too with most of the files, is this necessary? -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Using paszlib from fpc 3.0 with fpc and delphi 2007?

2016-05-25 Thread Bo Berglund
nZip provides. Except done in my code. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-26 Thread Bo Berglund
port on my laptop, connected to the pi. So >applications running on a remote PC could control the pi's IO. > >I have no public place to publish this software, so if anyone is >interested, please ask. > I would be interested and I could put it up on my webserver if you like a public

  1   2   3   4   5   6   >