Sign in Join

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

Mailing lists / lazarus / 2001-05

forms.pp ?

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Tjabo Kloppenburg

Hi, some days ago I've had this bug of lazarus missing a file "forms.pp". I've just scanned the fpc-rpms (alien) and the nightly build lazarus.tar.gz - there's a forms.ppu and .o, but no .pp.

Do I really need this forms.pp?

tk.

Reply by email

Tjabo Kloppenburg
to Tjabo Kloppenburg: Hi, some days ago I've had this bug of lazarus missing a file "forms.pp". I've just…

hi again :-)

when startung the build ("success...") I see this in the console: [TCompiler.Compile] CmdLine="/usr/lib/fpc/1.0.5/ppc386 -Rintel -S2cgi -C -Ch8000000 -Og1p1 -XD -vwnhi -l /amd/vmax/vmax/home/tjabo/test/Project1.pp" [TCompiler.Compile] Output="Error: Illegal parameter: if [ $# == 0 ]; then" [TCompiler.Compile] Output="Error: Illegal parameter: echo 'Usage :'" [TCompiler.Compile] Output="Error: Illegal parameter: echo 'samplecfg fpcdir confdir'" [TCompiler.Compile] Output="Error: Illegal parameter: echo 'fpcdir = Path where FPC is installed'"
[TCompiler.Compile] Output="Error: Illegal parameter: echo 'confdir = Path to /etc'" [TCompiler.Compile] Output="Error: Illegal parameter: exit 1" [TCompiler.Compile] Output="Error: Illegal parameter: fi" [TCompiler.Compile] Output="Error: Illegal parameter: if [ ]; then" [TCompiler.Compile] Output="Error: Illegal parameter: sysdir=" [TCompiler.Compile] Output="Error: Illegal parameter: [ -d $sysdir ] || mkdir $sysdir" [TCompiler.Compile] Output="Error: Illegal parameter: else" [TCompiler.Compile] Output="Error: Illegal parameter: sysdir=/etc" [TCompiler.Compile] Output="Error: Illegal parameter: fi" [TCompiler.Compile] Output="Error: Illegal parameter: if [ -w $sysdir ] ; then" [TCompiler.Compile] Output="Error: Illegal parameter: echo Write permission in $sysdir." [TCompiler.Compile] Output="Error: Illegal parameter: thefile=$sysdir/ppc386.cfg" [TCompiler.Compile] Output="Error: Illegal parameter: else" [TCompiler.Compile] Output="Error: Illegal parameter: echo No write premission in $sysdir." [TCompiler.Compile] Output="Error: Illegal parameter: thefile=$HOME/.ppc386.cfg" [TCompiler.Compile] Output="Error: Illegal parameter: fi" [TCompiler.Compile] Output="Error: Illegal parameter: if [ -f $thefile ] ; then" [TCompiler.Compile] Output="Error: Illegal parameter: mv $thefile $thefile.orig >/dev/null 2>&1"
[TCompiler.Compile] Output="Error: Illegal parameter: if [ $? == 0 ]; then" [TCompiler.Compile] Output="Error: Illegal parameter: echo Saved old config to $thefile.orig" [TCompiler.Compile] Output="Error: Illegal parameter: else" [TCompiler.Compile] Output="Error: Illegal parameter: echo Could not save old config. Bailing out..."
[TCompiler.Compile] Output="Error: Illegal parameter: exit" [TCompiler.Compile] Output="Error: Illegal parameter: fi" [TCompiler.Compile] Output="Error: Illegal parameter: fi" [TCompiler.Compile] Output="Error: Illegal parameter: GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`"
[TCompiler.Compile] Output="Error: Illegal parameter: GCCDIR=`dirname $GCCSPEC`" [TCompiler.Compile] Output="Error: Illegal parameter: echo Found libgcc.a in $GCCDIR" [TCompiler.Compile] Output="Error: Illegal parameter: echo Writing sample configuration file to $thefile"
[TCompiler.Compile] Output="Error: Illegal parameter: cat <<EOFCFG > $thefile" [TCompiler.Compile] Output="Error: Illegal parameter: EOFCFG" [TCompiler.Compile] end

seems to be a shell script, not a compiler.
I think someone was too optimistic when coding the source for detecting a successful built process... :-/

tk.

Reply by email

Marc Weustink
to Tjabo Kloppenburg: Hi, some days ago I've had this bug of lazarus missing a file "forms.pp". I've just…
Cyril LAMY wrote 7 lines
Hi, when i try to compile delphi projects under lazarus(linux), I have an error at the line : {$R *.DFM} How can I solve this problem ?

Lazarus (or better Linux) doesn't know about resources, so you can't use them in the way Delphi/win32 does. However Lazarus uses a method pretty compatible with this.

1) You need a textual DFM
D4: created by copy/paste from ALT-F12
D5: Native

2) Create a lrc file with lazres (in lazarus/tools) lazres yourform.lrc yourform.dfm

3) Add the following lines to yourform.pp
     initialization
       {$I yourform.lrc}

Please keep in mind that not all properties in the dfm are supported yet by lazarus, so you might get a crash.

HTH Marc

Reply by email