Hello!
At some times ago. this list have a discussion of an portable version of the Lazarus.
Where I can download this version?
Mailing lists / lazarus / 2011-06
Portable Version of Lazarus.
24 messages · 9 people · –
- MMarcos Douglas 8
- WWilliam Oliveira Ferreira 4
- GGraeme Geldenhuys 3
- UUnknown author 3
- MMarco van de Voort 2
- AAlexander Klenin 1
- +3 more
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
Marcos Douglas wrote 6 lines
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
Marco van de Voort wroteThat 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 -
That doesn't solve the driveletter changing. If I understood everything correctly, for…
Show quoted text 10 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.
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
That doesn't solve the driveletter changing. If I understood everything correctly, for…
Marco van de Voort wrote 12 lines
Aha! But I always use the same drive letter! ;-)
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/c525c1ff/attachment-0001.html>
Correct, and a simple application launcher (small utility appl) can do this quite nicely.…
Graeme Geldenhuys wrote 19 lines
I did more simpler:
One script that verify the driver letter and starts Lazarus with --pcp.
Marcos Douglas
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
I use on Windows with sucess. Not need to modify de fpc.cfg in this case.
Marcos Douglas
but i not... Could i use relative path in fpc.cfg? ________________________________…
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
Marcos Douglas wrote 16 lines
We can create a launcher. Is more easy to use. Who can help me?
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
On Fri, Jun 17, 2011 at 9:34 AM, Graeme Geldenhuys I did more simpler: One script that…
Marcos Douglas wroteI 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 -
2011/6/17 : A launcher is easier then a script? See my BAT script: @echo off set…
Marcos Douglas wrote 26 lines
For me is the same thing :D .
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/b136ddc3/attachment-0001.html>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/ebf99a63/attachment.html>
'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
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110617/ba3c4a04/attachment.html>
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.
but could i use relative paths or they must be absolute? ________________________________
2011/6/17 William Oliveira Ferreira :
but could i use relative paths or they must? be absolute?
I think just absolute.
Marcos Douglas
Marcos Douglas wrote2011/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.
For me is the same thing :D . # #lazarus-br em irc.freenode.org Lazarus, o pascal ainda…
2011/6/18
:
For me is the same thing :D .
If you are on Windows, note also CodeTyphoon:
http://www.pilotlogic.com/sitejoom/index.php?option=com_content&view=article&id=96:codetyphon-about&catid=68:codetyphon-general&Itemid=148
I am using it right now with moderate success for teaching children.
At least FPC trunk allows to use environment variables in fpc.cfg by surrouding them with…
Florian Kl?mpfl wroteAt 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
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
Explain?!?
