Page 1 of 4

Lazarus 0.9.30 + FreePascal fpc 2.4.2

Posted: Mon 06 Jun 2011, 10:25
by tatamata
I have prepared Puppy linux PET package for Lazarus 0.9.30 + fpc 2.4.2 with cross-compiling to win32.
Download PET from here:
http://www.4shared.com/file/q_aktBSR/La ... c-242.html

Even Zeosdbo is preinstalled.

I would kindly ask maintainers of different Puppy PET repositories to upload the package. Thanks.

Free Pascal (FPC) is an open-source Pascal compiler with two notable features: a high degree of Delphi compatibility and availability on a variety of platforms, including Windows, Mac OS X, and Linux. Free Pascal's compatibility with Delphi includes not only support for the same Object Pascal programming language that Delphi uses, but also for many of the same libraries of powerful routines and classes that Delphi is justly known for. This includes familiar units such as System, SysUtils, StrUtils, DateUtils, Classes, Variants, Math, IniFiles and Registry, which are included with Free Pascal on all supported platforms. Free Pascal also includes units such as Windows, ShellAPI, BaseUnix, Unix and DynLibs for accessing features specific to an operating system. These dozen or so units make up the core of what is usually referred to as the Free Pascal run-time library (RTL).

Lazarus is an open-source development system that builds on the Free Pascal compiler by adding an integrated development environment (IDE) that includes a syntax-highlighting code editor and visual form designer, as well as a component library that's highly compatible with Delphi's Visual Component Library (VCL). The Lazarus Component Library (LCL) includes equivalents for many of the familiar VCL controls such as forms, buttons, text boxes and so on that are used to create applications that have a graphical user interface (GUI).

Both Free Pascal and Lazarus are written in Pascal. Complete source code is available not only for the Free Pascal compiler and Lazarus IDE, but also for all units that make up the Free Pascal RTL and Lazarus LCL.

Posted: Thu 09 Jun 2011, 06:16
by tatamata
pemasu uploaded the stripped version to his SnowPuppy PET repository here:
http://www.smokey01.com/pemasu/Pets/

Posted: Wed 24 Aug 2011, 10:35
by dawg
Some people might want an SFS instead: http://www.smokey01.com/pemasu/Sfs/

Posted: Wed 24 Aug 2011, 11:42
by dawg
One thing I find hilariously ridiculous about Lazarus, though, is that it compiles a 7.5 MB(!!) executable out of a very basic form. I don't know what's up with that, but it's a no-go...
Thanks a lot for the FPC, anyway, but for the said reason I wish it were 2 separate packages ;)

Posted: Wed 24 Aug 2011, 16:03
by tatamata
dawg,

The size of executable is just metter of adjusting some compiling parameters under Projects/Project Options/Compiler Options:

/Code Generation --> switch on "Smart linkable -CX", switch on lever 3 optimizations, switch-off everything else
/Linking/Debugging --> switch-on "Strip symbols from executable -Xs", switch-off everything else
/Linking/Link Style -->switch-on "Link smart -XX"

...and magic will happen:)

Posted: Sat 24 Sep 2011, 19:38
by dawg
Thanks, tatamata, that did help, but just a little :)

Lazarus does not work for me

Posted: Thu 29 Sep 2011, 06:18
by sternenstaub
I need help. I have load the .sfs and the devx.sfs.
I can open the ide. I can compile a form with objekts.
But i can not set an event in the Objektinspector (onClick).
When i click on an event the following error occurs.
/usr/share/fpcsrc/2.4.2/rtl/inc/varianth.inc(224,10) Error: = expected, but := found

Please help me - thanks!

The package "zcomponent" is installed, but no valid package

Posted: Tue 01 Nov 2011, 05:31
by panoss
I have installed Lazarus (Lazarus-0.9.30.0-fpc-2.4.2.pet) in puppy 528.

But, when I start it, shows me the message:
Package file not found.
The package "zcomponent" is installed, but no valid package file (.lpk) was found.
A broken dummy package was created.

I press 'OK', Lazarus starts. I press F9 (run) and another message appears:
project1.lpr(19,1) Error: Util ld not found, switching to external linking
project1.lpr(19,1) Fatal: There were 1 errors compiling module, stopping

What should I do to fix it?

Posted: Tue 01 Nov 2011, 09:49
by panoss
I opened package zcomponent.lpk (/root/.usr/lib/lazarus/0.9.30/components/zeosdbo/packages/lazarus/zcomponent.lpk) and the message is gone!
That's GOOOOOD!
BUT, the other message still appears when I try to run any application.
"project1.lpr(19,1) Error: Util ld not found, switching to external linking".
Lazarus gets on my nervesss!! :evil:

Posted: Wed 02 Nov 2011, 14:34
by panoss
I found here tha I have to install binutils. Which means I have to install devx_xxx.sfs file.
Where shall I find the apropriate devx_xxx.sfs file (something like devx_528.sfs) for my installation? (I have puppy 528).

Posted: Wed 02 Nov 2011, 15:05
by panoss
I found the file here.
Downloaded it, and moved it in my puppy directory (/puppy528).
Then I loaded it with Menu->Setup->Setup puppy->SFS-Load-on-the-fly.
AND LAZARUS RUNS! FINALLY!!!!
(nice thread, I answered to myself )

Posted: Fri 04 Nov 2011, 20:36
by sternenstaub
Hallo Panoss!

and can you set an event in the Objektinspector without an error?

Posted: Sun 06 Nov 2011, 09:56
by tatamata
Yes, it seems that after installing the pet, one should open zeosdbo package and recompile Lazarus. Then everything should work just fine.

Posted: Fri 11 Nov 2011, 13:39
by panoss
sternenstaub wrote:Hallo Panoss!

and can you set an event in the Objektinspector without an error?
No, I tried it and gave me error:
'/usr/share/fpcsrc/2.4.2/rtl/inc/varianth.inc(224,10) Error: = expected, but := found
'
and opened file 'varianth.inc'.

Posted: Fri 11 Nov 2011, 14:02
by panoss
tatamata wrote:Yes, it seems that after installing the pet, one should open zeosdbo package and recompile Lazarus. Then everything should work just fine.
No, there are many problems.
I tried to build Lazarus and...nothing. It does absolutely nothing.
It seems Lazarus has too many problems in puppy.
What a pity, I wanted to use it in puppy because it's so fast!

Edit:
Uninstalled Lazarus.
Deleted files: /usr/lib/lazarus and /root/.lazarus
I reinstalled Lazarus, compiles and buils OK!!! And FAAAAST!!!

But the problem when I try to add an event in object inspector, remains.

I' ll try some svn version.

Posted: Fri 11 Nov 2011, 17:06
by panoss
I tried the following script: (taken from an example made for ubuntu. Of course, I modified some things. p.e 'sudo' was erased)
I commented out Step 1 so it does not get executed, in puppy 'apt-get' does not work.
It gives an error on Step 5, at 'make clean all'.

Code: Select all

echo ""
echo "Step 1: Installing dependencies..."
echo ""
#apt-get install --force-yes -y subversion fpc fp-utils fpc-source fp-units-misc

echo ""
echo "Step 2: Downloading files..."
echo ""
cd ~
svn co http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 fpc
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
cd fpc/
wget -c ftp://ftp.freepascal.org/fpc/snapshot/v25/i386-linux/fpc-2.5.1.i386-linux.tar.gz

echo ""
echo "Step 3: Unzipping FPC..."
echo ""
tar -vzxf fpc-2.5.1.i386-linux.tar.gz

echo ""
echo "Step 4: Updating FPC SVN..."
echo ""
svn update

echo ""
echo "Step 5: Compiling new FPC..."
echo ""
make clean all
make install PREFIX=/usr

Posted: Fri 11 Nov 2011, 17:28
by RSH
Hello,

i am using Lazarus and FP. It is the .sfs file, that i use. I have checked out the Problem and i have got the same error message. But i have also compiled, linked and run the project with out any error message.

Maybe the error message is just the error?

RSH

Posted: Fri 11 Nov 2011, 17:32
by panoss
RSH wrote:Hello,

i am using Lazarus and FP. It is the .sfs file, that i use. I have checked out the Problem and i have got the same error message. But i have also compiled, linked and run the project with out any error message.

Maybe the error message is just the error?

RSH
I can compile, link and run projects, too.
But, when I try, for example, to add an event in a form, it gives an error.
Try it.

(that's why I'm trying to install an svn version, unsuccessfully up to now)

Posted: Fri 11 Nov 2011, 17:45
by tatamata
Hm, did you download original or stripped version?
It seems that stripped pet has some problems. Could you please try with original one:
http://www.4shared.com/file/q_aktBSR/La ... c-242.html

Posted: Fri 11 Nov 2011, 17:50
by panoss
tatamata wrote:Hm, did you download original or stripped version?
It seems that stripped pet has some problems. Could you please try with original one:
http://www.4shared.com/file/q_aktBSR/La ... c-242.html
Yes, that's the file I downloaded.
I'm downloading it again, just in case.
To be 100% sure.