[lazarus] compiling error -- can not find the unit GTK

Mattias Gaertner nc-gaertnma at netcologne.de
Tue May 14 03:39:35 EDT 2002


On Mon, 13 May 2002 22:47:36 +0200
Alexander Reiter <r.alex at utanet.at> wrote:

> hello all,
> 
>   i have changed the compiler from 1.0.6-beta. but since this time, i got
>   an error message during compiling the latest cvs-source of lazarus.
>  
>   where can i fix the path /usr/lib/fpc/1.0.6/linux/gtk so that the 
>   compiler search always in this directory ? i have already change the
>   fpc.cfg file, but it seems not used during compiling lazarus ?

Check if there is a /etc/fpc.cfg and no old /etc/ppc386.cfg.

Check if the fpc.cfg contains the following lines:
      -Fu/usr/lib/fpc/1.0.6/units/$target
      -Fu/usr/lib/fpc/1.0.6/units/$target/*
      -Fu/usr/lib/fpc/1.0.6/units/$target/rtl

Check that the /etc/fpc.cfg does not contain search paths to the lcl source files (.pp, .pas):
      forbidden: -Fu(lazarus_directory)/lcl
      forbidden: -Fu(lazarus_directory)/lcl/interfaces/gtk

If you want to add the lcl to your fpc.cfg, make sure that the two paths looks like the following and are placed after the above fpc lib paths:
      -Fu(lazarus_directory)/lcl/units
      -Fu(lazarus_directory)/lcl/units/gtk

And last but not least:
After updating the compiler, use 'make clean all' in the lazarus dir.


Mattias






More information about the Lazarus mailing list