Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 25 Apr 2014, 04:07
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
LazY Puppy 2.0.2 Final - a Paradise Puppy
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 14 of 48 [718 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14, 15, 16, ..., 46, 47, 48 Next
Author Message
smokey01


Joined: 30 Dec 2006
Posts: 1792
Location: South Australia

PostPosted: Sat 18 Feb 2012, 18:11    Post subject:  

FFConvert Tutorial here:

http://murga-linux.com/puppy/viewtopic.php?t=76023

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Sat 18 Feb 2012, 18:55    Post subject: LazY Puppy 5.2.8-4
Subject description: FFConvert Tutorial
 

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic.php?p=591223#591223
Quick & Easy Information to BugFixes, Updates & more

smokey01 wrote:
FFConvert Tutorial here:

http://murga-linux.com/puppy/viewtopic.php?t=76023


Aaahhhhhh, the Thread/Topic is the Tutorial. Sometimes i must be blind, not to notice this... Smile

Thanks

_________________
LazY Puppy
RSH's DNA
SARA B.

Last edited by RSH on Tue 21 Feb 2012, 01:28; edited 1 time in total
Back to top
View user's profile Send private message 
minesadorada


Joined: 11 Sep 2011
Posts: 67

PostPosted: Sun 19 Feb 2012, 04:36    Post subject: Re: LazY Puppy 5.2.8-4
Subject description: A happy Pascal Linux proto-programmer!
 

RSH wrote:
...

But there is one favor you could do to me: Send me as much as you can of you 'not classified' pascal sources (from time to time). I am sure it would help a lot to get my pascal knowledge transformed from ST Pascal plus to Lazarus/FPC. This would be very nice! Smile
...

My route was through TP5, TPW then Delphi. My workplaces exclusively used Windows generations. I have plenty of Delphi source, but it doesn't import into Lazarus very cleanly so far.

I've just upgraded my RAM (to16GB) so my system has been offline for a bit. I'll see if I have any useful code for you when I get a better chance to play.

There doesn't seem to be a well-defined system Ubuntu/Puppy API, but Lazarus 'wraps' functions and datatypes up, so it doesn't really matter for simple programs.
Back to top
View user's profile Send private message 
tatamata

Joined: 02 May 2010
Posts: 63

PostPosted: Sun 19 Feb 2012, 14:00    Post subject:  

minesadorada wrote:
tatamata wrote:
For those willing to download and test CodeTyphon Lazarus/FPC distribution, here is a PET:
http://www.4shared.com/file/U5ryH2fy/CodeTyphon-240.html
If missing libraries, here are needed libraries:
http://www.4shared.com/file/rxSOsfAe/CodeTyphon-Libs.html

CodeTyphon is basically Lazarus with additional tools and much more components included.
\Racy 5.1 frugal install: CodeTyphoon Libs installed OK, but CodeTyphoon 240 pet would not install.

Hmm, I don't really know...
There is another option, to install it from source:
http://www.4shared.com/zip/9Xg9g4RW/CodeTyphon-240-Source-CrossCom.html
Inside the zip the are two folders: one is with CodeTyphon source and installation scripts (reworked by me). In other folder are binutils and scripts to install win32 cross-compile.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Mon 20 Feb 2012, 14:45    Post subject: LazY Puppy 5.2.8-4
Subject description: One Step into Lazarus.
 

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic.php?p=591223#591223
Quick & Easy Information to BugFixes, Updates & more

minesadorada wrote:
I'll see if I have any useful code for you when I get a better chance to play.

I think even stuff like your "Hello World" Application would help to make me able to get One Step into Lazarus. The older Pascal System that i have had learned and used for many years does not include classes and stuff like that.

So, every line of Pascal code surely would give some help to me.

Thanks in advance...

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.

Last edited by RSH on Tue 21 Feb 2012, 01:29; edited 1 time in total
Back to top
View user's profile Send private message 
tatamata

Joined: 02 May 2010
Posts: 63

PostPosted: Mon 20 Feb 2012, 14:55    Post subject: Re: LazY Puppy 5.2.8-4
Subject description: One Step into Lazarus.
 

RSH wrote:
minesadorada wrote:
I'll see if I have any useful code for you when I get a better chance to play.

I think even stuff like your "Hello World" Application would help to make me able to get One Step into Lazarus. The older Pascal System that i have had learned and used for many years does not include classes and stuff like that.

So, every line of Pascal code surely would give some help to me.

Thanks in advance...

RSH


Dear RSH,
Lazarus is basically like Delphi. I have learned that Delphi books (before .NET Delphi versions) are good to learn Lazarus. Actually, much better than Lazarus wiki pages...
Back to top
View user's profile Send private message 
minesadorada


Joined: 11 Sep 2011
Posts: 67

PostPosted: Mon 20 Feb 2012, 16:18    Post subject:  

@RSH I'm working on converting an old Delphi 6 app that uses 2 general-purpose classes/objects I wrote some time ago which should work fine in Lazarus all versions. I'll upload it when it works correctly in Linux. It's currently being held up by a section of code that saves/loads a custom datafile to disk in a 'Windows' way. You might find the OOP code useful to pick apart.

Unfortunately, much of my older code uses a set of self-written custom objects (VCLs) which were very windows-specific, and hard to unpick from the projects. Other code is for Windows DLLS mostly written in 16-bit TPW for Win 3.1- not very useful for Linux!

As tatamata says, Lazarus IDE is exactly like Delphi (before V.8.0), but there are problems converting existing Delphi projects written for Windows into Linux Lazarus apps, as I am finding out!

There are loads of Delphi code snippets on the web that should plug into Lazarus just fine.

Delphi/Lazarus is a fantastic event-driven OOP language IMO. It's a natural step up from non-OOP and/or interpreted languages. The powerful and simple IDE is also great for the 'lazy programmer' to create a working app in minutes to test a concept or create a mock-up.

It is worth writing thoroughly debugged re-useable objects wherever you can in OOPascal/Lazarus as this unleashes it's true power to create complex but mainly bug-free code quickly. The objects take longer to write than regular code, but can be easily subclassed when necessary to extend them. I think there's a real 'beauty' in an OOP-written app, and they are easier to maintain.

'helloworld' is a one-line testing GUI 'mock-up' app - not very useful for study Smile

I'm really enjoying the challenge though, and Linux/Lazarus has only crashed once so far. I'm very excited at the cross-platform and 32/64-bit capability, and in awe of the Lazarus/FreePascal programming team - what a great job they've done!
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Tue 21 Feb 2012, 01:33    Post subject: LazY Puppy 5.2.8-4
Subject description: Crash? Which one did crash?
 

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic.php?p=591223#591223
Quick & Easy Information to BugFixes, Updates & more

minesadorada wrote:
... and Linux/Lazarus has only crashed once so far.


"Linux/Lazarus" did crash?

Which one crashes?

LazY Puppy?

Lazarus?

Can you reproduce this crash?

Can you give more detailed information?

Maybe we need to post this in the Lazarus Thread...

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
minesadorada


Joined: 11 Sep 2011
Posts: 67

PostPosted: Tue 21 Feb 2012, 07:43    Post subject:  

No worries about the crash. It was the Lazarus IDE bugging out for no apparent reason, but I'm used to saving code frequently during development.

One thing worth mentioning about the LAZY distribution:
The compiler objected to a CopyFile statement as illegal. I looked into the FPC Runtime Library and FPC Free Component guides to see if I could find an alternative routine, but nada.

A short search on the web revealed the FileUtil unit (containing CopyFile) which was not included in the guide at all, but included in the FPC distribution binaries.

Perhaps the included Guides are out of date?
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Tue 21 Feb 2012, 08:23    Post subject:  

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic.php?p=591223#591223
Quick & Easy Information to BugFixes, Updates & more

minesadorada wrote:
Perhaps the included Guides are out of date?

The Guides has been the original documentation of Lazarus 0.9.30.1 and FPC 2.4.2. I did nothing remove, change or add.

minesadorada wrote:
The compiler objected to a CopyFile statement as illegal. I looked into the FPC Runtime Library and FPC Free Component guides to see if I could find an alternative routine, but nada.

Maybe this has to do with the fact that the LazY Puppy Lazarus SFS uses the rtl directory of the FPC 2.4.4 sources? Smile

This one has been necessary to change because there has been a main bug in the original sfs. It has been impossible to add an event to the object manager. Only after removing rtl dir (2.4.2) and adding rtl dir (2.4.4) this bug was gone and Lazarus not only runs - it worked also. Cool

The error message has been: "found ':=', expected '=' ... " in the type definition section. Sad

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Wed 22 Feb 2012, 08:21    Post subject: LazY Puppy 5.2.8-4
Subject description: Can load only 6 .sfs files
 

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic.php?p=591223#591223
Quick & Easy Information to BugFixes, Updates & more

RSH wrote:

minesadorada wrote:
wrote:
I could only load 6 sfs files before LazyPuppy complained.

This limitation is a lucid puppy based limitation. I did already several times use all ten sfs files (without pupsave) and there were no problems at all.


I have made some work on this. It seems to be impossible to change the number of loadable .sfs files. I did create some pup_roX (X is the number) directories in /initrd. As long as working with puppy everything works fine (i did use 11 .sfs files at a time), but the created pup_roX directories will not be saved at shutdown.

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
ICPUG

Joined: 24 Jul 2005
Posts: 1288
Location: UK

PostPosted: Wed 22 Feb 2012, 08:42    Post subject:  

It's not impossible to add more sfs files and maintain persistence since it had been done with other puplets.

You have to create the directories on boot up by modifying the init file, located within the initrd.gz, to do it. At one time that was all you had to modify. I am not sure if you have to modify any other files now.

The HowTos for:
(a) modifying initrd.gz
(b) adding more sfs files in Puppy 4.x
are SOMEWHERE on this forum. As usual, tthe problem is finding them and with (b) are the instructions complete for today's pups?
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Wed 22 Feb 2012, 09:20    Post subject: LazY Puppy 5.2.8-4
Subject description: How to make your puppy able to load more than 6 .sfs files
 

LazY Puppy Info Center
http://murga-linux.com/puppy/viewtopic.php?p=591223#591223
Quick & Easy Information to BugFixes, Updates & more

DONE! Very Happy

I have examined (again) the initrd.gz. Load file init into geany. Then found and edited the following (begins at line 1565 (LazY Puppy - added pup_ro 10 ... pup_ro15):
Code:

   #if same dir exists lower layer, then wipe the opaque file...
   [ -d /pup_ro3${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro4${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro5${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro6${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro7${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro8${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro9${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro10${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro11${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro12${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro13${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro14${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}
   [ -d /pup_ro15${ONEDIR} ] && rm -f ${OLDFILESMNTPT}${ONEOPAQUE}

And the following (begins at line 1652 after editing the above shown code)

Code:
#cpio archive does switch_root, lose the initial-ramfs, so move all mntd...
mkdir -p /pup_new/initrd
mkdir -p /pup_new/initrd/pup_ro1
mkdir -p /pup_new/initrd/pup_ro2
mkdir -p /pup_new/initrd/pup_ro3
mkdir -p /pup_new/initrd/pup_ro4
mkdir -p /pup_new/initrd/pup_ro5
mkdir -p /pup_new/initrd/pup_ro6
mkdir -p /pup_new/initrd/pup_ro7
mkdir -p /pup_new/initrd/pup_ro8
mkdir -p /pup_new/initrd/pup_ro9
mkdir -p /pup_new/initrd/pup_ro10
mkdir -p /pup_new/initrd/pup_ro11
mkdir -p /pup_new/initrd/pup_ro12
mkdir -p /pup_new/initrd/pup_ro13
mkdir -p /pup_new/initrd/pup_ro14
mkdir -p /pup_new/initrd/pup_ro15
mkdir -p /pup_new/initrd/pup_rw
mkdir -p /pup_new/initrd/pup_z
mkdir -p /pup_new/initrd/mnt
mkdir -p /pup_new/initrd/mnt/data
mkdir -p /pup_new/initrd/mnt/dev_ro1
mkdir -p /pup_new/initrd/mnt/dev_ro2
mkdir -p /pup_new/initrd/mnt/dev_save
mkdir -p /pup_new/initrd/mnt/swap
mkdir -p /pup_new/initrd/mnt/tmpfs
mkdir -p /pup_new/initrd/mnt/tmpfs2
mkdir -p /pup_new/initrd/mnt/zdrv
mkdir -p /pup_new/initrd/tmp


After editing initrd.gz as shown LazY Puppy will be able to load 12 .sfs files without a complaining sfs-load. Smile

You can use the Edit intrd.gz with GUI in the LazY Puppy menu to edit the initrd.gz. Please, do make a copy of your initrd.gz first.

The GUI is self explaining and easy to use (because it is written by myself) Smile

I will add this feature to the LazY Puppy Update! Cool

ICPUG wrote:
It's not impossible to add more sfs files and maintain persistence since it had been done with other puplets.

You have to create the directories on boot up by modifying the init file, located within the initrd.gz, to do it. At one time that was all you had to modify. I am not sure if you have to modify any other files now.

The HowTos for:
(a) modifying initrd.gz
(b) adding more sfs files in Puppy 4.x
are SOMEWHERE on this forum. As usual, tthe problem is finding them and with (b) are the instructions complete for today's pups?

I knew it must be possible in any way, because i had a test on slacko, which can load more than 6 .sfs files.

I just did think there must be an easier way to do this without editing the initrd.gz. But this didn't work Sad

Thanks for your hints.

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1792
Location: South Australia

PostPosted: Wed 22 Feb 2012, 14:56    Post subject:  

This may help you load more SFS files.

http://www.murga-linux.com/puppy/viewtopic.php?t=36733

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
minesadorada


Joined: 11 Sep 2011
Posts: 67

PostPosted: Wed 22 Feb 2012, 18:40    Post subject:  

Thumbs up for Lazy Puppy and Lazarus!

I coded a GUI application in Lazy Puppy which uses many features of FPC. I then opened the linux project in the Windows 7 64-bit version of Lazarus; told it to compile for Win64 and it did it without a hitch!

Easy cross-compiling for 32-bit Puppy Linux and 64-bit Windows 7 without changing any source code - awesome!

(Also my first 3G application written for Linux)

@RSH I'll upload the source code for you soon.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 14 of 48 [718 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14, 15, 16, ..., 46, 47, 48 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1117s ][ Queries: 13 (0.0155s) ][ GZIP on ]