When I compile a very basic program is works Lazarus works fine. When I add a form I get…
Thanks
I will try that when I get home.
Rob

Mailing lists / lazarus / 2002-01
3 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
When I compile a very basic program is works Lazarus works fine. When I add a form I get…
Thanks
I will try that when I get home.
Rob
When I compile a very basic program is works Lazarus works fine. When I add a form I get…
DON NOT add any source path of the LCL to your search paths. (e.g. $(LazarusDir)/lcl or $(LazarusDir)/lcl/interfaces/gtk). The compiler will try to recompile the LCL and will probably fail.
Just add the two ppu paths to your search path:
1. /home/rob/lazarus/lazarus/lcl/units
2. /home/rob/lazarus/lazarus/lcl/units/gtk
There are 3 ways of adding search paths:
A.
In the IDE you can simply set
Run -> Compiler Options -> Search Paths -> Other unit files to
$(LazarusDir)/lcl/units;$(LazarusDir)/lcl/units/gtk
This will add the path for the current project. The IDE will set this path automatically, if you create a new project of type 'Application'.
B.
At the command line you can use:
ppc386 -Fu/home/rob/lazarus/lazarus/lcl/units -Fu/home/rob/lazarus/lazarus/lcl/units/gtk project1.pas
C.
Or you can add the path for all your projects, by adding the path to the compiler search path: In the /etc/fpc.cfg add these two lines:
-Fu/home/rob/lazarus/lazarus/lcl/units
-Fu/home/rob/lazarus/lazarus/lcl/units/gtk
Mattias
When I compile a very basic program is works Lazarus works fine. When I add a form I get the following error at the end of this email.
(I am compiling in Linux)
/home/rob/lazarus/lazarus/lcl/interfaces/gtk/interfaces.pp
was added to my project in this case, but the compiler does not seem to be able to find it.
I also added
/home/rob/lazarus/lazarus/lcl/interfaces/gtk/
to my Libraries but the compiler still does not seem to find the interfaces.pp
I was looking through the mailing list but did find any thing there to help me.
This seems like a simple task is there there a tutorial or some documentation I can look at?
[TCompiler.Compile] CmdLine="/usr/bin/ppc386 -B -Rintel -S2cgi -Ch8000000 -Og1p1 -g1 -XD -vewnhi -l
/home/rob/lazarus/lazarus/test/project1.pas"
.
.
.
[TCompiler.Compile] Output="lcllinux.pp(8,27) Fatal: Can't find unit INTERFACES"
[TCompiler.Compile] end