| Author |
Message |
slapshot

Joined: 02 Apr 2006 Posts: 270 Location: Italy
|
Posted: Thu 08 Mar 2007, 05:47 Post subject:
Creating a Dotpup for Free Pascal Compiler and Lazarus |
|
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/
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Thu 08 Mar 2007, 16:44 Post subject:
|
|
You should create
/root/lazarus/run-lazarus
This could be such a script:
| Code: | #!/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
|
|
Back to top
|
|
 |
slapshot

Joined: 02 Apr 2006 Posts: 270 Location: Italy
|
Posted: Fri 09 Mar 2007, 04:17 Post subject:
|
|
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/
|
|
Back to top
|
|
 |
Ledster
Joined: 26 Aug 2006 Posts: 62 Location: Devon, England
|
Posted: Sat 19 May 2007, 11:02 Post subject:
Lazarus Subject description: Creating a Dotpup for Free Pascal Compiler and Lazarus |
|
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
|
|
Back to top
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6663 Location: lisbon
|
Posted: Sun 20 May 2007, 20:53 Post subject:
|
|
has anybody tried just renaming the slax lazarus .mo as an .sfs file?
http://merlin.fit.vutbr.cz/mirrors/slax/SLAX-5-modules/develop/Lazarus_IDE_Free_Pascal_Compiler_0_9_13_FPC2_02-1.mo
i'm just dloading it in my local library & will let you know how it goes.
|
|
Back to top
|
|
 |
slapshot

Joined: 02 Apr 2006 Posts: 270 Location: Italy
|
Posted: Mon 21 May 2007, 02:07 Post subject:
|
|
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/
|
|
Back to top
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6663 Location: lisbon
|
Posted: Tue 22 May 2007, 03:40 Post subject:
|
|
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)
|
|
Back to top
|
|
 |
slapshot

Joined: 02 Apr 2006 Posts: 270 Location: Italy
|
Posted: Tue 22 May 2007, 03:53 Post subject:
|
|
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/
|
|
Back to top
|
|
 |
Ledster
Joined: 26 Aug 2006 Posts: 62 Location: Devon, England
|
Posted: Wed 23 May 2007, 11:21 Post subject:
Lazarus Subject description: Lazarus files for Puppy |
|
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
|
|
Back to top
|
|
 |
slapshot

Joined: 02 Apr 2006 Posts: 270 Location: Italy
|
Posted: Thu 08 Nov 2007, 16:26 Post subject:
|
|
Here you can download Lazarus 0.9.25 compiled in Puppy 3.x. Sorry for late .
http://www.giovelug.org/index.php?lng=en&mod=download&pg=indice&c=5
_________________ Bye
Slapshot
EduPup 2.0 at
http://www.pieroni.biz/edupup
http://www.giovelug.org
http://puppylinux.ca/tpp/edupup/
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Thu 08 Nov 2007, 17:42 Post subject:
|
|
mirror:
http://dotpups.de/puppy3/dotpups/Programming/
Mark
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 09 Nov 2007, 02:10 Post subject:
|
|
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
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 WIKI
|
|
Back to top
|
|
 |
slapshot

Joined: 02 Apr 2006 Posts: 270 Location: Italy
|
Posted: Fri 09 Nov 2007, 04:42 Post subject:
|
|
@MU
Thanks for your mirroring
@Lobster
Lazarus needs of fpc and its sources downloadable here:
http://www.freepascal.org/down/source/sources-ftp.freepascal.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/Lazarus_Faq#Why_are_the_generated_binaries_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/
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 09 Nov 2007, 04:51 Post subject:
|
|
| Quote: | | 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 WIKI
|
|
Back to top
|
|
 |
slapshot

Joined: 02 Apr 2006 Posts: 270 Location: Italy
|
Posted: Fri 09 Nov 2007, 12:49 Post subject:
|
|
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/
|
|
Back to top
|
|
 |
|