Compile OSE 3.0.0 for redistribution -- HOW??

Discussions related to using the OSE version of VirtualBox.

Compile OSE 3.0.0 for redistribution -- HOW??

Postby nloding » 7. Jul 2009, 19:13

I'm something a newbie when it comes to compiling software. Here's my ultimate goal: To build the 3.0.0 OSE edition on Ubuntu, make it a tarball, and be able to move it to another machine and install it there. So I'm compiling the binaries/install on one machine, copying the files to another and installing it there.

I've followed the "build instructions" but am still having issues. I installed all the required software and was able to run the ./configure (not hardened) and source ./env.sh commands without issue. I also ran kmk all and it worked just fine as well. This left me with the src and release directories. I tried just copying the release directory over, but that didn't work -- I couldn't make install it.

What files do I need to move over? How should I be doing this?

Thanks!!

--Nathan
nloding
 
Posts: 3
Joined: 7. Jul 2009, 19:07
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Vista Business

Re: Compile OSE 3.0.0 for redistribution -- HOW??

Postby MKhaos7 » 7. Jul 2009, 21:48

For ubuntu guests you best bet is to use the following command:
Code: Select all   Expand viewCollapse view
dpkg-buildpackage -b -us -uc


This will build all the source without any intervantion need on your side. In the end you will have a .deb file on the parent folder.
You can than install this with

Code: Select all   Expand viewCollapse view
dpkg -i virtualbox-ose_*.deb


Move the .deb to another machine and repeat the dpkg step.
MKhaos7
 
Posts: 81
Joined: 6. Apr 2009, 16:19
Location: Brazil - Aracaju/SE
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows, Linux, BSD

Re: Compile OSE 3.0.0 for redistribution -- HOW??

Postby nloding » 7. Jul 2009, 22:38

Great idea! But, I'm still a newbie, so between what steps do I run the dpkg command? And where in the command do I specify the folder/binaries/source (which?) that it's packaging?

1) Get source
2) ./configure
3) source ./env.sh
4) kmk all
5) make
6) make install

THANKS!
nloding
 
Posts: 3
Joined: 7. Jul 2009, 19:07
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Vista Business

Re: Compile OSE 3.0.0 for redistribution -- HOW??

Postby MKhaos7 » 8. Jul 2009, 01:14

In some quick steps:

1) Get the source
2) Uncompress the source
3) cd into the source dir
4) dpkg-buildpackage -b -us -uc
5) cd ..
6) dpkg -i virtualbox-ose*.deb

And you are done :)
Since you already downloaded everything you need to compile virtualbox you should get no problems when running dpkg-buildpackage
Last edited by MKhaos7 on 9. Jul 2009, 02:11, edited 1 time in total.
MKhaos7
 
Posts: 81
Joined: 6. Apr 2009, 16:19
Location: Brazil - Aracaju/SE
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows, Linux, BSD

Re: Compile OSE 3.0.0 for redistribution -- HOW??

Postby nloding » 8. Jul 2009, 20:15

That worked beautifully! I did have to install a few more dependencies, but after those were in place, I was able to create the package, move it, and install it. Thanks!
nloding
 
Posts: 3
Joined: 7. Jul 2009, 19:07
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Vista Business


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest