版本 39 和 Solaris build instructions 的 版本 40 之間的變動
- 時間撮記:
- 2011-5-26 上午10:10:57 (13 年 前)
圖例:
- 未更動
- 新增
- 刪除
- 修改
-
Solaris build instructions
v39 v40 62 62 == Building !VirtualBox == 63 63 64 1. Change to the root directory of the sources and execute the configure script: `./configure --disable-hardening`. 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 `env.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). 64 1. Change to the VirtualBox root directory of the sources and execute the configure script: 65 {{{ 66 `./configure --disable-hardening` 67 }}} 68 69 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 `env.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). 65 70 66 71 2. Whenever you want to build !VirtualBox, you have to open a shell and source the generated environment setup script 'env.sh', i.e. do … … 69 74 }}} 70 75 71 3. To build a release package, type `kmk all`. This produces the required binaries in `out/solaris.x86/release/bin/`. (If you want to build a debug version, type `kmk BUILD_TYPE=debug`.) 76 3. To build a release package, type 77 {{{ 78 kmk all 79 }}} 80 This produces the required binaries in `out/solaris.x86/release/bin/`. If you want to build a debug version, type: 81 {{{ 82 kmk BUILD_TYPE=debug 83 }}} 72 84 85 4. If you made a hardened build (that is, you omitted the --disable-hardened switch from configure) you have to set some symbolic links manually to be able to start VMs from the bin/ directory: 86 87 {{{ 88 cd out/solaris.amd64/release/bin/components 89 ln -s ../VBoxDDU.so . 90 ln -s ../VBoxREM.so . 91 ln -s ../VBoxRT.so . 92 ln -s ../VBoxVMM.so . 93 ln -s ../VBoxXPCOM.so . 94 }}} 73 95 74 96 == Running your build == … … 95 117 The config script only (re)loads drivers that are found in the appropriate locations (don't forget to copy the ".conf" files). 96 118 119 If you made a ''hardened build'', make sure that the setuid stubs have the correct permissions: 120 {{{ 121 for f in VirtualBox VBoxHeadless VBoxSDL VBoxBFE VBoxNetDHCP VBoxNetAdpCtl; do 122 chown root.root $f 123 chmod 4511 $f 124 done 125 }}} 126 127 97 128 Finally, you can start one of the frontends, e.g. 98 129 {{{