[lazarus] Newbie Q : Can't find classes.pas...

Marc Weustink marc at dommelstein.net
Fri Jun 28 13:24:40 EDT 2002


At 01:35 29/06/2002 +1000, David Creelman wrote:
>Hi Mattias,
>
>Here it is.
>
>The only change I made was in Makefile.fpc to try to get it to find gtk
>
>         unitdir=lcl/units /usr/lib/fpc/1.0.6/units/linux/gtk lcl/u....
>
>This didn't work,

Luckely it didn't :-) (you need to run fpcmake after changing Mekefile.fpc)

gtk shouldn't be needed here

>copying the ppu did. I'm using the 1.0.6 fpc rpm and
>downloaded and installed the source rpm as well.

Hmm..... from your output:

>make[2]: Entering directory `/home/davidc/develop/lazarus/components/synedit'
>/bin/rm -f ../units/allunits.ppu
>/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/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib 
>-Fl/usr/lib/qt2/lib -Fl/usr/local/lib/wine -Fl/usr/local/lib -di386 allunits.pp
>Free Pascal Compiler version 1.0.6 [2002/05/23] for i386
>Copyright (c) 1993-2002 by Florian Klaempfl
>Target OS: Linux for i386
>Compiling allunits.pp
>Compiling syntextdrawer.pp
>gtkint.pp(74,11) Fatal: Can't find unit GTK

Why is gtkint complaining here...  gtkint is part of the interface for GTK. 
This directory is part of components and should be independent of the 
platform. Thats why there is nu reference to a gtk dir.
It seems to me that somehow there is a platform dependency in SynEdit which 
shouldn't be there.

Marc






More information about the Lazarus mailing list