[Lazarus] Cannot find inc file from a registered package...

Bo Berglund bo.berglund at gmail.com
Wed Jun 24 10:11:47 CEST 2020

On Tue, 23 Jun 2020 23:55:49 +0200, Mattias Gaertner via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>On Tue, 23 Jun 2020 22:40:24 +0200
>Bo Berglund via lazarus <lazarus at lists.lazarus-ide.org> wrote:
>> On Tue, 23 Jun 2020 22:40:19 +0300, Juha Manninen via lazarus
>> <lazarus at lists.lazarus-ide.org> wrote:
>> >On Tue, Jun 23, 2020 at 10:10 PM Bo Berglund via lazarus
>> ><lazarus at lists.lazarus-ide.org> wrote:  
>> >> I have added indylaz as a "Required Package" for the project but it
>> >> does not solve this problem even though it solved a few other Indy
>> >> related errors.  
>> >
>> >Is the path containing the include file (Indy10\System or similar) in
>> >Indy package's include search path?
>> >If not then please add it.  
>> How can I see what paths are part of the indylaz package?
>> I just installed it using OnLine Package Manager so I have no idea
>> where it is located.
>Package / Open Loaded Package 
>Choose the Indy package.
>Then a package editor is opened.
>Click "Options" to show the package options
>Compiler Options / Path / Include files

Will that then have to be modified if I move the project to a Linux
box but with the same fpc/lazarus versions?

It seems like the system should keep track of which package is in use,
maybe by utilizing an environment variable like $INDY10 or $INDYLAZ.
Then one could enter a path in the project options/compiler/paths
using that env var?

Concerning the command in question I really do not understand why it
is there in the first place, so I commented it out and then the
"Run/Quick Compile" continued and stopped at another point further

I checked back as far as I could get and found it still in sources
from 2013. But we have switched from CVS to Subversion in the meantime
and I cannot get any history further back. The file I found from 2013
was at CVS rev 1.78 so there had been a lot of work done on that file.

Would have been intersting to find out when and why it was added...

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list