Lazarus 0.9.30 + FreePascal fpc 2.4.2

Talk about and post software packages known to work or packaged for Puppy.
Message
Author
tatamata
Posts: 63
Joined: Sun 02 May 2010, 09:09

Lazarus 0.9.30 + FreePascal fpc 2.4.2

#1 Post 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.

tatamata
Posts: 63
Joined: Sun 02 May 2010, 09:09

#2 Post by tatamata »

pemasu uploaded the stripped version to his SnowPuppy PET repository here:
http://www.smokey01.com/pemasu/Pets/

dawg
Posts: 116
Joined: Sun 09 Aug 2009, 14:36
Location: still here
Contact:

#3 Post by dawg »

Some people might want an SFS instead: http://www.smokey01.com/pemasu/Sfs/
I used to only like Puppy as a friend, but now I think our relationship is starting to develop into something more... :D

dawg
Posts: 116
Joined: Sun 09 Aug 2009, 14:36
Location: still here
Contact:

#4 Post 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 ;)
I used to only like Puppy as a friend, but now I think our relationship is starting to develop into something more... :D

tatamata
Posts: 63
Joined: Sun 02 May 2010, 09:09

#5 Post 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:)

dawg
Posts: 116
Joined: Sun 09 Aug 2009, 14:36
Location: still here
Contact:

#6 Post by dawg »

Thanks, tatamata, that did help, but just a little :)
I used to only like Puppy as a friend, but now I think our relationship is starting to develop into something more... :D

sternenstaub
Posts: 6
Joined: Mon 16 May 2011, 19:04
Location: Austria

Lazarus does not work for me

#7 Post 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!

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

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

#8 Post 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?

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#9 Post 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:

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#10 Post 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).

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#11 Post 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 )

sternenstaub
Posts: 6
Joined: Mon 16 May 2011, 19:04
Location: Austria

#12 Post by sternenstaub »

Hallo Panoss!

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

tatamata
Posts: 63
Joined: Sun 02 May 2010, 09:09

#13 Post by tatamata »

Yes, it seems that after installing the pet, one should open zeosdbo package and recompile Lazarus. Then everything should work just fine.

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#14 Post 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'.

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#15 Post 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.

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#16 Post 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

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#17 Post 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
Attachments
laz-fp.png
the form1 project running with radiobutton and togglebutton
(107.39 KiB) Downloaded 1364 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#18 Post 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)

tatamata
Posts: 63
Joined: Sun 02 May 2010, 09:09

#19 Post 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

panoss
Posts: 198
Joined: Mon 31 Oct 2011, 13:36

#20 Post 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.

Post Reply