Creating a Dotpup for Free Pascal Compiler and Lazarus

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
slapshot
Posts: 270
Joined: Sun 02 Apr 2006, 13:21
Location: Italy

Creating a Dotpup for Free Pascal Compiler and Lazarus

#1 Post by slapshot »

Hi all,

I installed FPC and it's source and compiled Lazarus under Puppy 2.13 and I would like to make a dotpup to make it easy to install. Now, I downloaded and installed dotpup wizard but there is a point I cannot understand. The wizard ask for the executable file and tell me that it creates a script under /usr/local/bin asking for a binary. Now, if I choose fpc, which is free pascal binary file, it hides this binary file and I cannot start fpc compiler after the installation of dotpup. BTW, fpc has a binary just in /usr/local/bin and also other files but this one is overriden by th fpc.sh dotpup wizard creates.
For lazarus I didn't try yet.

How can I solve this problem ?

Thanks.
Bye
Slapshot
EduPup 2.0 at
http://www.pieroni.biz/edupup
http://www.giovelug.org
http://puppylinux.ca/tpp/edupup/

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

You should create

/root/lazarus/run-lazarus

This could be such a script:

Code: Select all

#!/bin/bash

fpc "$@" &
And add an icon (16x16 px):
/root/lazarus/icon.xpm

Then create
/root/lazarus/FILESYSTEM/

Copy there all files you installed, so you have
/root/lazarus/FILESYSTEM/usr/local/bin/fpc
and so on.

Then drag the folder
/root/lazarus/
on the dotpup-wizard, and choose "run-lazarus" as your script to execute from the menu.

Mark

User avatar
slapshot
Posts: 270
Joined: Sun 02 Apr 2006, 13:21
Location: Italy

#3 Post by slapshot »

Hi Mark,

thank you, I will try it as soon as possible.

Antonio
Bye
Slapshot
EduPup 2.0 at
http://www.pieroni.biz/edupup
http://www.giovelug.org
http://puppylinux.ca/tpp/edupup/

Ledster
Posts: 88
Joined: Sat 26 Aug 2006, 15:33
Location: Devon, England

Lazarus

#4 Post by Ledster »

Any joy with this yet?
I'd really like to have Lazarus in Puppy, but I got bogged down in dependencies when I tried.

Ches

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#5 Post by muggins »

has anybody tried just renaming the slax lazarus .mo as an .sfs file?

http://merlin.fit.vutbr.cz/mirrors/slax ... C2_02-1.mo

i'm just dloading it in my local library & will let you know how it goes.

User avatar
slapshot
Posts: 270
Joined: Sun 02 Apr 2006, 13:21
Location: Italy

#6 Post by slapshot »

Hi Ledster,

afaik there is no dependencies for Lazarus. I did not terminated anymore to create a lazarus dotpup because it is really easy to download and compile it.
Just download and install fpc on Puppy, then download entire Lazarus sources and follow the installme file to compile it (using fpc) and having it running and working properly.

Let me know about your problem, maybe I can have some suggest for you or I can try to create one dotpup for you is slax one is not working on Puppy.

Bye
Slapshot
Bye
Slapshot
EduPup 2.0 at
http://www.pieroni.biz/edupup
http://www.giovelug.org
http://puppylinux.ca/tpp/edupup/

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#7 Post by muggins »

the slax .mo isn't the latest lazarus version, but just renaming .mo to .sfs, then using the .sfs bootmanager to load it next boot, then type lazarus at prompt, and your up & running with version 0.9.14. that's as far as i've gone, as the last time i did anything with pascal was with turbopascal on dos.

slax also has a kylix.mo file, (for kylix 3.0)

User avatar
slapshot
Posts: 270
Joined: Sun 02 Apr 2006, 13:21
Location: Italy

#8 Post by slapshot »

Lazarus right now is on 0.9.23 version, and it is an opensource project so I would prefer to download it via an SVN client (look at Puppy repository via PetGet) and build it up with "make clean install". FPC could be download with its packaging with no problem. I recall it is 2.0.4 on its latest stable.
Bye
Slapshot
EduPup 2.0 at
http://www.pieroni.biz/edupup
http://www.giovelug.org
http://puppylinux.ca/tpp/edupup/

Ledster
Posts: 88
Joined: Sat 26 Aug 2006, 15:33
Location: Devon, England

Lazarus

#9 Post by Ledster »

Sounds like it should be fairly easy (famous last words!)
However, I am only on dial up so would like to know which files I should use before I download. A look at the Sourceforge site shows a wide selection.

Choices are deb's, rpm's or this rather odd mixture - fpc-2.0.4.i386-linux.tar, fpc-src-2.0.4.source.tgz, lazarus-0.9.22-1.tar.gz.
(Interestingly the crosswin compiler files are only available in deb and rpm format)

Last time I downloaded the rpm files for fpc, fpcsrc and lazarus and used unrpmfull to extract them to /mnt/home (/initrd/mnt/dev_save then). It needed a lot of fiddling with to get directories where they were expected to be (perhaps some symlinks would have worked better/quicker - and saved me having to increase the size of my Puppy save file) and I actually got Lazarus to run, but it would not compile a program - complained it needed ld, which is a kernel command, I believe, and something to do with linking.

All help and advice will be gratefully received.

Ches

User avatar
slapshot
Posts: 270
Joined: Sun 02 Apr 2006, 13:21
Location: Italy

#10 Post by slapshot »

Here you can download Lazarus 0.9.25 compiled in Puppy 3.x. Sorry for late ;-).

http://www.giovelug.org/index.php?lng=e ... indice&c=5
Bye
Slapshot
EduPup 2.0 at
http://www.pieroni.biz/edupup
http://www.giovelug.org
http://puppylinux.ca/tpp/edupup/

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#11 Post by MU »


User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#12 Post by Lobster »

I just installed the Lazurus environment (it took a while but was simple and successful) :)

you also need freepascal (another 30MB)
http://www.freepascal.org/

run

Code: Select all

./install.sh
from the command line to install

Now I have to set the Environment in Lazarus?

Are programs (are there any?) compiled and using the GTK2 option as the GUI going to be small or dependency heavy?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
slapshot
Posts: 270
Joined: Sun 02 Apr 2006, 13:21
Location: Italy

#13 Post by slapshot »

@MU
Thanks for your mirroring :-)

@Lobster
Lazarus needs of fpc and its sources downloadable here:
http://www.freepascal.org/down/source/s ... al.org.var

One of the environment options want to search for them.

About the size it is not so small because Lazarus compiles with all LCL inside the binary but it has this advantages:

1. Fastness (as any compiled software)
2. No dipendencies at all. All it is into monolithic binary

For the size, with growing of the code you can see it does not grow so much compared to other compilers. Please, have a look to:
http://wiki.lazarus.freepascal.org/Laza ... _so_big.3F

Stripping the simbols and using UPX can shrink so much binary size.
Bye
Slapshot
EduPup 2.0 at
http://www.pieroni.biz/edupup
http://www.giovelug.org
http://puppylinux.ca/tpp/edupup/

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#14 Post by Lobster »

No dependencies at all. All it is into monolithic binary


Ah . . .
thanks for reply
That makes a lot of sense and means the program will run in different distros.

:)

Pascal was the first language I learned but I am strictly an amateur with very limited skills. I tend to like existing code I can hack . . .

The Lazurus environment looks very comprehensive :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
slapshot
Posts: 270
Joined: Sun 02 Apr 2006, 13:21
Location: Italy

#15 Post by slapshot »

You're welcome Lobster :-).

Anyway, Lazarus is a good product. Now it is emerging also another gui framework that can cross-compile linux-windows with no dependencies at all about widgetsets, I mean it is fpGUI. Try to have a look at:

http://opensoft.homeip.net/fpgui/
http://wiki.lazarus.freepascal.org/fpGUI_Interface

I did not try it, yet, but I will soon.
Bye
Slapshot
EduPup 2.0 at
http://www.pieroni.biz/edupup
http://www.giovelug.org
http://puppylinux.ca/tpp/edupup/

Post Reply