[Lazarus] Indy compilation problem revisited.

Frank Church vfclists at gmail.com
Wed Mar 23 21:47:36 CET 2011


On 23 March 2011 20:43, Frank Church <vfclists at gmail.com> wrote:

>
>
> On 23 March 2011 16:20, Frank Church <vfclists at gmail.com> wrote:
>
>>
>>
>> On 22 March 2011 18:15, Mattias Gaertner <nc-gaertnma at netcologne.de>wrote:
>>
>>> On Wed, 23 Mar 2011 00:44:43 +1100
>>> Peter Williams <pewilliams2010 at live.com> wrote:
>>>
>>> >[...]
>>> > >Recompiling IdStreamVCL, checksum changed for IdGlobal
>>> > >IdStreamVCL.pas(13,20) Fatal: Can't find unit IdStreamVCL used by
>>> IdStream
>>>
>>> You can try compiling the Indy package with -Ur. Add this to the
>>> compiler options of the Indy package.
>>>
>>>
>>> > >What do they actually mean, in particular which process is emitting
>>> the message Fatal: Can't find unit IdStreamVCL used by IdStream?
>>>
>>> Process: fpc
>>> Meaning: a ppu file is outdated. There is a bug in fpc that can trigger
>>> this. There are several ways to work around the bug. One is to use -Ur.
>>>
>>>
>>>
>> I will test your suggestion. I have always suspected that there some bugs
>> in FPC that Indy triggers.
>>
>>
>
>

PS. I missed out the relevant error message:
Recompiling indylaz, checksum changed for IdAbout
indylaz.pas(79,12) Fatal: Can't find unit indylaz used by Lazarus



>
> After trying it out it now compiling is okay, but when it comes to
> registration it stops on the file indylaz.pas, which is the file that
> registers the components.
>
> It is sensible or the norm for the unit that does the registration to have
> the same base name of the project file?
>
> ie indylaz.pas and indylaz.lpk
>
> The file also appears to be created at compile time
>
>
>> { This file was automatically created by Lazarus. do not edit!
>>   This source is only used to compile and install the package.
>>  }
>>
>> unit indylaz;
>>
>> interface
>>
>> uses
>>     IdAbout, IdAboutVCL, IdAntiFreeze, IdCoreDsnRegister, IdDsnBaseCmpEdt,
>>
>>   IdDsnCoreResourceStrings, IdDsnPropEdBinding, IdDsnPropEdBindingVCL,
>>   IdDsnRegister, IdDsnResourceStrings, IdDsnSASLListEditor,
>>   IdDsnSASLListEditorForm, IdDsnSASLListEditorFormVCL, IdRegister,
>>   IdRegisterCore, LazarusPackageIntf;
>>
>> implementation
>>
>> procedure Register;
>> begin
>>   RegisterUnit('IdCoreDsnRegister', @IdCoreDsnRegister.Register);
>>   RegisterUnit('IdDsnRegister', @IdDsnRegister.Register);
>>   RegisterUnit('IdRegister', @IdRegister.Register);
>>   RegisterUnit('IdRegisterCore', @IdRegisterCore.Register);
>> end;
>>
>> initialization
>>   RegisterPackage('indylaz', @Register);
>> end.
>>
>
>
>
>
>
>
>>  Mattias
>>>
>>> --
>>> _______________________________________________
>>> Lazarus mailing list
>>> Lazarus at lists.lazarus.freepascal.org
>>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>>
>>
>>
>>
>> --
>> Frank Church
>>
>> =======================
>> http://devblog.brahmancreations.com
>>
>
>
>
> --
> Frank Church
>
> =======================
> http://devblog.brahmancreations.com
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110323/5b95e9a4/attachment-0003.html>


More information about the Lazarus mailing list