RE: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Sam Liddicott
Can I suggest you also look at the Alma project on freshmeat.net Sam -Original Message- From: Marco Alvarado [EMAIL PROTECTED] Sent: 07 February 2008 17:37 To: lazarus@miraclec.com Subject: Re: [lazarus] FPC compiler for virtual machines? I'm building right now a translator of Object

RE: [lazarus] RecreateWnd

2008-02-03 Thread Sam Liddicott
Surely recreatewnd is just destroywnd followed by createwnd, both of which weem important to me. Sam -Original Message- From: Felipe Monteiro de Carvalho [EMAIL PROTECTED] Sent: 03 February 2008 16:18 To: lazarus@miraclec.com Subject: Re: [lazarus] RecreateWnd On Feb 3, 2008 4:09 PM,

RE: [lazarus] MouseMove problem in WinCE

2008-01-19 Thread Sam Liddicott
Please can you documet how you did it. I fail with all kinds of libs not compiling for wince. I want to add wince to my build all cross script.thanks Sam -Original Message- From: Paul Michell [EMAIL PROTECTED] Sent: 18 January 2008 23:09 To: lazarus@miraclec.com Subject: Re: [lazarus]

RE: [lazarus] Making GTK Thread Safe

2008-01-06 Thread Sam Liddicott
If you want to fake a older kernel, try: LD_ASSUME_KERNEL=2.2.5 In the environmen before ou run. I know it affects the threading model among other things. Sam -Original Message- From: Giuliano Colla [EMAIL PROTECTED] Sent: 07 January 2008 00:00 To: lazarus@miraclec.com Subject: Re:

RE: [lazarus] Making GTK Thread Safe

2008-01-01 Thread Sam Liddicott
Gmane came to mind, but it has the same problem, you can't use your nntp newsreader if port 119 is blocked. Sam -Original Message- From: Micha Nelissen [EMAIL PROTECTED] Sent: 31 December 2007 21:34 To: lazarus@miraclec.com Subject: Re: [lazarus] Making GTK Thread Safe Sam Liddicott

RE: [lazarus] Making GTK Thread Safe

2008-01-01 Thread Sam Liddicott
Yes But you can't use your newsreader, you have to use a web browser. Sam -Original Message- From: Micha Nelissen [EMAIL PROTECTED] Sent: 01 January 2008 11:27 To: lazarus@miraclec.com Subject: Re: [lazarus] Making GTK Thread Safe Sam Liddicott wrote: Gmane came to mind, but it has

Re: [lazarus] Making GTK Thread Safe

2008-01-01 Thread Sam Liddicott
Micha Nelissen wrote: Sam Liddicott wrote: Yes But you can't use your newsreader, you have to use a web browser. So? You're also not allowed to use a web browser? I think the thread got lost... so to refresh where I came in: On Thu, Dec 13, 2007 at 04:35:24PM +0300, Al Boldi

RE: [lazarus] Making GTK Thread Safe

2007-12-31 Thread Sam Liddicott
I can smell an NNTP over http proxy. For syncronous commands and with HTTP keep-alive it should be nearly as eficient as regular NNTP Sam -Original Message- From: Marco van de Voort [EMAIL PROTECTED] Sent: 30 December 2007 13:15 To: lazarus@miraclec.com Subject: Re: [lazarus] Making GTK

[lazarus] FPC package builder

2007-12-27 Thread Sam Liddicott
The attached create_fpc_deb.sh is the latest working copy. # create native ./create_fpc_deb.sh fpc ~/lazarus/fpc # create win32 cross compiler # script couldn't guess BINUTILSPREFIX as it begins with i586 not i386 OS_TARGET=win32 CPU_TARGET=i386 BINUTILSPREFIX=i586-mingw32msvc-

[lazarus] FPC package builder

2007-12-21 Thread Sam Liddicott
The attached create_fpc_deb.sh is the latest working copy. # create native ./create_fpc_deb.sh fpc ~/lazarus/fpc # create win32 cross compiler # script couldn't guess BINUTILSPREFIX as it begins with i586 not i386 OS_TARGET=win32 CPU_TARGET=i386 BINUTILSPREFIX=i586-mingw32msvc-

Re: Lazarus not cross compiling

2007-12-12 Thread Sam Liddicott
* Vincent Snijders wrote, On 12/12/07 13:53: Sam Liddicott schreef: Please could a wise chap help me see why lazarus is calling ppc386 even when I select to compile for powerpc. The search paths are powerpc but the wrong compiler is called. What does Environment - Environment Options

Re: Lazarus not cross compiling

2007-12-12 Thread Sam Liddicott
* Vincent Snijders wrote, On 12/12/07 13:53: Sam Liddicott schreef: Please could a wise chap help me see why lazarus is calling ppc386 even when I select to compile for powerpc. The search paths are powerpc but the wrong compiler is called. What does Environment - Environment Options

Re: Lazarus not cross compiling

2007-12-12 Thread Sam Liddicott
* Vincent Snijders wrote, On 12/12/07 15:37: Sam Liddicott schreef: * Vincent Snijders wrote, On 12/12/07 13:53: Sam Liddicott schreef: Please could a wise chap help me see why lazarus is calling ppc386 even when I select to compile for powerpc. The search paths are powerpc but the wrong

[lazarus] cross-compiler packages

2007-12-10 Thread Sam Liddicott
This modified create_fpc_deb.sh (from lazarus/tools/install) will handle the environment variables OS_TARGET and CPU_TARGET and detect when a cross compiler is being built if CPU_TARGET differs from `dpkg --print-architecture` e.g. OS_TARGET=linux CPU_TARGET=powerpc ./create_fpc_deb.sh fpc

Re: [lazarus] cross-compiler packages

2007-12-10 Thread Sam Liddicott
Additional patch to help building win32. It forces CROSSINSTALL=1 for any OS_TARGET build even for the same CPU, in order to avoid building a load of cruft not needed. (If you don't specify the OS_TARGET then it builds everything properly.) It also allows BINUTILSPREFIX to be specified in the

[lazarus] Lazarus not cross compiling

2007-12-10 Thread Sam Liddicott
I have my project compiler options and build lazarus both set to powerpc, I also have the powerpc cross compiler installed. Although lazarus uses the powerpc lib dirs, it still uses ppc386 to compile with! (I had to build the lazarus powerpc libs with: su -c cd /usr/share/lazarus/lcl/

RE: [lazarus] Ubuntu (debian) install problem

2007-12-09 Thread Sam Liddicott
What fpc / lazarus packages did you install? dpkg --get-selection | grep fpc Will help. Sam -Original Message- From: Paul Midgley [EMAIL PROTECTED] Sent: 09 December 2007 18:53 To: lazarus@miraclec.com Subject: [lazarus] Ubuntu (debian) install problem Hello I have recently

RE: [lazarus] returning empty published property from component

2007-12-04 Thread Sam Liddicott
How should it be any diferent from normal access via the property getter? If you use the rtti you can tell whether or not the curent value is the default value, but you can't tel if it is the default value by default or by choice. Sam -Original Message- From: Marc Santhoff [EMAIL

[lazarus] More on building ce cross compiling packages

2007-12-04 Thread Sam Liddicott
More patches for lazarus to help building cross-compilers with the same script as the regular compiler. It's mostly done, I've not fully tested it because wince still fails badly because half of db, and so db export and also fphtml (and who knows what else) fail on wince. Basically fpc head

[lazarus] cross compile CPU_TARGET fails

2007-12-03 Thread Sam Liddicott
All the instructions I can find on building a cross compiler say to pas CPU_TARGET and OS_TARGET as makefile parameters. (According to: http://wiki.lazarus.freepascal.org/Cross_compiling http://wiki.freepascal.org/WinCE_port etc) But when I use this notation, the make fails because it can't find

Re: cross compile CPU_TARGET fails

2007-12-03 Thread Sam Liddicott
Never mind, I seem to have guessed right sayingL FPC= Sam Sam Liddicott wrote: All the instructions I can find on building a cross compiler say to pas CPU_TARGET and OS_TARGET as makefile parameters. (According to: http://wiki.lazarus.freepascal.org/Cross_compiling http

[lazarus] help: postgres on upgrading build script to do cross-builds too

2007-12-01 Thread Sam Liddicott
For the deb cross building scripts to build for arm-wince I'm starting from the regular building script and just extending it to do cross building. Applying this (slightly dodgy, in-progress) diff: Index: create_fpc_deb.sh === ---

Re: [lazarus] help: postgres on upgrading build script to do cross-builds too

2007-12-01 Thread Sam Liddicott
Micha Nelissen wrote: Sam Liddicott wrote: dbf_pgfile.pas(795,23) Error: Identifier not found LockFile dbf_pgfile.pas(809,23) Error: Identifier not found UnlockFile dbf_pgfile.pas(918) Fatal: There were 2 errors compiling module, stopping It's impossible to lock files under windows ce

Re: [lazarus] Search engine for Lazarus and Free Pascal concerned stuff

2007-11-24 Thread Sam Liddicott
Al Boldi wrote: Sam Liddicott wrote: Tom Gregorovic wrote: Hi, it crossed my mind that it would be convenient to have one search service for all the information about Lazarus and Free Pascal, which are in forums, mail list archives, documentation reference, wiki, Mantis, SVN repository

Re: [lazarus] Search engine for Lazarus and Free Pascal concerned stuff

2007-11-23 Thread Sam Liddicott
Tom Gregorovic wrote: Hi, it crossed my mind that it would be convenient to have one search service for all the information about Lazarus and Free Pascal, which are in forums, mail list archives, documentation reference, wiki, Mantis, SVN repository, SVN log, blog ... One possibility is Google

Re: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Sam Liddicott
* Guru Kathiresan wrote, On 22/11/07 12:58: Hello, I know people here are mainly interested in Pascal but I thought I can share some information about my C++ project that is based on the FreePascal library code. I have attempted to create a cross platform C++ library called wxVCL; this C++

[lazarus] cross build script broken

2007-11-14 Thread Sam Liddicott
Building the cross compiler packages (I'm actually after the wince, but I'll get win32 first) fails: $ cd lazarus/lazarus/tools/install/cross_unix $ nice bash -x ./create_linux_cross_win32_deb.sh downloadbinutils downloadfpc buildbinutils buildcrosswin32deb ... ...

Re: [lazarus] cross build script broken

2007-11-14 Thread Sam Liddicott
Looks like I was missing a: buildcrossfpc I'll give it another go Sam * Sam Liddicott wrote, On 14/11/07 12:58: Building the cross compiler packages (I'm actually after the wince, but I'll get win32 first) fails: $ cd lazarus/lazarus/tools/install/cross_unix $ nice bash -x

Re: [lazarus] cross build script broken

2007-11-14 Thread Sam Liddicott
* Sam Liddicott wrote, On 14/11/07 13:48: Looks like I was missing a: buildcrossfpc I'll give it another go yep, that was it. ./create_linux_cross_win32_deb.sh downloadbinutils \ downloadfpc \ buildbinutils \ buildcrossfpc \ buildcrosswin32deb worked. Now to try the wince (any

Re: [lazarus] cross build script broken

2007-11-14 Thread Sam Liddicott
Mattias Gaertner wrote: On Wed, 14 Nov 2007 14:05:16 + Sam Liddicott [EMAIL PROTECTED] wrote: * Sam Liddicott wrote, On 14/11/07 13:48: Looks like I was missing a: buildcrossfpc I'll give it another go yep, that was it. ./create_linux_cross_win32_deb.sh

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
Graeme Geldenhuys wrote: Hi, What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. My personal opinion on Variants: * I don't like them. [if that's a reason] :-) Well they were darn useful in Delphi when dealing with

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
Michael Van Canneyt wrote: On Tue, 13 Nov 2007, Graeme Geldenhuys wrote: * They tend to be slow compared no native types. In Delphi 6 they were very slow. How does it compare in FPC 2.2.0? They are slower than native types, there is no way around this. Almost each and

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
Florian Klaempfl wrote: Graeme Geldenhuys schrieb: Hi, What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside opinion. My personal opinion on Variants: Variant based code is a nightmare to maintain. Just let somebody else

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
* Michael Van Canneyt wrote, On 13/11/07 08:47: On Tue, 13 Nov 2007, Sam Liddicott wrote: Michael Van Canneyt wrote: On Tue, 13 Nov 2007, Graeme Geldenhuys wrote: * They tend to be slow compared no native types. In Delphi 6 they were very slow. How does

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
* Damien Gerard wrote, On 13/11/07 09:31: I think it is the same debate between C++ programmers et PHP programmers. Nearly. It's a meta-debate on whether or not pascal users should be ALLOWED to use variants, not whether or not pascal should implement everything as a variant. The first group

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
* Damien Gerard wrote, On 13/11/07 10:43: I don't think nobody is complaining here since everybody is free to use it or not. Oh some people complain about the widget encapsulation ??? So they don't use QT as well and if they want a multiplatform software what do they use ? Java ? :) And

Re: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
* Graeme Geldenhuys wrote, On 13/11/07 12:39: On 13/11/2007, Marco van de Voort [EMAIL PROTECTED] wrote: On Tue, Nov 13, 2007 at 09:47:31AM +0200, Graeme Geldenhuys wrote: What are your feelings about the use of Variants? I'm debating this in another NG and would like some outside

RE: [lazarus] The use of Variants?

2007-11-13 Thread Sam Liddicott
The websvn link on http://tiopf.sourceforge.net/SourceCodeRepository.shtml Is broken. Sam -Original Message- From: Graeme Geldenhuys [EMAIL PROTECTED] Sent: 13 November 2007 17:44 To: lazarus@miraclec.com Subject: Re: [lazarus] The use of Variants? On 13/11/2007, Alexsander Rosa [EMAIL

RE: [lazarus] GTK2 for arm-linux

2007-07-21 Thread Sam Liddicott
I may be asking obvious questions here, but you didn't reveal a lot about your setup. Do you event have a DISPLAY environment variable set? What kind of display does your arm board have? Maybe the easiest setup will be to ssh to your arm board with X forwarding, using ssh -Y or ssh -X Sam

RE: [lazarus] Lazarus makefile

2007-05-28 Thread Sam Liddicott
Lazarus source can be installed in share because it is platform independent and can be shared nfs style over many OS and releases. The platform specific binaries probably should not. Sam -Original Message- From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: 08/01/07

RE: [lazarus] Lazarus makefile

2007-05-28 Thread Sam Liddicott
Wow. I think that was stuck in my outboz for a long time. Sam -Original Message- From: Sam Liddicott [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: 28/05/07 12:40 Subject: RE: [lazarus] Lazarus makefile Lazarus source can be installed in share because it is platform independent

Re: [lazarus] New features since Delphi 7...

2007-05-22 Thread Sam Liddicott
* Flávio Etrusco wrote, On 21/05/07 22:44: On 5/21/07, Lepidosteus [EMAIL PROTECTED] wrote: One thing I dislike is the poor abstract implementation. I don't see one good reason to let abstract class be instantiated... Totally agreed. And I'd like it so much if FPC would allow one to declare

Re: [lazarus] Lazarus keyword completion addon

2007-05-22 Thread Sam Liddicott
* Graeme Geldenhuys wrote, On 22/05/07 10:03: On 5/22/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Not yet. But this is easy to implement. The above examples (being/end) are triggered by pressing 'return'. Of course not all templates should be triggered by pressing 'return', so every

RE: [lazarus] Linux WriteLn - Staionary Output - how is done?

2007-05-20 Thread Sam Liddicott
As said before, use write, not writeln. Character 8 is back-space, useful for spinners by alternating between / - \ |. Character 13 will move the cursor to the beginning of the line and you can overwrite what is already there. Or, as said, use crt an don't worry about it. Sam

RE: [lazarus] Printer.Canvas.TextStyle.Alignment=taRightJustify = Argument can't be assigned to

2007-05-19 Thread Sam Liddicott
-Original Message- From: Vincent Snijders [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: 17/05/07 07:07 Subject: Re: [lazarus] Printer.Canvas.TextStyle.Alignment=taRightJustify = Argument can't be assigned to =If you don't want this, use public fields insteads of =properties. It's

RE: [lazarus] how to debug the lcl

2007-05-12 Thread Sam Liddicott
-Original Message- From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: 12/05/07 09:51 Subject: Re: [lazarus] how to debug the lcl =Can you give an example, where a first paint message is not on the =screen dc? You're probably right, maybe some wmf capture or

RE: [lazarus] how to debug the lcl

2007-05-11 Thread Sam Liddicott
Well spotted. These days such metric gathering should be done lazily and in a way that the metrics can be invalidated and lazily regathered again, such as when theme font sizes change etc. Windowed controls should at least defer such stuff until createwnd time, but I don't know when plain

Re: [lazarus] New name for the win32 widget set?

2007-04-18 Thread Sam Liddicott
* Graeme Geldenhuys wrote, On 18/04/07 11:15: On 4/18/07, Marc Weustink [EMAIL PROTECTED] wrote: Or maybe WinGDI ? Because it uses the GDI library widgets... Good one I agree, this one makes the most sense. Even better might be 'GDI' on it's own. I don't know of any other platform

Re: [lazarus] OT: Döner was Re: Ideas to implement AllocateHwnd

2007-02-26 Thread Sam Liddicott
* Michael Van Canneyt wrote, On 26/02/07 09:23: Absolutely... Like my wife says: every joke contains at least a part joke :-) Michael. Dang! I was going to get my wife to say that, but you beat me to it! Sam _ To

RE: [lazarus] root's password...

2007-01-08 Thread Sam Liddicott
It should try to use gksudu or similar to re-invoke itself as root. Failing that, sudo or su, check the see also section of the man pages of those tools. Possibly the package containing your program should depend on gksudo or similar and the menu item created should invke gksudo directly on the

RE: [lazarus] Console app problems

2007-01-05 Thread Sam Liddicott
That's the way I do it. But a chap has to be able to read many dialects; the difference between a language english how she is speak And the queens english. Both useful for different things. I like an expressive languages dialect and tend to expressive dialects. Do-begin coupled with

RE: [lazarus] problem with implementing ttimer

2006-12-29 Thread Sam Liddicott
What is the value of Self at this point? Where does it come from? With normal window messages (I recall from Delphi 1) the object self is fetched from an atom on the window handle. Does wince use WM_TIMER or some other callback method. I expect that self is nul because the cookiemethod used to

RE: [lazarus] Project raised exception class 'External: SIGSEGV'

2006-12-29 Thread Sam Liddicott
I think Delphi used csLoading in componentState to void triggering change events while components were being un-streamed. Sam -Original Message- From: Micha Nelissen [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: 29/12/06 19:11 Subject: Re: [lazarus] Project raised exception class

[lazarus] Re: Debian packages

2006-12-27 Thread Sam Liddicott
Mattias Gaertner wrote: I uploaded debian packages for lazarus 0.9.17. These are testing packages, before the official 0.9.18 packages are built, so I need some volunteers. They are available via sourceforge: