Version 29 (modified by 17 years ago) ( diff ) | ,
---|
Mac OS X build instructions
The Mac OS X port is not yet completed. These instructions are here for those who wish to help out.
Prerequisites on Mac OS X
- Mac OS X running on Intel hardware (PowerPC hardware is not supported).
- Xcode 2.4.1 or later (the GCC and SDKs packages suffices).
- Some things from MacPorts (http://www.macports.org/):
sudo port install i386-elf-gcc libidl subversion teTeX doxygen
Only i386-elf-gcc (for op.o in src/recompiler) and libidl (for the xpcom idl compiler) are required. The remainder is optional.
- xerces and xalan.
The xerces and xalan sources we use together with the appropriate kBuild makefiles can be found here: http://virtualbox.org/download/testcase/xerces-and-xalan-vbox-src.tar.bz2
Untar them into the VirtualBox trunk directory.
Add--build-xalan
as argument toconfigure
if using these sources.
- SDL 1.2.12 or later 1.2.x release.
http://libsdl.org/download-1.2.php
- Qt/Mac 3.3.8 (optional).
Add--disable-qt
as argument toconfigure
if missing.
Building VirtualBox
- Change to the root directory of the sources and execute the configure script:
./configure --build-xalan --disable-qt
If it finds everything it needs, it will create a file called 'AutoConfig.kmk' containing paths to the various tools on your system. Also, it will create an environment setup script called configure.sh. This step only has to be done once (if something changes in your build tool setup, you might have to repeat it but keep in mind that both output files will be overwritten). - Whenever you want to build VirtualBox, you have to open a shell and source the generated environment setup script 'env.sh', i.e. do
. ./env.sh
- To build type
kmk
The default is to a release build, should you wish to do a debug or profile build addBUILD_TYPE=debug
orBUILD_TYPE=profile
as argument to kmk or export it as an environment variable in your shell.
Running VirtualBox
As mentioned elsewhere, the Mac OS X port of VirtualBox is work in progress. Things might therefore not work as expected and break at random times.
- Load the kernel extension module. This can be found in
out/darwin.x86/release/dist
along with a small script (load.sh
) to load it. Execute and make sure the module loads successfully. If for some reason, you want to run VirtualBox without the module, this is how it works (be warned, it will be extremely slow):export VBOX_SUPLIB_FAKE="fake"
- Enter
out/darwin.x86/release/dist/VirtualBox.app/Contents/MacOS/
. - Run
./VBoxBFE -m 32
If you have a knoppix ISO or similar hanging around, you can try start it like this:
./VBoxBFE -m 128 -cdrom /Users/name/Desktop/knoppix-3.7.iso -boot d -natdev1 080286000042
Note:
See TracWiki
for help on using the wiki.