Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-05

Fatal: Can't open include file "lcl_defines.inc"

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuliano Colla

As of Lazarus 1.3 r45254M FPC 2.6.2 i386-linux-gtk 2 I'm unable to compile a package which used to compile without troubles.

The error shown is:
/home/colla/Applicazioni/lazarus/lcl/lclproc.pas(22,2) Fatal: Can't open include file "lcl_defines.inc"

Adding

$(LazarusDir)/lcl/include

to the paths in the package compiler options doesn't help. I also tried adding the lcl/include path to the open project compiler options (just in case) but no change.

Editing the lclproc file to
{$I include/lcl_defines.inc}
only takes one step forward: lclproc.pas compiles, but next file which includes from lcl/include doesn't.

The full IDE compilation, if I don't include my custom package, is carried on without troubles.

Any hint?

Giuliano

Reply by email

Giuliano Colla
to Giuliano Colla

Il 31/05/2014 14:03, Giuliano Colla ha scritto:

As of Lazarus 1.3 r45254M FPC 2.6.2 i386-linux-gtk 2 I'm unable to compile a package which used to compile without troubles.

For some obscure reason, with the svn update I had somehow put into play a stale .lpk file, while I believed not to have changed anything. Using the proper lpk, everything is ok.

Sorry for the fuss,

Giuliano

Reply by email

Mattias Gaertner
to Giuliano Colla: As of Lazarus 1.3 r45254M FPC 2.6.2 i386-linux-gtk 2 I'm unable to compile a package…
Show quoted text 10 lines
As of Lazarus 1.3 r45254M FPC 2.6.2 i386-linux-gtk 2 I'm unable to compile a package which used to compile without troubles. The error shown is: /home/colla/Applicazioni/lazarus/lcl/lclproc.pas(22,2) Fatal: Can't open include file "lcl_defines.inc" Adding $(LazarusDir)/lcl/include

Never add search paths pointing to directories of packages. Use the package instead.

Show quoted text 6 lines
to the paths in the package compiler options doesn't help. I also tried adding the lcl/include path to the open project compiler options (just in case) but no change. Editing the lclproc file to {$I include/lcl_defines.inc}

Never do that either, because of that:

Show quoted text 7 lines
only takes one step forward: lclproc.pas compiles, but next file which includes from lcl/include doesn't. The full IDE compilation, if I don't include my custom package, is carried on without troubles. Any hint?

Maybe your custom package is misconfigured. Remove all search paths in your package and add "IDEIntf" to the dependencies instead.

Mattias

Reply by email