Compile OSE 3.0.0 for redistribution -- HOW??

Discussions related to using the OSE version of VirtualBox.
Post Reply
nloding
Posts: 3
Joined: 7. Jul 2009, 19:07
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Vista Business

Compile OSE 3.0.0 for redistribution -- HOW??

Post by nloding »

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
MKhaos7
Posts: 81
Joined: 6. Apr 2009, 16:19
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows, Linux, BSD
Location: Brazil - Aracaju/SE

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

Post by MKhaos7 »

For ubuntu guests you best bet is to use the following command:

Code: Select all

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

dpkg -i virtualbox-ose_*.deb
Move the .deb to another machine and repeat the dpkg step.
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??

Post by nloding »

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!
MKhaos7
Posts: 81
Joined: 6. Apr 2009, 16:19
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows, Linux, BSD
Location: Brazil - Aracaju/SE

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

Post by MKhaos7 »

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.
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??

Post by nloding »

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!
Post Reply