Burkhard Carstens | 1 Feb 15:08
Picon

Re: how to add a package via commandline

Am Mittwoch, 31. Januar 2007 19:29 schrieb Mattias Gaertner:
> On Wed, 31 Jan 2007 16:39:42 +0100
>
> Burkhard Carstens <fpc <at> bcsoft.de> wrote:
> > Am Donnerstag, 18. Januar 2007 19:43 schrieb Mattias Gaertner:
> > > On Thu, 18 Jan 2007 18:35:46 +0100
> > >
> > > Burkhard Carstens <fpc <at> bcsoft.de> wrote:
> > > > I'd like to build a lazarus rpm containing all the components,
> > > > I need (BigIDE + indy, glscene).
> > > >
> > > > Before diving into the rpm building trouble, I first try to
> > > > figure out, how I could install a package into lazarus without
> > > > using the ide.
> > > >
> > > > With lazbuild, I can compile the package, which is fine. But
> > > > how can I recompile lazarus to include the package?
> > > > Do I have to deal with idemake.cfg and staticpackages.inc
> > > > manually?
> > > >
> > > > For my special needs, I could of course create the correct
> > > > files and do a "make ide -w OPT=@/etc/lazarus/idemake.cfg" but
> > > > a commandline tool (or switch for lazbuild), that enables
> > > > installation/uninstallation of packages would be really
> > > > helpfull. So the question: Is there allready some (hidden)
> > > > feature to do this?
> > >
> > > No, there is none yet.
> > > You have to fiddle with idemake.cfg and staticpackages.inc (easy
> > > for one package, but not flexible) or extend lazbuild (difficult,
(Continue reading)

Lee Jenkins | 1 Feb 16:31

Re: how to add a package via commandline

Burkhard Carstens wrote:
> Am Mittwoch, 31. Januar 2007 19:29 schrieb Mattias Gaertner:
>> On Wed, 31 Jan 2007 16:39:42 +0100
>>
>> Burkhard Carstens <fpc <at> bcsoft.de> wrote:
>>> Am Donnerstag, 18. Januar 2007 19:43 schrieb Mattias Gaertner:
>>>> On Thu, 18 Jan 2007 18:35:46 +0100
>>>>
>>>> Burkhard Carstens <fpc <at> bcsoft.de> wrote:
>>>>> I'd like to build a lazarus rpm containing all the components,
>>>>> I need (BigIDE + indy, glscene).
>>>>>
>>>>> Before diving into the rpm building trouble, I first try to
>>>>> figure out, how I could install a package into lazarus without
>>>>> using the ide.
>>>>>
>>>>> With lazbuild, I can compile the package, which is fine. But
>>>>> how can I recompile lazarus to include the package?
>>>>> Do I have to deal with idemake.cfg and staticpackages.inc
>>>>> manually?
>>>>>
>>>>> For my special needs, I could of course create the correct
>>>>> files and do a "make ide -w OPT=@/etc/lazarus/idemake.cfg" but
>>>>> a commandline tool (or switch for lazbuild), that enables
>>>>> installation/uninstallation of packages would be really
>>>>> helpfull. So the question: Is there allready some (hidden)
>>>>> feature to do this?
>>>> No, there is none yet.
>>>> You have to fiddle with idemake.cfg and staticpackages.inc (easy
>>>> for one package, but not flexible) or extend lazbuild (difficult,
(Continue reading)

Lee Jenkins | 1 Feb 18:41

FP/Delphi compatible Encryption and Zip Libraries?


Hi all,

Can anyone recommend an encryption and zip library/unit that works with 
both FP and delphi?

The zlib stuff should work well between them I would imagine.

I need to encrypt and compress plain xml packets between two endpoints.

Thanks!

--

-- 

Warm Regards,

Lee

Vincent Snijders | 1 Feb 18:56
Picon
Favicon

Re: FP/Delphi compatible Encryption and Zip Libraries?

Lee Jenkins schreef:
> 
> Hi all,
> 
> Can anyone recommend an encryption and zip library/unit that works with 
> both FP and delphi?
> 
> The zlib stuff should work well between them I would imagine.
> 
> I need to encrypt and compress plain xml packets between two endpoints.
> 

One option is DCPCrupt: http://wiki.lazarus.freepascal.org/DCPcrypt

I never used it though.

Vincent

Mattias Gaertner | 1 Feb 20:08
Picon
Favicon

Re: how to add a package via commandline

On Thu, 1 Feb 2007 15:08:42 +0100
Burkhard Carstens <fpc <at> bcsoft.de> wrote:

> Am Mittwoch, 31. Januar 2007 19:29 schrieb Mattias Gaertner:
> > On Wed, 31 Jan 2007 16:39:42 +0100
> >
> > Burkhard Carstens <fpc <at> bcsoft.de> wrote:
> > > Am Donnerstag, 18. Januar 2007 19:43 schrieb Mattias Gaertner:
> > > > On Thu, 18 Jan 2007 18:35:46 +0100
> > > >
> > > > Burkhard Carstens <fpc <at> bcsoft.de> wrote:
> > > > > I'd like to build a lazarus rpm containing all the components,
> > > > > I need (BigIDE + indy, glscene).
> > > > >
> > > > > Before diving into the rpm building trouble, I first try to
> > > > > figure out, how I could install a package into lazarus without
> > > > > using the ide.
> > > > >
> > > > > With lazbuild, I can compile the package, which is fine. But
> > > > > how can I recompile lazarus to include the package?
> > > > > Do I have to deal with idemake.cfg and staticpackages.inc
> > > > > manually?
> > > > >
> > > > > For my special needs, I could of course create the correct
> > > > > files and do a "make ide -w OPT=@/etc/lazarus/idemake.cfg" but
> > > > > a commandline tool (or switch for lazbuild), that enables
> > > > > installation/uninstallation of packages would be really
> > > > > helpfull. So the question: Is there allready some (hidden)
> > > > > feature to do this?
> > > >
(Continue reading)

Burkhard Carstens | 1 Feb 20:49
Picon

Re: how to add a package via commandline


> > Now heading for the next step: getting this done on a fresh system,
> > i.e. without the allready existing ~/.lazarus/*
>
> 1. Add files to packager/globallinks/ for glscene and indy (easy).
> 2. Setup the ~/.lazarus/staticpackages.inc (easy)
> 3. Setup the ~/.lazarus/idemake.cfg (this is the difficult part)
>
> 1. is needed, so the IDE can find the non lazarus .lpk files.
> 2. is needed for static packages. There is some progress in dynamic
> packages for windows and linux, but I don't know when it will be
> complete enough. So we have to live with static packages for now.
> 3. These are the compiler parameters, mainly the ppu search paths. If
> you have a fixed list, you can copy it and adjust the paths.

yea, that's what I allready did. works.

> If you
> want a generic solution, extend lazbuild.

That's where I am right now. Sholdn't be that hard, because most stuff 
is allready in place: it builds packages, even builds the needed 
packages. That means all the package dependency stuff etc. is allready 
in there, only missing part is creation of the staticpackages.inc and 
idemake.cfg which also "must be somewhere" because lazarus does it.

Tried to figure out, what happens when the "install" button of 
PackageEditor is clicked.. but hey, that's not so easy to follow ;-)

TPkgManager.DoInstallPackage might be the thing I have to duplicate in 
(Continue reading)

Graeme Geldenhuys | 2 Feb 08:30
Picon
Gravatar

Re: FP/Delphi compatible Encryption and Zip Libraries?

On 2/1/07, Vincent Snijders <vsnijders <at> quicknet.nl> wrote:

> > The zlib stuff should work well between them I would imagine.

We use zlib for compression under both Delphi and Lazarus.  No problems at all.

> One option is DCPCrupt: http://wiki.lazarus.freepascal.org/DCPcrypt

And we use DCPCrypt for compression under both (same product as the
zlib one) Delphi and Lazarus.  Again, no problems.

--

-- 
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'

Mattias Gaertner | 2 Feb 11:53
Picon
Favicon

Re: Expert for Lazarus

On Sun, 28 Jan 2007 11:50:47 -0200
Joao Morais <post <at> joaomorais.com.br> wrote:

> 
> Hello,
> 
> About changing source code, afaics I have access to an specific
> source file using 
> srceditorintf.SourceEditorWindow.SourceEditorIntfWithFileName('someunit.pas').
> 
> Inside the TSourceEditorInterface class I have tons of methods used
> to change the sources. Please point out some hints that I can follow
> to make safe changes to them.

They are safe. 
Maybe with the exception: Replacing text, moves source marks.

 
> About events, where should I look for beforecompile, aftersave and 
> another ide events?

They don't exist yet.
What events do you need exactly?
'BeforeCompile' is too unspecific, because there are dozens actions
between pressing F9 and the real execution of the compiler (e.g. state
checks, auto saves, file checks, auto updates of resource files,
dependency checks, saves, builds, running before compilation tools).

Mattias

(Continue reading)

Joao Morais | 2 Feb 15:05
Picon

Re: Expert for Lazarus

Mattias Gaertner wrote:

> On Sun, 28 Jan 2007 11:50:47 -0200
> Joao Morais <post <at> joaomorais.com.br> wrote:
> 
>> Hello,
>>
>> About changing source code, afaics I have access to an specific
>> source file using 
>> srceditorintf.SourceEditorWindow.SourceEditorIntfWithFileName('someunit.pas').
>>
>> Inside the TSourceEditorInterface class I have tons of methods used
>> to change the sources. Please point out some hints that I can follow
>> to make safe changes to them.
> 
> They are safe. 
> Maybe with the exception: Replacing text, moves source marks.

Let's say I need to include one line with "This new line" and remove 
three lines. I can use Position or Line+Column values.

The line need to be included between lines 5 and 6, or after the 
position 120.

The lines I need to remove are 12, 13 and 14 (now 13, 14 and 15 because 
of the new line). If using the Position approach, characters between 
position 250 and 300, including the last breakline (now between 264 and 
314 because of the new line + #10).

>> About events, where should I look for beforecompile, aftersave and 
(Continue reading)

Bogusław Brandys | 2 Feb 15:14
Picon
Favicon

Re: Debugger and IDE workings

Alexander Todorov wrote:
> On 1/31/07, Marc Weustink <marc.weustink <at> cuperus.nl> wrote:
>> 1) the ide tells gdb: step
>> 2) then gdb does its things and stops somewhere.
>> 3) the ide asks gdb: where are you
>> 4) gdb responds: I'm in file abc.xyz at line 123
>> 5) the ide highlights that line.
>>
>> gdb doesn't know this info by itself, but by the debuginfo present in
>> the executable generated by fpc.
>>
>>
>> > example:
>> >  procedure MyProc;
>> > 1  begin
>> > 2     writeln;
>> > 3  end;
>> >
>> > The highlited line moves like this: 1-2-1-3
>>
>> I don't think this is exacly happening for this piece of code, but it
>> will when using a string as variable (since that needs
>> initialization/finalization code).
> 
> The example sequence I provided is for reference.
> 
>>
>> The steps are:
>> 1) initialize local variables
>> 2) execute
(Continue reading)


Gmane