Recent

Author Topic: Getting ZeosLib and/or lazReport to work: Path settings?  (Read 7410 times)

Chavoux

  • Newbie
  • Posts: 5
Getting ZeosLib and/or lazReport to work: Path settings?
« on: November 21, 2006, 02:10:54 am »
Hi

I installed (from source) fpc-2.0.4 and Lazarus v0.9.20 beta without problems. All the extra lazarus packages (in ~/lazarus/lazarus/components) also installed without problems and I can use the SQLdb components without problems. (On Debian Sarge)

I installed ZeosLib and lazReport and both packages appear in the IDE. However, as soon as I place any of the components on a form in my project, I get a compile error: "Fatal: Can't find unit ZConnection" ("Fatal: Can't find unit LR_DBSet" for lazReport). I added "~/src/lazreport/source/" and "~/src/ZEOSDBO-6.6.0-beta/src/component/" to Project->Compiler Options->Other Unit Files (-Fu). Still the same error! (The paths are correct, because if I just copy all the files in these directories to the source directory of the project, it compiles! Obviously I don't want to do *that* for each new project! :( )

The relevant part of /etc/fpc.cfg:
Code: [Select]

# searchpath for includefiles
#-Fi/pp/inc;/pp/rtl/inc

# searchpath for units and other system dependent things
-Fu/usr/share/lazarus/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/share/lazarus/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/share/lazarus/lib/fpc/$fpcversion/units/$fpctarget/rtl
#-Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~/fpc/rtl/units/

# searchpath for libraries
-Fl/usr/lib/gcc-lib/i486-linux/3.3.5
#-Fl/pp/lib
#-Fl/lib;/usr/lib

(Oh, and ~/lazarus is just a link to /usr/share/lazarus)
One other setting that (I think) might also have an influence, is that I set the unit output directory (-FU) to /usr/share/lazarus/lazarus/units (~/lazarus/lazarus/units).

So what am I missing/doing wrong?

Thanks
Chavoux

 

TinyPortal © 2005-2018