Sign in Join

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

Mailing lists / lazarus / 2009-02

Lazarus SVN on linux and virtual box WinXP

12 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Reenen Laurie

Hi all,

I have my Lazarus SVN that I have for Ubuntu.

A while ago I installed Virtual box and WinXP. I want to know if it's possible for me to keep my Virtual box's Lazarus updated from the SVN updates I do via linux?

I don't think it's 100% possible to share the source, but hope that I can keep my versions fairly the same...

Are any of you doing this, or something similar?

Regards,
-Reenen

o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090211/82b21e97/attachment.html

Reply by email

Hans-Peter Diettrich
to Reenen Laurie
A while ago I installed Virtual box and WinXP. I want to know if it's possible for me to keep my Virtual box's Lazarus updated from the SVN updates I do via linux?

You can update your working copies from the same repository, but you have to do it separately, for every single copy.

I don't know about Virtual box, perhaps you can share one working copy between the host and guest system? VMware at least supports shared folders, this is what I'm using.

DoDi

Reply by email

Graeme Geldenhuys
to Reenen Laurie: I have my Lazarus SVN that I have for Ubuntu. A while ago I installed Virtual box and…

2009/2/11 Reenen Laurie :

A while ago I installed Virtual box and WinXP. I want to know if it's possible for me to keep my Virtual box's Lazarus updated from the SVN updates I do via linux?

Under VMWare you can setup "shared folders" between the host and the vm sessions. I believe VirtualBox also has that feature. I do this for all our projects and frameworks (tiOPF, fpGUI etc) and can't imagine that it wouldn't be possible with Lazarus.

At the moment I don't share Lazarus source, but rather export the host one (svn export /temp/lazarus) so that the VM session has it's own copy. That way I can move the VM session between machines and still start up Lazarus.
The other reason I use a exported version of Lazarus, is because SubVersion waists a lot of disk space (double copies of everything in the hidden .svn directories) and I try and limit the disk space in the VM sessions. (another reason to use Git instead).

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Reenen Laurie
to Graeme Geldenhuys

Would you think it's possible to run (and compile) lazarus on both linux and windows from the same shared drive? (Because yes, Virtual Box has it).

Regards,
-Reenen

Graeme Geldenhuys wrote 33 lines
2009/2/11 Reenen Laurie : > A while ago I installed Virtual box and WinXP. I want to know if it's > possible for me to keep my Virtual box's Lazarus updated from the SVN > updates I do via linux? Under VMWare you can setup "shared folders" between the host and the vm sessions. I believe VirtualBox also has that feature. I do this for all our projects and frameworks (tiOPF, fpGUI etc) and can't imagine that it wouldn't be possible with Lazarus. At the moment I don't share Lazarus source, but rather export the host one (svn export /temp/lazarus) so that the VM session has it's own copy. That way I can move the VM session between machines and still start up Lazarus. The other reason I use a exported version of Lazarus, is because SubVersion waists a lot of disk space (double copies of everything in the hidden .svn directories) and I try and limit the disk space in the VM sessions. (another reason to use Git instead). Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090212/77dde99f/attachment.html

Reply by email

Lukas Gradl
to Reenen Laurie: I have my Lazarus SVN that I have for Ubuntu. A while ago I installed Virtual box and…
Show quoted text 13 lines
Hi all, I have my Lazarus SVN that I have for Ubuntu. A while ago I installed Virtual box and WinXP. I want to know if it's possible for me to keep my Virtual box's Lazarus updated from the SVN updates I do via linux? I don't think it's 100% possible to share the source, but hope that I can keep my versions fairly the same... Are any of you doing this, or something similar?

Reenen,

I'm working with one SVN-Copy of Lazarus on a Linux-Server. This server is accessed by a linux-workstation and a winxp-workstation.

Both Systems use the same Source without any problems - but I've to admit, that I use the WinXP-Systems for bugfixing and compilation only - the main development is done on the Linux-System.

Only thing I've to take care of is the recompilation of Lazarus itself - I never start it on both systems simultanously...

Hope that helps

Lukas

---------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-720-300168-0 Fax: +43-512-341033-19 ----------------------------

Reply by email

Reenen Laurie
to Lukas Gradl

Great! I am quite excited about the prospect. In terms of the fpc where is it located? Locally on the xp and linux machines?

Regards -Reenen

Lukas Gradl wrote 48 lines
Reenen Laurie schrieb: > Hi all, > > I have my Lazarus SVN that I have for Ubuntu. > > A while ago I installed Virtual box and WinXP. I want to know if it's > possible for me to keep my Virtual box's Lazarus updated from the SVN > updates I do via linux? > > I don't think it's 100% possible to share the source, but hope that I > can keep my versions fairly the same... > > Are any of you doing this, or something similar? > Reenen, I'm working with one SVN-Copy of Lazarus on a Linux-Server. This server is accessed by a linux-workstation and a winxp-workstation. Both Systems use the same Source without any problems - but I've to admit, that I use the WinXP-Systems for bugfixing and compilation only - the main development is done on the Linux-System. Only thing I've to take care of is the recompilation of Lazarus itself - I never start it on both systems simultanously... Hope that helps Lukas -- ---------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-720-300168-0 Fax: +43-512-341033-19 ---------------------------- _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions.

Reply by email

Lukas Gradl
to Reenen Laurie
Great! I am quite excited about the prospect. In terms of the fpc where is it located? Locally on the xp and linux machines?

The FPC-Source is on the Shared Server-Drive. The compiled binary is local on the workstations (using make install PREFIX=[/usr|C:\FPC] on the workstations)

regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------

Reply by email

Graeme Geldenhuys
to Reenen Laurie: Would you think it's possible to run (and compile) lazarus on both linux and windows from…

2009/2/12 Reenen Laurie :

Would you think it's possible to run (and compile) lazarus on both linux and windows from the same shared drive? (Because yes, Virtual Box has it).

Yes it will work. All "unit" directories contain the compiled platform directories inside them. eg: <laz>/lcl/units/i386-linux or <laz>/lcl/units/i386-win32

So the compiled units will not overwrite each other or interfere with each other. As for the compiler, Lukas explained how to install that, using the INSTALL_PREFIX=<path> parameter.
Linux: /opt/fpc-2.2.3
/bin
/lib
/src <-- svn checkout
/opt/fpc-2.3.1
/bin
/lib
/src <-- svn checkout
/opt/fpc <-- symlink to whatever version I want the default

Windows:
C:\FPC\2.2.3\
\bin
\lib
\src <-- svn checkout or exported version from Linux C:\FPC\2.3.1\
\bin
\lib
\src <-- svn checkout or exported version from Linux

Like I said, I like to have a self-contained VM session for the larger projects like Lazarus or FPC. If I move the VM session, those must still work. For smaller projects, I share the code like fpGUI Toolkit. If I work from a different host, it's quick to 'svn co ...' the smaller projects inside the VM session.

I have a development VM session for Linux as well. This serves as a backup in case my development PC breaks. I can then move to a temp PC, start up the VM session (Windows or Linux) and continue working while the IT department orders me that brand new Quad Core machine. :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Lukas Gradl: The FPC-Source is on the Shared Server-Drive. The compiled binary is local on the…
Lukas Gradl wrote
The FPC-Source is on the Shared Server-Drive. The compiled binary is local on the workstations (using make install PREFIX=[/usr|C:\FPC] on the workstations)

As far as I know (and what I use), it's: INSTALL_PREFIX

Here is my build script...

----------[ startbuild.sh ]-------------------
make clean
make all
make install INSTALL_PREFIX=/opt/fpc_2.2.3
--------------------[ end ]-----------------------

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Reenen Laurie
to Graeme Geldenhuys

Cool, I'll be playing around on the weekend to get it to work.

Graeme Geldenhuys wrote 30 lines
On Thu, Feb 12, 2009 at 8:18 PM, Lukas Gradl wrote: > > The FPC-Source is on the Shared Server-Drive. The compiled binary is > local on the workstations (using make install PREFIX=[/usr|C:\FPC] on > the workstations) As far as I know (and what I use), it's: INSTALL_PREFIX Here is my build script... ----------[ startbuild.sh ]------------------- make clean make all make install INSTALL_PREFIX=/opt/fpc_2.2.3 --------------------[ end ]----------------------- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090213/4d035e86/attachment.html

Reply by email

Lukas Gradl
to Graeme Geldenhuys: As far as I know (and what I use), it's: INSTALL_PREFIX Here is my build script...…
Show quoted text 15 lines
On Thu, Feb 12, 2009 at 8:18 PM, Lukas Gradl wrote: > The FPC-Source is on the Shared Server-Drive. The compiled binary is > local on the workstations (using make install PREFIX=[/usr|C:\FPC] on > the workstations) As far as I know (and what I use), it's: INSTALL_PREFIX Here is my build script... ----------[ startbuild.sh ]------------------- make clean make all make install INSTALL_PREFIX=/opt/fpc_2.2.3 --------------------[ end ]-----------------------

Perhaps they're equal, as I use

make distclean;make all;make install PREFIX=/usr

Works so far...

regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------

Reply by email

Reenen Laurie
to Lukas Gradl

My first attempts have got it running, but I can't get the packages compiled in..

I am not using many packages... lnet and glscene. GLscene got a compilation error... not sure why, but there is a whole explanation with the bug... so I relaxed about it. But I just tried to compile with lnet, and that didn't fail, but I just didn't see lnet afterwards...

Now I'll check if it still works on linux after all my windows escapades. My old linux binary could still compile a new project... So that side looks like it's working well...

Anyway, I got to go to bed...

-Reenen

Lukas Gradl wrote 41 lines
Graeme Geldenhuys schrieb: > On Thu, Feb 12, 2009 at 8:18 PM, Lukas Gradl wrote: >> The FPC-Source is on the Shared Server-Drive. The compiled binary is >> local on the workstations (using make install PREFIX=[/usr|C:\FPC] on >> the workstations) > > As far as I know (and what I use), it's: INSTALL_PREFIX > > Here is my build script... > > ----------[ startbuild.sh ]------------------- > make clean > make all > make install INSTALL_PREFIX=/opt/fpc_2.2.3 > --------------------[ end ]----------------------- > Perhaps they're equal, as I use make distclean;make all;make install PREFIX=/usr Works so far... regards Lukas -- -------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 -------------------------- _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20090214/f8317ec6/attachment.html

Reply by email