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

David Creelman dave at geko.net.au
Sat Jun 29 19:34:35 EDT 2002


Here is the result of ppc386 -vt bogus

[davidc at CPE-144-132-157-191 davidc]$ fpc -vt bogus
Free Pascal Compiler version 1.0.6 [2002/04/30] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Compiler: /usr/local/lib/fpc/1.0.6/ppc386
Target OS: Linux for i386
Using executable path: /usr/local/lib/fpc/1.0.6/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
Using unit path: /usr/local/lib/fpc/1.0.6/
Using library path: /lib/
Using library path: /usr/lib/
Using library path: /usr/X11R6/lib/
Using library path: /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/
Using library path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
Using library path: /usr/local/lib/fpc/1.0.6/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
Using object path: /usr/local/lib/fpc/1.0.6/
Compiling bogus
Fatal: Can't open file bogus

There is no gtk here. What do I change to get it to find it ?

This is an excerpt from /etc/fpc.cfg, looking at the -Fu lines.
# searchpath for units and other system dependent things
-Fu/usr/local/lib/fpc/1.0.6/units/$target
-Fu/usr/local/lib/fpc/1.0.6/units/$target/*
-Fu/usr/local/lib/fpc/1.0.6/units/$target/rtl
#-Fu~/fpc/packages/*;~/fpc/rtl/linux

# searchpath for libraries
-Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96
#-Fl/pp/lib
#-Fl/lib;/usr/lib

The $target/* looks like it should get to the gtk directory, don't know
why it doesn't...

Cheers
DC

On Sun, 2002-06-30 at 01:33, Mattias Gaertner wrote:
> On 29 Jun 2002 21:55:38 +1000
> David Creelman <dave at geko.net.au> wrote:
> 
> > Sorry,
> > 
> > pressed the wrong button....
> > 
> > last part of the output of make OPT=-vat
> > 
> > [...]
> > Unitsearch: gtkint.ppu
> > [...]
> > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.ppu
> > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.pp
> > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.pas
> > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.ppu
> > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.pp
> > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.pas
> > Unitsearch: gtk.ppu
> > Unitsearch: gtk.pp
> > Unitsearch: gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.pas
> > Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.ppu
> > Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.pp
> > Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.pas
> > gtkint.pp(74,11) Fatal: Can't find unit GTK
> 
> These are only the unit paths provided by the Makefile. Where are the standard unitpaths to the fpc packages?
> Normally the following line in your /etc/fpc.cfg should add them:
> -Fu/usr/lib/fpc/1.0.6/units/$target/*
> 
> Can you plz make sure that your standard unitpath is setup correct. Plz invoke:
> ppc386 -vt bogus
> Does it contain the /usr/local/lib/fpc/1.0.6/units/linux/gtk path?
> 
> 
> Mattias
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus







More information about the Lazarus mailing list