[Lazarus] Project LPI Files and Platforms

Mehmet Erol Sanliturk sanliturk at ttmail.com
Sun May 17 13:31:33 CEST 2009


Mehmet Erol Sanliturk wrote:
> Mattias Gaertner wrote:
>> On Sat, 16 May 2009 06:33:00 -0400
>> Mehmet Erol Sanliturk <sanliturk at ttmail.com> wrote:
>>
>>> [...]
> 
> 
>>
>> I thought compilation worked. Maybe this is another problem.
>>
>>
> 
> 
>>> The only difference is LPI file .
>>
>> What is the difference between the two lpi files?
>> Can you send me the two lpi files?
>>
>>  
>>> I thought reporting this experience would be useful .
>>
>> Yes
>>
>> Mattias
>>
> 
> I am continuously installing operating systems and last Lazarus snapshots .
> 
> To send the above files
> I searched the existent directories but all of the previous files were 
> deleted due to renewed operating system installations .
> 
> On this event , I generated a new form with many components in CentOS 
> 5.3 and compiled it successfully .
> 
> Into XP Home I have installed Lazarus and compiled my form with nearly 
> all components successfully .
> 
>   Version # : 0.9.26.3 beta
>   Date : 2009-04-26
>   SVN Revision : 19625
>   i386-win32-win32/win64
> 
> 
> 
> I have copied only project1.( lpi , lpr ) , unit1. ( pas , lfm , lrs )
> files to a USB stick and copied to CentOS 5.3 computer .
> It compiled successfully .
> 
>    Version # : 0.9.27 beta
>    Date : 2009-04-24
>    FPC Version : 2.2.4
>    SVN Revisison : 19594
>    x86-64-linux-gtk 2 ( beta )
> 
> 
> I copied the above files into Kubuntu 9.04 and they compiled again 
> successfully .
> 
> 
>    Version # : 0.9.26-4 beta
>    Date : 2009-01-08
>    FPC Version : 2.2.2
>    SVN Revisison : 16881
>    x86-64-linux-gtk
> 
> 
> I copied the above files into FreeBSD 7.1-Stable and they compiled again 
> successfully .
> 
>    Version # : 0.9.26 beta
>    Date : 2009-04-05
>    FPC Version : 2.2.2
>    SVN Revisison : Unknown
>    i386-freebsd-gtk
> 
> 
> Really I am very sorry about my initial message without testing latest 
> Lazarus versions .
> 
> 

I could be able to generate the errors I have mentioned in my first 
message .

Those errors are caused by paths stored into LPI files about user 
program when compilation in Windows requires them or perhaps 
unnecessarily specified in IDE by the user .

When such an LPI file is loaded by Lazarus in another operating system 
it is giving an error message about a Lazarus supplied unit is not found
instead of saying a path is encountered which does not exist in this 
platform .


The above tests are performed with an LPI file which it does not contain 
any Windows related path .

After sending the above message I searched my other project LPI files 
and found one having Windows related paths .

When this file is submitted to Lazarus in CentOS 5.3 , it generated the 
error I mentioned in my first message .

At this point , I want to tell about my another experience nearly one 
year ago.
During my compilations in Windows with FPC I noticed that when a path is 
incorrectly specified in an fpc.cfg file , the compiler is saying that a 
source is not found although the source is present . After traversing 
compiler sources I understood that the real error is incorrectly 
specified path in fpc.cfg file . I included statements about -Fu , -Fi 
path evaluation parts to check whether the specified path exists or not 
during loading of fpc.cfg . When a path does not exist , compiler issues 
  an error .

This feature is really a life saver for such cases . I did not submit 
any bug report with the fear that such an idea will not be welcomed 
because it will be considered an unnecessary feature request . Now I 
think that this was a real mistake .


As a conclusion I may say that the paths themselves should be checked at 
points where they are given .

Thank you very much .

Mehmet Erol Sanliturk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: project1.lpi
Type: text/xml
Size: 6573 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20090517/d7388277/attachment-0008.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: project1-having-Win-paths.lpi
Type: text/xml
Size: 3839 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20090517/d7388277/attachment-0009.xml>


More information about the Lazarus mailing list