Re: [Lazarus] The Windows daily snapshots

2008-12-05 Thread Vincent Snijders
Boian Mitov schreef:
> Hi folks,
>  
> The Windows daily snapshots list "Updating" for few hours already.
> Is there something wrong?
>  

I only see it on the French mirror, which says at the bottom:
Hosted by shikami.org (for any technical issue please contact 
[EMAIL PROTECTED])

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-05 Thread Mac Programmer
Leonardo is correct. The "Additional Info" fields are just the rest  
of the Microsoft "standard" version info keys, probably because they  
couldn't fit on the main panel. Although it's fun to pay homage to  
Microsoft with a Windows-style nested dialog approach, this dialog  
should have used a property list or grid or something where you can  
both enter values for the "standard" keys and also define new keys:  
MIMEType, Programmer, whatever your heart desires - i.e., like Delphi  
circa version 2.

Thanks.

-Phil

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Making components "interpreted"?

2008-12-05 Thread Thierry Coq
The research could be sped up quite fast by looking at how Kylix 
implemented package loading some time ago. I think it had dynamic 
loading on Unix.

Best regards,
Thierry

Marco van de Voort wrote:
> On Fri, Dec 05, 2008 at 02:36:48PM +0200, Reenen Laurie wrote:
>   
>>> I think simply implementing packages would be easier, and also serves other
>>> purposes. (it's not just a plugin system for Lazarus, but at the same time
>>> for the generated apps)
>>>   
>> Is this in the short / mid term pipeline?
>> 
>
> Nobody is currently working on it. There is even a trajectory of research
> before it. (to come up with the best approach to implement them on *nix)
>
> http://wiki.freepascal.org/packages
>  
>   
>> Because I guess that's all I actually wanted, but thought that perhaps an
>> interpreter would be a shortcut.
>> 
>
> I think the interpreter wouldn't be that much more easy to get workable, its
> is not just the IDE, but you need to define script->binary interfaces
> anywhere.
>
> But more importantly, it would break compatibility (with delphi, with the
> current situation) horribly, AND make packages dual language, dual-tool
> (pascalscript and native pascal). Despite being static, at least the
> packages system now is both versatile and Delphi pkgs can be ported
> reasonably fast.
>
> IMHO the solution is worse than the problem here.
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>   

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] The Windows daily snapshots

2008-12-05 Thread Boian Mitov
Hi folks,

The Windows daily snapshots list "Updating" for few hours already.
Is there something wrong?

With best regards,
  Boian Mitov
 
---
Mitov Software
www.mitov.com
---___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cocoa bindings

2008-12-05 Thread Mac Programmer
Maybe Florian could elaborate a bit on where the NDA issues lie. With  
developing a compiler, the run-time, the apps themselves?


Sure it's a controlled environment. Welcome to the 21st century. Many  
of us develop software for organizations with extreme restrictions on  
what users can do with their computers. Apple's "review" process  
seems fairly tame by comparison.


I was just seeing if anyone else was interested in joining the party.

http://www.ipodnn.com/articles/08/12/05/300m.app.store.downloads/

It's not like we're getting married to the iPhone apps we develop. I  
think the idea is that you spend maybe a month doing it, then you  
submit it and wait and see if anyone likes it. Apple is assuming all  
of the marketing, credit card processing, currency exchange, hosting,  
etc. as well as a lot of responsibility that you don't have to worry  
about. For that they take 30% and transmit the other 70% into your  
bank account. You can also post free apps and Apple assumes the cost  
of distributing those for free.


One of nice things about an open source project is that it's like  
running a company where you don't have to worry about running a  
business. And posting new versions is like running a store where you  
don't have to worry about whether customers actually buy anything.  
This seems like something kind of in the middle that should have  
quite a bit of appeal to a lot of developers. I predict it's the way  
a lot of software will be developed and marketed in the future.


Thanks.

-Phil

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] unusable/endlessly reloading mainIDE

2008-12-05 Thread Pécsi István
First of all, sry for my English.

Hardver: ASUS EEE 901, OS: UNR Ubuntu 8.10

I have tried to install several versions of Lazarus via Synaptic and  
SourceFourge, nameily 9.22, 9.24 and 9.26. The installation succeeded  
all the time but the IDE is unusable: the mainIDE endlessly reloads  
itself, making the left side of the panel vibrate: the buttons are  
unclikable here, however when I move the cursor above them, the hint  
appers sometimes. The pages appear and usually (but not always)  
clickable, but they are all empty. Since the menus are unopenable too,  
the rebuild of the IDE won't work. The IDE is not closeable with  
hotkeys or with the close button, and I can't switch to any other  
program or window after I launched Lazarus, forcing me to restart the  
machine after each try.

I have absolutely no idea about what could be the trigger of this  
event, so I decided to ask your help to solve it.

I have to mention that I am new to Linux, I was a Windows user recently.

Regards,
Istvan Pecsi


This message was sent using IMP, the Internet Messaging Program.


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-05 Thread Mattias Gaertner
On Fri, 5 Dec 2008 08:59:24 +
Geoffrey Barton <[EMAIL PROTECTED]> wrote:

> Mattias Gartner <[EMAIL PROTECTED]>:
> 
> > I installed the apple developer tools on a 10.5, installed laz and  
> > fpc and
> > compiled lazarus without cwstring unit. The produced LCL  
> > applications run on
> > 10.4 and 10.5. I didn't even alter the linker options or library  
> > paths as
> > described in the wiki.
> > So apparently a simple LCL app does not need much.
> >
> > Maybe some special controls need some special libs?
> 
> 
> If I had installed Lazarus (0.9.26) on a machine running OS 10.4,  
> presumably it would compile and run programs ok?

I don't know. I have no 10.4 to compile. It would be great if someone
can test.


> What I am getting
> at is, if Lazarus installs, runs and compiles on 10.4 then there
> either must be some configuration which gets set somehow, or nothing
> is required. If not, is there a list of what needs changing? I have
> not seen one. Personally, I do not know how to compile Lazarus at
> all, so certainly would not now how to compile without cwstrings, and
> this would be true for anybody meeting lazarus for the first time on
> a recent Mac, which will be either 10.4 or 10.5. I think a lot of
> Macs are still on 10.4.

As Felipe already said:
Formerly compiling on Mac was quite difficult because of the many
linker issues. The FPC team did a great job, so there are only a few
issues left.

As I said:
Normally a user should not need to know about cwstrings. Maybe I will
implement a more 'dynamic' widestring manager. Then this problem will be
gone. If you can't wait and want to have it now, then see the wiki. The
installation page describes how to get the lazarus svn sources and to
compile them.


Mattias
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Making components "interpreted"?

2008-12-05 Thread Marco van de Voort
On Fri, Dec 05, 2008 at 02:36:48PM +0200, Reenen Laurie wrote:
> > I think simply implementing packages would be easier, and also serves other
> > purposes. (it's not just a plugin system for Lazarus, but at the same time
> > for the generated apps)
> 
> Is this in the short / mid term pipeline?

Nobody is currently working on it. There is even a trajectory of research
before it. (to come up with the best approach to implement them on *nix)

http://wiki.freepascal.org/packages
 
> Because I guess that's all I actually wanted, but thought that perhaps an
> interpreter would be a shortcut.

I think the interpreter wouldn't be that much more easy to get workable, its
is not just the IDE, but you need to define script->binary interfaces
anywhere.

But more importantly, it would break compatibility (with delphi, with the
current situation) horribly, AND make packages dual language, dual-tool
(pascalscript and native pascal). Despite being static, at least the
packages system now is both versatile and Delphi pkgs can be ported
reasonably fast.

IMHO the solution is worse than the problem here.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Italian users

2008-12-05 Thread Giuseppe Fava
hi everybody,
I'm thinking about to create an italian lazarus community and I'd like
to know how many Italians are reading this list and how many of these
are interested...

Giuseppe

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Making components "interpreted"?

2008-12-05 Thread Thierry Coq
It's probably not very far away from a technical point of view.
Some time ago, I wrote a piece of code to dynamically load FPC code. So 
the basic mechanics are available.

check this page for an example
http://tcoq.free.fr/Lazarus.html

Best regards,
Thierry

Reenen Laurie wrote:
> Hi,
>
> I am totally just throwing an idea into the bush here (and don't 
> understand the underlying difficulties)... At the moment Lazarus has 
> to be recompiled if we want to add a new component.  I tried that on 
> an old laptop, and Lazarus is not a joke to recompile on older 
> hardware (especially memory wise).
>
> Can't we make components "interpreted" (ala Python) using Pascal 
> Script?  That'll make it a lot easier to add and play around with 
> components.
>
> Would it be doable?
>
> Regards,
> -Reenen
>
>
>
> -- 
> o__
> ,_.>/ _
> (_)_\(_)___
> ...speed is good
> ___
> I believe five out of four people have a problem with fractions.
> 
>
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>   

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Warning: Unreachable code. Why?

2008-12-05 Thread Brad Campbell
Bart wrote:
> In my browserdetection code I have this:
> 
> const
>   OS_HAS_DEFAULT_BROWSER = {$IFDEF WINDOWS}True{$ELSE}False{$ENDIF};
> 
> When I compile my program I get this warning:
> "browserdetection.pp(187,34) Warning: unreachable code"
> 
> line 187 ->
>   if OS_HAS_DEFAULT_BROWSER then Exit;
> (the cursor then blinks on the E in Exit (position 34))
> 
> Why is this?

Because if OS_HAS_DEFAULT_BROWSER = false then the compiler will optimise the 
if call away (as it 
can never actually execute) and the "Exit" can never be reached.

You would be just as effective using

{$IFDEF WINDOWS}
   Exit;
{$ENDIF}


Brad
-- 
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Open URL in "default" browser X-platform

2008-12-05 Thread Bart
Hi there,

Thank you all very much for your input.
I cooked up some code that kind of works AFAICS.
Only tested on my Suse for now, will test under Win9x some other time.

Some questions of a more general nature remain:

1) When I execute the browser, using TProcess.Execute, how do I know
if the process started OK (that is the executable started up at
least)?

2) I found out that if you try to execute a file which does not have
execute permission, the app gets killed, even if this a try..except
block.
"Xlib: unexpected async reply (sequence 0x4cf)!"
Is this normal linux behaviour (I'm a newbie)?

If someone wants to see what I came up with and even test it under
different operating systems and desktop environments, I'll put the
unit on my website.

Bart
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Warning: Unreachable code. Why?

2008-12-05 Thread Bart
In my browserdetection code I have this:

const
  OS_HAS_DEFAULT_BROWSER = {$IFDEF WINDOWS}True{$ELSE}False{$ENDIF};

When I compile my program I get this warning:
"browserdetection.pp(187,34) Warning: unreachable code"

line 187 ->
  if OS_HAS_DEFAULT_BROWSER then Exit;
(the cursor then blinks on the E in Exit (position 34))

Why is this?

Bart
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] KOL-CE How was overlapping menu fixed?

2008-12-05 Thread Felipe Monteiro de Carvalho
Thanks, I managed to get it working.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Open URL in "default" browser X-platform

2008-12-05 Thread Michael Schneider
Am Freitag, 5. Dezember 2008 09:05:42 schrieb Graeme Geldenhuys:

>
> BTW: That application was seriously full of memory leaks. ;-)
>
> Attached is a new version, free of memory leaks including a few bug
> fixes. I have tested it successfully under KDE, Gnome, FVWM and XFCE.
>
>
> Regards,
>   - Graeme -
Sorry,was just a quick and dirty hack . ;)
I hope it's usefull for your fpGUI Project.

Thanks for looking over the code.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Rebuilding LCL with FPC 2.3.1.

2008-12-05 Thread Antonio Sanguigni
>
> Do you really have the latest fpc 2.3.1. AFAIK, these methods, the LCL
> is looking are available since a couple of months.
>
>
You are rigth, Vincent. My blunder :(. Probably I didn't update my snapshot
with svn up, so ... it solved the problem.

Thank you so much.
Antonio


-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.pieroni.biz/edupup
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Portable error messages

2008-12-05 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote:
> On Fri, Dec 5, 2008 at 1:36 AM, Mark Morgan Lloyd
> <[EMAIL PROTECTED]> wrote:
> 
>> SysErrorMessage(GetLastError);
>>
>> If there a portable way (e.g. for Linux and Windows) in FPC?
> 
> There is a SysUtils function called  GetLastOSError().  it's
> cross-platform, but I don't know if it is implemented in all OS's.  I
> know it is for Windows and Unix (which includes Linux).

Thanks Graeme, got it. Looks like the other bit of the puzzle is also 
called SysErrorMessage().

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus snapshot rpms now based on fpc 2.2.3

2008-12-05 Thread Vincent Snijders
Hi,

The Lazarus snapshots are now build on a new machine which runs Ubuntu 
8.10, which has a very recent gtk2 version. To be able to link Lazarus 
on Ubuntu 8.10, fpc 2.2.3 or later is required, therefore the snapshots 
use the fixes_2_2 branch for the moment.

As always, snapshots can be downloaded from:
ftp://ftp.hu.freepascal.org/pub/lazarus/
or
http://www.hu.freepascal.org/lazarus/

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Attach to process...

2008-12-05 Thread Leonardo M. Ramé
Hi, does Lazarus supports a similar action like Delphi's Run -> Attach 
to process...?

I need to debug a Dll loaded by an external app.

-- 
Leonardo M. Ramé


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-05 Thread Leonardo M. Ramé
Thanks Paul!, I've commented out these fields:

#FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#FILEOS VOS__WINDOWS32
#FILETYPE VFT_DLL

and WindRes interpreted it perfectly.

Leonardo M. Ramé

Paul Ishenin escribió:
> Leonardo M. Ramé wrote:
>   
>> It seems I'm placing the {$R myresource.rc} in the wrong place...when I 
>> try to compile I receive this error:
>>
>> windres: plugin.rc:15: syntax error
>> NPDemo.lpr(26,1) Error: Error while compiling resources
>> NPDemo.lpr(26,1) Fatal: There were 1 errors compiling module, stopping
>>   
>> 
> The error is in your .rc file on line 15.
> Try to compile your .rc file with windres to see whether the problem is 
> exactly there. Windres is much stricter than brcc32 or gorc. It is 
> sometimes very difficult to satisfy it.
>
> Best regards,
> Paul Ishenin.
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Rebuilding LCL with FPC 2.3.1.

2008-12-05 Thread Vincent Snijders
Antonio Sanguigni schreef:
> Hi all,
> 
> I'm having some troubles with fpc 2.2.3 of my distro (Arch Linux). I 
> mean, I'm working again on a project that working well on 2.2.0 but now 
> I'm having a lots of *EInvalidOp exceptions* on simple math operations. 
> I saw there is a fpc bug opened for this problem, I tried 
> ClearExceptions statement and to catch them but the exceptions are now 
> on some synapse library functions.
> So, I'm trying fpc 2.3.1 to solve it.
> I downloaded and compiled fpc 2.3.1, redirected ppc386 to new fpc 
> location (/usr/local/lib/fpc/2.31), changed the unit paths in fpc.cfg, I 
> also set up directory in lazarus but when I try to compile it with make 
> bigide I have:
> 
> lresources.pp(152,14) Error: There is no method in an ancestor class to 
> be overridden: "TLRSObjectReader.ReadUnicodeString:UnicodeString"
> lresources.pp(217,15) Error: There is no method in an ancestor class to 
> be overridden: "TLRSObjectWriter.WriteUnicodeString(const UnicodeString)"
> lresources.pp(489,1) Fatal: There were 2 errors compiling module, stopping
> Fatal: Compilation aborted
> make[1]: *** [alllclunits.ppu] Error 1
> make[1]: Leaving directory `/home/antonio/freepascal/lazarus/lcl'
> make: *** [lcl] Error 2
> 
> What can I do ?
> 

Do you really have the latest fpc 2.3.1. AFAIK, these methods, the LCL 
is looking are available since a couple of months.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-05 Thread Paul Ishenin
Leonardo M. Ramé wrote:
> It seems I'm placing the {$R myresource.rc} in the wrong place...when I 
> try to compile I receive this error:
>
> windres: plugin.rc:15: syntax error
> NPDemo.lpr(26,1) Error: Error while compiling resources
> NPDemo.lpr(26,1) Fatal: There were 1 errors compiling module, stopping
>   
The error is in your .rc file on line 15.
Try to compile your .rc file with windres to see whether the problem is 
exactly there. Windres is much stricter than brcc32 or gorc. It is 
sometimes very difficult to satisfy it.

Best regards,
Paul Ishenin.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cocoa bindings

2008-12-05 Thread dmitry boyarintsev
> No, but this is very easy to do. Only a couple of routines changed
> from the ones I use.
Not so easy :)
there's property parsing is missing. There's 3 different type of
properties, so different pascal code should be created in each case.

Since, there's no Objc 2.0 headers for Mac OS X used, i've stopped
developing the parser...
IIRC, i've implemented C function parsing, but have not commited it.

Dmitry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Making components "interpreted"?

2008-12-05 Thread Reenen Laurie
>
> I think simply implementing packages would be easier, and also serves other
> purposes. (it's not just a plugin system for Lazarus, but at the same time
> for the generated apps)


Is this in the short / mid term pipeline?

Because I guess that's all I actually wanted, but thought that perhaps an
interpreter would be a shortcut.

Regards,
-Reenen


-- 
o__
,_.>/ _
(_)_\(_)___
...speed is good
___
I believe five out of four people have a problem with fractions.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cocoa bindings

2008-12-05 Thread Felipe Monteiro de Carvalho
On Fri, Dec 5, 2008 at 5:23 AM, dmitry boyarintsev
<[EMAIL PROTECTED]> wrote:
> Felipe have you updated the objcparser to support ObjC 2.0?

No, but this is very easy to do. Only a couple of routines changed
from the ones I use.

I didn't do it because I only have a 10.4 system which uses Objective-C 1.0

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Making components "interpreted"?

2008-12-05 Thread Marco van de Voort
On Fri, Dec 05, 2008 at 01:00:28PM +0200, Reenen Laurie wrote:
> I am totally just throwing an idea into the bush here (and don't understand
> the underlying difficulties)... At the moment Lazarus has to be recompiled
> if we want to add a new component.  I tried that on an old laptop, and
> Lazarus is not a joke to recompile on older hardware (especially memory
> wise).
> 
> Can't we make components "interpreted" (ala Python) using Pascal Script?

It would require recoding all existing components, since pascal script is
not compatible. Moreover, it only works for components where the designtime
parts don't depend on the runtime parts.

Moreover, at the time this would be ready, 90% of the hardware in question
would already have been thrashed.

> That'll make it a lot easier to add and play around with components.

I think simply implementing packages would be easier, and also serves other
purposes. (it's not just a plugin system for Lazarus, but at the same time
for the generated apps)

It just needs sb that makes a study out of it, and starts
testing/implementing.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Rebuilding LCL with FPC 2.3.1.

2008-12-05 Thread Antonio Sanguigni
Hi all,

I'm having some troubles with fpc 2.2.3 of my distro (Arch Linux). I mean,
I'm working again on a project that working well on 2.2.0 but now I'm having
a lots of *EInvalidOp exceptions* on simple math operations. I saw there is
a fpc bug opened for this problem, I tried ClearExceptions statement and to
catch them but the exceptions are now on some synapse library functions.
So, I'm trying fpc 2.3.1 to solve it.
I downloaded and compiled fpc 2.3.1, redirected ppc386 to new fpc location
(/usr/local/lib/fpc/2.31), changed the unit paths in fpc.cfg, I also set up
directory in lazarus but when I try to compile it with make bigide I have:

lresources.pp(152,14) Error: There is no method in an ancestor class to be
overridden: "TLRSObjectReader.ReadUnicodeString:UnicodeString"
lresources.pp(217,15) Error: There is no method in an ancestor class to be
overridden: "TLRSObjectWriter.WriteUnicodeString(const UnicodeString)"
lresources.pp(489,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `/home/antonio/freepascal/lazarus/lcl'
make: *** [lcl] Error 2

What can I do ?

Thanks
-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.pieroni.biz/edupup
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] italian users

2008-12-05 Thread Giuseppe Fava
hi everybody,
I'm thinking about to create an italian lazarus community and I'd like
to know how many Italians are reading this list and how many of these
are interested...

Giuseppe

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] checklistbox on XP

2008-12-05 Thread Andrea Mauri
The problem is that CheckListBox on WinXP appears bigger on all the
other applications.
So if lazarus want to build applications that looks native checks must
be bigger.
regards,
andrea

Paul Ishenin ha scritto:
> Andrea Mauri wrote:
>   
>> Hi,
>> I am trying to use checklistbox. On linux it seems to be drawn correctly 
>> but not on windows (I am trying it on WinXP).
>> The checkboxes in a checklistbox are smaller that the checkbox of a 
>> TCheckBox (fonts seem to be the same but boxes are smaller). Is it a bug?
>> 
>
> ListBox item height is smaller than checkbox control height. So either 
> checklistbox needs bigger item height or item checks must be smaller. 
> Where is a bug?
>
> Best regards,
> Paul Ishenin.
>
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>   

-- 
Dr. Andrea Mauri, PhD
Milano Chemometrics and QSAR Research Group
Department of Environmental Sciences
University of Milano-Bicocca
P.zza della Scienza, 1
20126 Milano - Italy

Tel: ++39 02 64482801
mailto:[EMAIL PROTECTED]
http://michem.disat.unimib.it/chm/


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Examples of lazDaemon

2008-12-05 Thread User
When I try to compile the cleandirs.lpi application I get the error:

Project Directory Cleaning service raised exception class 'EDaemon' with
message: Options do not allow determining what needs to be done.

Why?



2008/12/5 Michael Van Canneyt <[EMAIL PROTECTED]>

>
>
> On Fri, 5 Dec 2008, User wrote:
>
> > I have installed the lazDaemon package but I do not know how to create a
> > Daemon application. I need some examples.
>
> Check the examples/cleandirs directory for an example.
>
> Michael.
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Examples of lazDaemon

2008-12-05 Thread Michael Van Canneyt


On Fri, 5 Dec 2008, User wrote:

> I have installed the lazDaemon package but I do not know how to create a
> Daemon application. I need some examples.

Check the examples/cleandirs directory for an example. 

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Making components "interpreted"?

2008-12-05 Thread Reenen Laurie
Hi,

I am totally just throwing an idea into the bush here (and don't understand
the underlying difficulties)... At the moment Lazarus has to be recompiled
if we want to add a new component.  I tried that on an old laptop, and
Lazarus is not a joke to recompile on older hardware (especially memory
wise).

Can't we make components "interpreted" (ala Python) using Pascal Script?
That'll make it a lot easier to add and play around with components.

Would it be doable?

Regards,
-Reenen



-- 
o__
,_.>/ _
(_)_\(_)___
...speed is good
___
I believe five out of four people have a problem with fractions.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Examples of lazDaemon

2008-12-05 Thread User
I have installed the lazDaemon package but I do not know how to create a
Daemon application. I need some examples.

Best regards.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-05 Thread Leonardo M. Ramé
It seems I'm placing the {$R myresource.rc} in the wrong place...when I 
try to compile I receive this error:

windres: plugin.rc:15: syntax error
NPDemo.lpr(26,1) Error: Error while compiling resources
NPDemo.lpr(26,1) Fatal: There were 1 errors compiling module, stopping

This is a the code:
--

library NpDemo;
uses
  LResources,
  NPPlugin in 'NPPlugin.pas',
  NPForm in 'NPForm.pas',
  NPSubCls in 'NPSubCls.pas',
  { you can add units after this }
  Unit1;

exports
  NP_GetEntryPoints index 1,
  NP_Initialize index 2,
  NP_Shutdown index 3;

{$R plugin.rc}

begin
end. 

And this is my "plugin.rc" file:


1 VERSIONINFO
FILEVERSION 1, 0, 0, 1
PRODUCTVERSION 1, 0, 0, 1
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
{
 BLOCK "StringFileInfo"
 {
  BLOCK "040904e4"
  {
   VALUE "CompanyName", "Mike Scott Software\000"
   VALUE "FileDescription", "Delphi Netscape Plugin Sample DLL\000"
   VALUE "FileExtents", "mds\000"
   VALUE "FileOpenName", "Mike Scott's plugin file (*.mds)\000"
   VALUE "FileVersion", "1, 0, 0, 1\000"
   VALUE "InternalName", "SamplePlugin\000"
   VALUE "LegalCopyright", "Copyright Mike Scott \251 1995\000"
   VALUE "MIMEType", "application/x-test-plugin\000"
   VALUE "OriginalFilename", "NPDemo.dll\000"
   VALUE "ProductName", "Mike Scott's Delphi Netscape Plugin Sample\000"
   VALUE "ProductVersion", "1, 0, 0, 1\000"
  }
 }

 BLOCK "VarFileInfo"
 {
  VALUE "Translation", 1033, 1252
 }
}


Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Felipe Monteiro de Carvalho escribió:
> Make the entire .rc file yourself. Possibly disable the version info
> taken care by the IDE or create a file with a different name from the
> one the IDE maintains. Link it to your project with {$R myrcfile.rc}
>
>   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-05 Thread Leonardo M. Ramé
Well, no, in Additional Info you can use only a predefined set of fields. It 
could be great if Lazarus allow adding custom fields.

Leonardo.

Graeme Geldenhuys escribió:
> On Fri, Dec 5, 2008 at 5:05 AM, Mac Programmer <[EMAIL PROTECTED]> wrote:
>   
>> In Delphi you can add additional keys to a version info resource in
>> addition to the standard keys, but Lazarus doesn't have a place to
>> define additional keys, only the standard ones.
>> 
>
> Yes it does.  "Project Options" | "Version Information" tab |
> "Additional Info" button
>
>
> Regards,
>   - Graeme -
>
>
> ___
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cocoa bindings

2008-12-05 Thread Gerard N/A
Hi Florian,

> I don't think that the iphone is a threat to WM. It is a treat to Nokia
> or Motorola which produce mobiles for people who don't install
> applications on their phone. Or does anybody expect any serius
> application development for the iphone as long as apple controls if you
> are allowed(!) to distribute your application or not?

As much as I dislike the idea of making software to be sold only
through a channel controled by Apple, the sales seem to be doing
pretty well.
See 
http://www.appleinsider.com/articles/08/10/21/iphone_app_store_continues_to_exceed_itunes_song_sales_growth.html
and 
http://www.roughlydrafted.com/2008/09/12/iphone-apps-store-growing-twice-as-fast-as-itunes-music/
Seen from that prism, serious maybe be defined by "can be sold" + "low
starting investment" + "sales".

Regards,

Gerard
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cocoa bindings

2008-12-05 Thread Geoffrey Barton

On 5 Dec 2008, at 01:56, Felipe Monteiro de Carvalho wrote:

> 2008/12/4 Mac Programmer <[EMAIL PROTECTED]>:
>> It appears as though Felipe has provided a complete set of bindings  
>> for
>> doing Cocoa development.
>
> Yes, that is correct, althougth I would call it complete at the
> moment. It has the potential to be complete. If you need any specific
> classes added to the bindings just ask.

The QuickTime classes would be useful :-)

Geoffrey
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus on Mac OS 10.5, 10.4

2008-12-05 Thread Geoffrey Barton
Mattias Gartner <[EMAIL PROTECTED]>:

> I installed the apple developer tools on a 10.5, installed laz and  
> fpc and
> compiled lazarus without cwstring unit. The produced LCL  
> applications run on
> 10.4 and 10.5. I didn't even alter the linker options or library  
> paths as
> described in the wiki.
> So apparently a simple LCL app does not need much.
>
> Maybe some special controls need some special libs?


If I had installed Lazarus (0.9.26) on a machine running OS 10.4,  
presumably it would compile and run programs ok? What I am getting at  
is, if Lazarus installs, runs and compiles on 10.4 then there either  
must be some configuration which gets set somehow, or nothing is  
required. If not, is there a list of what needs changing? I have not  
seen one. Personally, I do not know how to compile Lazarus at all, so  
certainly would not now how to compile without cwstrings, and this  
would be true for anybody meeting lazarus for the first time on a  
recent Mac, which will be either 10.4 or 10.5. I think a lot of Macs  
are still on 10.4.

Geoffrey
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cocoa bindings

2008-12-05 Thread Florian Klaempfl
Mac Programmer schrieb:
> It appears as though Felipe has provided a complete set of bindings for
> doing Cocoa development. Is it possible to cross-compile against these
> to create an app for the iPhone and iPod Touch? I don't believe the
> version of OS X on those devices includes the Carbon framework, so it'll
> have to be Cocoa.
> 
> It would seem like this is a burgeoning development area that's too big
> to ignore:

Afaik there are still NDA issues.

> 
> http://legacy.macnn.com/articles/08/12/04/iphone.overtakes.win.mo/
> 
> http://blogs.oreilly.com/iphone/2008/11/turning-ideas-into-application.html

I don't think that the iphone is a threat to WM. It is a treat to Nokia
or Motorola which produce mobiles for people who don't install
applications on their phone. Or does anybody expect any serius
application development for the iphone as long as apple controls if you
are allowed(!) to distribute your application or not?
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Open URL in "default" browser X-platform

2008-12-05 Thread Graeme Geldenhuys
2008/12/5 Michael Schneider <[EMAIL PROTECTED]>:
>> Interesting idea and I'm sure I can adapt it to a Free Pascal program.
>> Unfortunately I couldn't get any of those scripts working on my system
>> (Ubuntu 7.10).  :-(
>>
> Q 'n D approach

BTW: That application was seriously full of memory leaks. ;-)

Attached is a new version, free of memory leaks including a few bug
fixes. I have tested it successfully under KDE, Gnome, FVWM and XFCE.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/


sysinfo.tar.gz
Description: GNU Zip compressed data
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LoadLibrary fails on WinCE

2008-12-05 Thread Patrick Chevalley
Your program and dll should not be bigger than 3 or 4 MB if you remove
debug symbol.
There is a "arm-wince-strip.exe" installed with the crosscompiler.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus