Sign in Join

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

Mailing lists / lazarus / 2002-01

How do I compile a form

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

rob young
to rob young: 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

Mattias Gaertner wrote 57 lines
On Mon, 21 Jan 2002 12:26:19 -0500 rob young wrote: > 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 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 _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Mattias Gaertner
to rob young: When I compile a very basic program is works Lazarus works fine. When I add a form I get…
Show quoted text 12 lines
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

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

Reply by email

rob young

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

Reply by email