Changes between Version 15 and Version 16 of Build instructions
- Timestamp:
- Dec 2, 2006 8:03:58 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Build instructions
v15 v16 11 11 == Linux hosts == 12 12 13 W e at InnoTek mostly use [http://www.gentoo.org Gentoo], so the following build instructions apply to that environment. Things should not be much different for other distributions though. If you want to supplybuild instructions (especially package names) for other distributions, please contact InnoTek.13 While we try to not favor any distribution, we only build with certain distributions. This includes Debian, Ubuntu, Gentoo and Red Hat Enterprise Linux. Things should not be much different for other distributions though. If you want to supply specific build instructions (especially package names) for other distributions, please contact InnoTek. 14 14 15 15 === Prerequisites on Linux === … … 17 17 You need: 18 18 19 * GCC 3.2.3 or later (when using GCC 4.x, some precompiled objects will be used for the recompiler as they require GCC 3.x)19 * GCC 3.2.3 or later (when using GCC 4.x, some precompiled objects will be used for the recompiler as they currently require GCC 3.x) 20 20 * as86 (real mode assembler) 21 21 * bcc (Bruce Evans C Compiler) … … 26 26 * Qt 3.3.x (with x >= 5 if possible) 27 27 * libIDL 28 * Relatively recent WINE (!VirtualBox uses some Win32 executables during the build process) 29 * Java (http://java.sun.com/j2se/1.5.0/download.jsp) 28 * Relatively recent WINE (!VirtualBox uses some Win32 executables during the build process but this is optional) 30 29 * libSDL (with sdl-ttf) 31 30 * Optional: Doxygen 1.4+ … … 43 42 === Building on Linux === 44 43 45 1. Change to the root directory of the sources and e nter our build shell environment: `tools/env.sh`.44 1. Change to the root directory of the sources and execute the configure script: `./configure`. If it finds everything it needs, it will create a file called 'Config.kmkconf' 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). 46 45 47 2. To build a release package, type `kmk BUILD_TYPE=release all packing`. This produces the installation package `out/linux/release/bin/VirtualBox.run`. 46 2. Whenever you want to build !VirtualBox, you have to open a shell and source the generated environment setup script 'configure.sh', i.e. do 47 {{{ 48 . ./configure.sh 49 }}} 48 50 49 3. To install this package on your system, run it (as the superuser). So, for example, `cd out/linux/release/bin` and `sudo sh VirtualBox.run install`. 51 3. To build a release package, type `kmk all packing`. This produces the installation package `out/linux/release/bin/VirtualBox.run`. (If you want to build a debug version, type `kmk BUILD_TYPE=debug all packing`.) 52 53 4. To install this package on your system, run it (as the superuser). So, for example, `cd out/linux/release/bin` and `sudo sh VirtualBox.run install`. 50 54 51 55 === Running your installed build on Linux === 52 56 53 The command sequence outlined above installs !VirtualBox in `/opt/VirtualBox-<version>` and the Linux kernel module in `lib/modules`. A shell script wrapper is put in `/usr/bin/VirtualBox`, so you should be able to run `VirtualBox` from everywhere. You will need to load the Linux kernel module before running `VirtualBox`, so a `modprobe vboxdrv` will also be necessary.57 The command sequence outlined above installs !VirtualBox in `/opt/VirtualBox-<version>` and the Linux kernel module in `lib/modules`. A shell script wrapper called `VBox.sh` will be installed and symlinked to from `/usr/bin/VirtualBox` (and other symlinks), so you should be able to run `VirtualBox` from everywhere. You will need to load the Linux kernel module before running `VirtualBox`, so a `modprobe vboxdrv` will also be necessary. 54 58 55 59 == Windows hosts == … … 61 65 * DirectX SDK (http://www.microsoft.com/downloads/details.aspx?familyid=C72D9F1E-53F3-4747-8490-6801D8E8B4EF&displaylang=en) 62 66 * MingW GCC v3.3.x or v3.4.x with matching binutils, runtime, and w32api (http://www.mingw.org/download.shtml). 63 * Java (http://java.sun.com/j2se/1.5.0/download.jsp), runtime is sufficient (is this actually required for OSE?) 67 To create the installation package: 64 68 * .NET, version 2.0 recommended 69 * Microsoft Windows Installer XML (WiX) toolkit: http://sourceforge.net/projects/wix/ 70 * Microsoft Driver Installation Framework Tools (DIFx): http://www.microsoft.com/whdc/driver/install/DIFxtls.mspx 65 71 66 72 === Building on Windows ===