[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
s.org Please consider acting on this because 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
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
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 >&g

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

2010-10-22 Thread Bo Berglund
he chance >> to change 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] Re: Reading MDB (MS-Access) data under Linux

2010-11-01 Thread Bo Berglund
FROM TABLE, then that should work fine. > Just tacking on the other MS database MSSQLServer: Is it possible to also work with MS SQLServer databases via ODBC on FPC from Linux? Obviously the SQLServer must be running on Windows so this is about network access to the database engine. When I make

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

2010-11-02 Thread Bo Berglund
e at least 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 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 the semantics to deal

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

2010-11-02 Thread Bo Berglund
.html) >(http://www.freepascal.org/docs-html/rtl/system/ntobe.html) > 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 Develop

[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 wrote: >On Tue, 02 Nov 2010 21:39:31 +0100, Felipe Monteiro de Carvalho > wrote: > >> On Tue, Nov 2, 2010 at 7:04 PM, Bo Berglund >> wrote: >>> Thanks, that helps a lot! Are there also overloaded BEtoN fu

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

2010-11-05 Thread Bo Berglund
onst AValue: single): single; begin result := single(BEtoN(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 wi

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

2010-11-05 Thread Bo Berglund
On Fri, 05 Nov 2010 11:07:55 +0100, Bo Berglund wrote: >On Wed, 03 Nov 2010 10:50:10 +0100, Thomas Schatzl > wrote: > >>Coming back to the suggestion from jonas: >> >>function BEtoN(const AValue : single) : single; >>type >> TData = packed record >&g

[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
>Use a separately 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] Convert error hex string to cardinal....

2011-01-17 Thread Bo Berglund
makes it a valid hex Int64 as far as I can see. I have used constructs like this many times in Delphi without problems. So what have I missed in FPC? I am reading and converting GPG key ID:s, which are 64 bit integers expressed as 16 char hex code. -- B

[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 wrote: >2011/1/17 Bo Berglund : >> I have encountered a conversion error using FPC 2.4.2 with Lazarus >> 0.9.29 as follows: >> >> var >>  t: Int64; >>  v: string; >> begin >>  ... >&g

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

2011-01-30 Thread Bo Berglund
is created, possibly using the OpenOffice hook described here, 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] 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. &

[fpc-pascal] Memory leak or object destruction?

2011-02-02 Thread Bo Berglund
aring? 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
ot need the var declaration, 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
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 "extr

[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 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 TSSComm

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

2011-02-05 Thread Bo Berglund
get back a different array, but instead get my array filled 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 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;

[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 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 a

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

2011-03-18 Thread Bo Berglund
I have a bunch of C++ files containing math processing functions, which I need to convert to pascal. But I have never programmed C++ (only ANSI C some 15 years ago) and I am stuck because of the syntax differences. It is all about the handling of data in arrays and I would be grateful for some hint

[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 wrote: >On Sat, Mar 19, 2011 at 06:07, Bo Berglund 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 "

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

2011-03-19 Thread Bo Berglund
y in progress 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

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

2011-03-19 Thread Bo Berglund
>> const double* SZ0, > >idem > >> double* SX, >> double* SY, >> double* SZ) > >SX : pdouble; > >etc Thanks! :-) -- 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 wrote: >I need to create a program using Lazarus/FPC to access a data >collection device built using a PIC24F

[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 wrote: >On 20 March 2011 16:35, Bo Berglund 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. The firmware ma

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

2011-03-21 Thread Bo Berglund
es, I used some C sources as examples but can't remember which- >possibly http://libk8055.sourceforge.net/ On the page it says: libusb A cross platform possibility for Linux, BSDs and Mac OS X is libusb Does this mean it won't work on Windows? I can't test right now cau

[fpc-pascal] Example of using TInetSocket, please

2015-09-21 Thread Bo Berglund
a working example of how this is used so I can start testing if I can use it in my application. Are there some examples of sending binary data between a TCP/IP server and the TInetSocket socket? If so please post links. -- Bo Berglund Developer in Sweden

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

2015-09-24 Thread Bo Berglund
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-24 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 Lazar

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 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 not as powerful a computer as the PC an

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

2015-10-01 Thread Bo Berglund
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 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 Lazar

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

2015-10-03 Thread Bo Berglund
ge 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

[fpc-pascal] Methods for autoupdating fpc programs?

2015-10-03 Thread Bo Berglund
quit, 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-p

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

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 quit

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

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

2015-10-03 Thread Bo Berglund
here 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 maillist - fpc-pascal@li

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 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 shell running as root and I hav

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 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, because you can normally >replace a prog

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

2015-10-07 Thread Bo Berglund
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 S

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

2015-10-07 Thread Bo Berglund
On Wed, 07 Oct 2015 10:05:03 +0200, Jonas Maebe wrote: > >Bo Berglund wrote on Wed, 07 Oct 2015: > >> How can one control the GPIO outputs on a Raspberry Pi2 without >> needing the program to run as root? I am using Raspbian Wheezy and I >> need to add two relays cont

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

2015-10-08 Thread Bo Berglund
root@rpi2b-wheezy:/sys/class/gpio# ls -la total 0 drwxrwx--- 2 root gpio0 Jan 1 1970 . drwxr-xr-x 44 root root0 Oct 8 20:38 .. -rwxrwx--- 1 root gpio 4096 Jan 1 1970 export lrwxrwxrwx 1 root gpio0 Jan 1 1970 gpiochip0 -> ../../devices/soc/3f20.gpio/gpio/gpiochip0 -rwx

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

2015-10-08 Thread Bo Berglund
required group so I take it there is no need to sudo any execution of the program for user pi? pi@rpi2b-wheezy ~ $ groups pi pi : pi adm dialout cdrom sudo audio video plugdev games users netdev input spi i2c gpio I will try to locate an updated pigpio.pas file by asking in the Lazarus forum ins

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

2015-10-09 Thread Bo Berglund
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 p

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

2015-10-19 Thread Bo Berglund
that I could add a test at the start of download to check if swapping is needed? Or is the ARM used on RPi2 working with the same byte order as the Motorola MC68HC11 MCU is? In that case I must switch out the swapping... -- Bo Berglund Developer in Sweden

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

2015-10-19 Thread Bo Berglund
have the endians reversed... -- 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 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 >> download to check if swapping

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

2015-10-19 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 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 am busy ifdefing away those... Plus

[fpc-pascal] Lazarus implementation of TListView etc?

2015-10-20 Thread Bo Berglund
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 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... -- Bo Berglund Developer

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

2015-10-25 Thread Bo Berglund
t;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 Berglund Deve

[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
ty 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-pascal maillist - fpc-pasca

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

2015-11-08 Thread Bo Berglund
* The only 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 wha

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 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 maillist - fpc-pas

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

2015-11-08 Thread Bo Berglund
- Do I need to also run the following 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 ___

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

2015-11-08 Thread Bo Berglund
arus 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 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 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.4.arm-linux.tar >> tar xvf fpc-2.

[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 wrote: >Am 09.11.2015 17:05 schrieb "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

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 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/svn/fpc/tags/fpc_2_6_4 fpc-2.6.4 did >

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

2015-11-09 Thread Bo Berglund
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] What is the svn url for fpc release 2.6.4

2015-11-11 Thread Bo Berglund
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! -- Bo Berglund Developer in Sweden ___

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

2015-11-21 Thread Bo Berglund
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
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-

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

2015-12-06 Thread Bo Berglund
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 Developer in

[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 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 info for a while, then asked if I

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

2015-12-07 Thread Bo Berglund
et 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
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 ___ fpc-pascal

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

2015-12-07 Thread Bo Berglund
pascal.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 wrote: >On Mon, 7 Dec 2015 23:35:05 +0100, Mattias Gaertner > wrote: > >>> apt-get update >>> apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev >>> gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-d

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

2015-12-07 Thread Bo Berglund
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 Developer in Sweden ___ fpc-pas

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

2015-12-08 Thread Bo Berglund
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 Sweden ___

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 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... > >It does not install the

[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] what does fpc make target sourceinstall do?

2016-01-04 Thread Bo Berglund
On Sun, 20 Dec 2015 09:14:40 +0100, Bo Berglund 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): > >svn co http://svn.freepascal.o

[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] Do I need to make fpc 3.0.0 twice?

2016-01-10 Thread Bo Berglund
g compiler produce >different 3.0.0 binary from 3.0.0 while using the Makefile? Then no. 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 seed compiler and then using the thus created compiler? -- Bo Berglun

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 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 seed compiler and then using the

Re: [fpc-pascal] libevent for socket

2016-01-21 Thread Bo Berglund
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 maillist - fpc-pascal@lists.freepascal.or

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

2016-02-22 Thread Bo Berglund
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://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2016-02-22 Thread Bo Berglund
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
onverting 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 -- Bo

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

2016-02-24 Thread Bo Berglund
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 Berglund Developer in Sweden _

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

2016-04-02 Thread Bo Berglund
an 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-config. -- Bo Berglund Dev

[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] SVN FPC tag content?

2016-04-02 Thread Bo Berglund
On Sat, 2 Apr 2016 19:53:39 +0100, Graeme Geldenhuys 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 concerned, tags should *never* move, other

[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

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 wrote: >On Mon, May 16, 2016 at 6:22 AM, Bo Berglund wrote: > >> When porting a Delphi console program on Windows to FreePascal on >> Linux, what can one do with API calls like WaitForMultipleObjects, >> whic

  1   2   3   4   5   6   >