Sign in Join

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

Mailing lists / lazarus / 2002-05

compiling error -- can not find the unit GTK

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Alexander Reiter

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 ?

thanks a lot in advance.

best regards, alex

here is the error message during compiling:

/usr/bin/ppc386 -gl -Fu../../lcl/units/gtk -Fu../../lcl/units -Fu. -Fu/usr/lib/fpc/1.0.6/units/linux/rtl
-Fu/usr/lib/fpc/1.0.6/units/linux/paszlib
-Fu/usr/lib/fpc/1.0.6/units/linux/inet -Fu/usr/lib/fpc/1.0.6/units/linux/fcl -Fu/usr/lib/fpc/1.0.6/units/linux/regexpr
-Fu/usr/lib/fpc/1.0.6/units/linux/mysql
-Fu/usr/lib/fpc/1.0.6/units/linux/ibase -FU../units -Fl/usr/lib/gcc-lib/i486-suse-linux/2.95.3 -Fl/usr/X11R6/lib/Xaw95 -Fl/usr/X11R6/lib/Xaw3d -Fl/usr/X11R6/lib -Fl/usr/i486-linux/lib -Fl/usr/i486-linux-libc5/lib=libc5 -Fl/usr/i486-linux-libc6/lib=libc6 -Fl/usr/i486-linuxaout/lib -Fl/usr/i386-suse-linux/lib -Fl/usr/local/lib -Fl/usr/openwin/lib -Fl/opt/kde/lib -Fl/opt/kde2/lib -Fl/opt/kde3/lib -Fl/opt/gnome/lib -Fl/opt/gnome2/lib -di386 allunits.pp Free Pascal Compiler version 1.0.6-beta [2002/04/30] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling allunits.pp
gtkint.pp(17,16) Fatal: Can't find unit GTK
make[2]: *** [allunits.ppu] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis
�/opt/lazarus/lazarus/components/synedit�
make[1]: *** [synedit_all] Fehler 2
make[1]: Verlassen des Verzeichnisses Verzeichnis
�/opt/lazarus/lazarus/components�
make: *** [components] Fehler 2

Reply by email

Mattias Gaertner
to Alexander Reiter
Show quoted text 8 lines
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

Reply by email