Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-06

Portable Version of Lazarus.

24 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hello!
At some times ago. this list have a discussion of an portable version of the Lazarus.
Where I can download this version?

# #lazarus-br em irc.freenode.org Lazarus, o pascal ainda tem futuro. <http://www.lazarus.freepascal.org> # Comunidade portuguesa Lazarus, Delphi, Lazarus e Pascal. <http://www.lazarusportugal.org/> # IRC online <http://lazarusportugal.org/doku.php/irc> ou #lazrusportugal em irc.ptnet.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/530ebcd2/attachment.html>

Reply by email

Marcos Douglas
to Unknown author

2011/6/17

Hello! At some times ago. this list have a discussion of an portable version of the Lazarus. Where I can download this version?

The Lazarus is portable by default. I use it in a external HD without problems. But you have to initialize Lazarus with --pcp parameter.

Marcos Douglas

Reply by email

Marco van de Voort
to Marcos Douglas
Marcos Douglas wrote 6 lines
> Hello! > At some times ago. this list have a discussion of an portable version of the Lazarus. > Where I can download this version? The Lazarus is portable by default. I use it in a external HD without problems. But you have to initialize Lazarus with --pcp parameter.

That doesn't solve the driveletter changing. If I understood everything correctly, for that you also need to rewrite the fpc.cfg and override lazarus dir using the (0.9.30+) --lazarus-dir parameter

Reply by email

Graeme Geldenhuys
to Marco van de Voort
Marco van de Voort wrote
That doesn't solve the driveletter changing. If I understood everything correctly, for that you also need to rewrite the fpc.cfg and override lazarus dir using the (0.9.30+) --lazarus-dir parameter

Correct, and a simple application launcher (small utility appl) can do this quite nicely. I even think startlaz should be modified to support this - it should be quite handy for some developers, and makes startlaz a bit more useful.

I have done this before with a small launcher app, but don't use it any more...Just looked, I can't find the code for it either, sorry. What I did was something like this: The launcher app picked up the drive letter (and path) where lazarus executable lives (they are both in the same directory), then sets an environment variable before launching the lazarus executable. The fpc.cfg uses the environment variable to correctly specify the unit paths. Actually I can't remember if it was an environment variables or a small auto generated text file that is included via #INCLUDE inside fpc.cfg. Anyway, one of them worked.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Mattias Gaertner
to Marco van de Voort: That doesn't solve the driveletter changing. If I understood everything correctly, for…
Show quoted text 10 lines
On Fri, Jun 17, 2011 at 09:04:24AM -0300, Marcos Douglas wrote: > > Hello! > > At some times ago. this list have a discussion of an portable version of the Lazarus. > > Where I can download this version? > > The Lazarus is portable by default. I use it in a external HD without problems. > But you have to initialize Lazarus with --pcp parameter. That doesn't solve the driveletter changing. If I understood everything correctly, for that you also need to rewrite the fpc.cfg

Yes, the fpc.cfg is not portable. And fpc has some fixed defaults, which IMO are not very helpful. At least I don't know any Linux or Mac where these defaults work. But I do know some systems with left overs where these defaults create misleading error messages.

and override lazarus dir using the (0.9.30+) --lazarus-dir parameter

The lazarus directory is a value in the configs. Maybe this directory can be saved relative to the primary config directory, if both share one parent directory.

Mattias

Reply by email

Marcos Douglas
to Marco van de Voort: That doesn't solve the driveletter changing. If I understood everything correctly, for…
Marco van de Voort wrote 12 lines
On Fri, Jun 17, 2011 at 09:04:24AM -0300, Marcos Douglas wrote: > > Hello! > > At some times ago. this list have a discussion of an portable version of the Lazarus. > > Where I can download this version? > > The Lazarus is portable by default. I use it in a external HD without problems. > But you have to initialize Lazarus with --pcp parameter. That doesn't solve the driveletter changing. If I understood everything correctly, for that you also need to rewrite the fpc.cfg and override lazarus dir using the (0.9.30+) --lazarus-dir parameter

Aha! But I always use the same drive letter! ;-)

Marcos Douglas

Reply by email

William Oliveira Ferreira
to Marcos Douglas

but i not...

Could i use relative path in fpc.cfg?

________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o

2011/6/17 Marcos Douglas

Show quoted text 27 lines
On Fri, Jun 17, 2011 at 9:14 AM, Marco van de Voort wrote: > > On Fri, Jun 17, 2011 at 09:04:24AM -0300, Marcos Douglas wrote: > > > Hello! > > > At some times ago. this list have a discussion of an portable version of the Lazarus. > > > Where I can download this version? > > > > The Lazarus is portable by default. I use it in a external HD without problems. > > But you have to initialize Lazarus with --pcp parameter. > > That doesn't solve the driveletter changing. If I understood everything > correctly, for that you also need to rewrite the fpc.cfg and override > lazarus dir using the (0.9.30+) --lazarus-dir parameter Aha! But I always use the same drive letter! ;-) Marcos Douglas -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/c525c1ff/attachment-0001.html>

Reply by email

Marcos Douglas
to Graeme Geldenhuys: Correct, and a simple application launcher (small utility appl) can do this quite nicely.…
Graeme Geldenhuys wrote 19 lines
On 17/06/2011 14:14, Marco van de Voort wrote: > That doesn't solve the driveletter changing. If I understood everything > correctly, for that you also need to rewrite the fpc.cfg and override > lazarus dir using the (0.9.30+) --lazarus-dir parameter Correct, and a simple application launcher (small utility appl) can do this quite nicely. I even think startlaz should be modified to support this - it should be quite handy for some developers, and makes startlaz a bit more useful. I have done this before with a small launcher app, but don't use it any more...Just looked, I can't find the code for it either, sorry. What I did was something like this: ?The launcher app picked up the drive letter (and path) where lazarus executable lives (they are both in the same directory), then sets an environment variable before launching the lazarus executable. The fpc.cfg uses the environment variable to correctly specify the unit paths. Actually I can't remember if it was an environment variables or a small auto generated text file that is included via #INCLUDE inside fpc.cfg. Anyway, one of them worked.

I did more simpler:
One script that verify the driver letter and starts Lazarus with --pcp.

Marcos Douglas

Reply by email

Marcos Douglas
to Mattias Gaertner: On Fri, 17 Jun 2011 14:14:38 +0200 Yes, the fpc.cfg is not portable. And fpc has some…
Mattias Gaertner wrote 5 lines
Yes, the fpc.cfg is not portable. And fpc has some fixed defaults, which IMO are not very helpful. At least I don't know any Linux or Mac where these defaults work. But I do know some systems with left overs where these defaults create misleading error messages.

I use on Windows with sucess. Not need to modify de fpc.cfg in this case.

Marcos Douglas

Reply by email

Unknown author
to Marcos Douglas
Marcos Douglas wrote 16 lines
2011/6/17 William Oliveira Ferreira: > but i not... Why not? Choose a driver letter that nobody uses. But you always can override the paths any time... > Could i use relative path in fpc.cfg? I think not. Marcos Douglas -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

We can create a launcher. Is more easy to use. Who can help me?

# #lazarus-br em irc.freenode.org Lazarus, o pascal ainda tem futuro. <http://www.lazarus.freepascal.org> # Comunidade portuguesa Lazarus, Delphi, Lazarus e Pascal. <http://www.lazarusportugal.org/> # IRC online <http://lazarusportugal.org/doku.php/irc> ou #lazrusportugal em irc.ptnet.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/185d9fb9/attachment.html>

Reply by email

Marcos Douglas
to Unknown author

2011/6/17
:

We can create a launcher. Is more easy to use. Who can help me?

A launcher is easier then a script?
See my BAT script:

@echo off
set mypath=W:\freepascal
set mylaz=%mypath%\ide\laz\0.9.30
cd \
if /i %cd% equ W:\ (
cd %mylaz%
start lazarus --pcp=%mypath%\ide\laz\config --lazarus-dir W:\md\dev\freepascal\ide\laz\0.9.30\
) else (
echo "invalid driver"
pause
)

Marcos Douglas

Reply by email

Graeme Geldenhuys
to Marcos Douglas: On Fri, Jun 17, 2011 at 9:34 AM, Graeme Geldenhuys I did more simpler: One script that…
Marcos Douglas wrote
I did more simpler: One script that verify the driver letter and starts Lazarus with --pcp.

The problem is not Lazarus, but rather fpc's fpc.cfg file. Imagine the case where Lazarus and FPC is installed on a USB stick.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Unknown author
to Marcos Douglas: 2011/6/17 : A launcher is easier then a script? See my BAT script: @echo off set…
Marcos Douglas wrote 26 lines
2011/6/17 : > We can create a launcher. Is more easy to use. Who can help me? A launcher is easier then a script? See my BAT script: @echo off set mypath=W:\freepascal set mylaz=%mypath%\ide\laz\0.9.30 cd \ if /i %cd% equ W:\ ( cd %mylaz% start lazarus --pcp=%mypath%\ide\laz\config --lazarus-dir W:\md\dev\freepascal\ide\laz\0.9.30\ ) else ( echo "invalid driver" pause ) Marcos Douglas -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

For me is the same thing :D .

# #lazarus-br em irc.freenode.org Lazarus, o pascal ainda tem futuro. <http://www.lazarus.freepascal.org> # Comunidade portuguesa Lazarus, Delphi, Lazarus e Pascal. <http://www.lazarusportugal.org/> # IRC online <http://lazarusportugal.org/doku.php/irc> ou #lazrusportugal em irc.ptnet.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/61f71055/attachment.html>

Reply by email

William Oliveira Ferreira
to Marcos Douglas: 2011/6/17 William Oliveira Ferreira : Why not? Choose a driver letter that nobody uses.…

'cos sometimes i use my pendrive on PCs that i doesn't rights to change drive letter...

I wanna use it on my pendrive to build applications on any windows, updating only one lazarus installation when it's necessary...

________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o

2011/6/17 Marcos Douglas

Show quoted text 20 lines
2011/6/17 William Oliveira Ferreira : > but i not... Why not? Choose a driver letter that nobody uses. But you always can override the paths any time... > > Could i use relative path in fpc.cfg? I think not. Marcos Douglas -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/b136ddc3/attachment-0001.html>

Reply by email

William Oliveira Ferreira
to Unknown author: For me is the same thing :D . # #lazarus-br em irc.freenode.org Lazarus, o pascal ainda…

i'll gonna test this =)
________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o

2011/6/17 <

Show quoted text 48 lines
** Em 17-06-2011 14:41, Marcos Douglas escreveu: 2011/6/17 : We can create a launcher. Is more easy to use. Who can help me? A launcher is easier then a script? See my BAT script: @echo off set mypath=W:\freepascal set mylaz=%mypath%\ide\laz\0.9.30 cd \ if /i %cd% equ W:\ ( cd %mylaz% start lazarus --pcp=%mypath%\ide\laz\config --lazarus-dir W:\md\dev\freepascal\ide\laz\0.9.30\ ) else ( echo "invalid driver" pause ) Marcos Douglas -- _______________________________________________ Lazarus mailing ://lists.lazarus.freepascal.org/mailman/listinfo/lazarus For me is the same thing :D . -- #lazarus-br em irc.freenode.org Lazarus, o pascal ainda tem futuro. <http://www.lazarus.freepascal.org> Comunidade portuguesa Lazarus, Delphi, Lazarus e Pascal.<http://www.lazarusportugal.org/> IRC online <http://lazarusportugal.org/doku.php/irc> ou #lazrusportugal em irc.ptnet.org -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/ebf99a63/attachment.html>

Reply by email

Marcos Douglas
to William Oliveira Ferreira: 'cos sometimes i use my pendrive on PCs that i doesn't rights to change drive letter... I…

2011/6/17 William Oliveira Ferreira :

Show quoted text 7 lines
'cos sometimes i use my pendrive on PCs that i doesn't rights to change drive letter... I wanna use it on my pendrive to build applications on any windows, updating only one lazarus installation?when it's necessary...

The only problem is fpc.cfg.
But, if you do not permission to change the driver letter, just replace paths in fpc.cfg. It is boring, I know, but works.

Marcos Douglas

Reply by email

William Oliveira Ferreira
to Marcos Douglas

but could i use relative paths or they must be absolute? ________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o

2011/6/17 Marcos Douglas

Show quoted text 22 lines
2011/6/17 William Oliveira Ferreira : > 'cos sometimes i use my pendrive on PCs that i doesn't rights to change > drive letter... > > > > I wanna use it on my pendrive to build applications on any windows, updating > only one lazarus installation when it's necessary... The only problem is fpc.cfg. But, if you do not permission to change the driver letter, just replace paths in fpc.cfg. It is boring, I know, but works. Marcos Douglas -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/ba3c4a04/attachment.html>

Reply by email

leledumbo
to Unknown author: For me is the same thing :D . # #lazarus-br em irc.freenode.org Lazarus, o pascal ainda…

I have a
http://free-pascal-lazarus.989080.n3.nabble.com/file/n3076763/LazarusPortable.zip portable launcher source code extracted and modified from original version by Juan A Melendez (WARNING: kinda i386-win32 centric, please modify as necessary). Put this launcher in a directory, inside the directory create App and Data folder. Put lazarus folder under App, fpc under lazarus, without any version (e.g. the path to fpc.exe should be fpc\bin\i386-win32 instead of fpc\2.4.2\bin\i386-win32 or similar). Next, copy lazarus folder from %USERPROFILE%\Local Settings\Application Data to Data folder. Done. Just remember to always execute from the portable launcher and you'll be OK.

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Portable-Version-of-Lazarus-tp3075673p3076763.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

Florian Klämpfl
to Marcos Douglas
Marcos Douglas wrote
2011/6/17 William Oliveira Ferreira : > but could i use relative paths or they must be absolute? I think just absolute.

At least FPC trunk allows to use environment variables in fpc.cfg by surrouding them with dollar signs.

Reply by email

Graeme Geldenhuys
to Florian Klämpfl: At least FPC trunk allows to use environment variables in fpc.cfg by surrouding them with…
Florian Kl?mpfl wrote
At least FPC trunk allows to use environment variables in fpc.cfg by surrouding them with dollar signs.

Very nice feature. It will come in very handy, and simplify the fpc.cfg, compare to using #INCLUDE

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Marco van de Voort
to Mattias Gaertner: On Fri, 17 Jun 2011 14:14:38 +0200 Yes, the fpc.cfg is not portable. And fpc has some…
Mattias Gaertner wrote 10 lines
> > The Lazarus is portable by default. I use it in a external HD without problems. > > But you have to initialize Lazarus with --pcp parameter. > > That doesn't solve the driveletter changing. If I understood everything > correctly, for that you also need to rewrite the fpc.cfg Yes, the fpc.cfg is not portable. And fpc has some fixed defaults, which IMO are not very helpful. At least I don't know any Linux or Mac where these defaults work. But I do know some systems with left overs where these defaults create misleading error messages.

Explain?!?

Reply by email