How to build VirtualBox 5.0.2 on Mac OS X 10.10.4 (Yosemite)
Posted: 30. Sep 2015, 22:49
How to build VirtualBox 5.0.2 on Mac OS X 10.10.4 (Yosemite):
---------
Basic VirtualBox build instructions are found here:
https://www.virtualbox.org/wiki/Mac%20O ... structions
Additional, and somewhat more helpful VirtualBox build instructions:
http://blog.wildducktheories.com/buildi ... -osx-10-9/
---------
-- Create VirtualBox build directory
cd $HOME
mkdir VirtualBox
cd VirtualBox
---------
-- Download Xcode 4.1 (requires Apple Developer username and password)
-- from https://developer.apple.com/downloads/?q=xcode
-- http://adcdownload.apple.com/Developer_ ... eopard.dmg
-- If you already have the xcode_4.1_for_snow_leopard.dmg file in your Downloads folder:
-- Create Xcode folder and copy 4.1 from Downloads directory:
mkdir Xcode_4.1
cp $HOME/Downloads/installxcode_41_lion.dmg Xcode_4.1
cd Xcode_4.1
---------
-- Use this script to extract parts of Xcode 4.1:
git clone https://gist.github.com/f05d97da2b29d4a03192.git
mv f05d97da2b29d4a03192/extract-xcode41.sh .
rm -rf f05d97da2b29d4a03192/
chmod 755 extract-xcode41.sh
sudo ./extract-xcode41.sh
---------
-- Install Mac Ports from:
-- https://www.macports.org
-- Open a new terminal window and use the port command to install the following pieces:
sudo port install libidl +universal doxygen texlive texlive-latex-extra texlive-fonts-extra cdrtools
---------
-- Install homebrew:
-- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homeb ... er/install)"
---------
-- Use homebrew to install openssl source tree:
brew install openssl --build-from-source
---------
-- Use homebrew to install the Qt Framework:
brew install qt
---------
-- Use svn to checkout VirtualBox 5.0.2 source code:
cd ..
svn co -r r57334 http://www.virtualbox.org/svn/vbox/trunk vbox
cd vbox
rm -rf .svn
---------
Fix error in cofigure script:
---------
In configure: replace line at line #2151 with:
check_xcode_sdk_path "$WITH_XCODE_DIR"
---------
Run configure:
./configure --disable-hardening --target-arch=amd64 --with-xcode-dir=$HOME/VirtualBox/Xcode_4.1/xcode41-partial --disable-docs
---------
Finally, build VirtualBox:
source env.sh
kmk
---------
This step is necessary to disable the kernel extension signing requirement:
To disable the kext signing security setting:
sudo nvram boot-args=kext-dev-mode=1
After changing this setting you need to restart the computer to have OS X recognize it.
It is important to note that the kext-signing setting is global, if you disable it you should be careful to
only install system drivers from sources that you trust.
To reenable again use:
sudo nvram -d boot-args
Restart your computer
---------
Load kernel extensions:
cd $HOME/VirtualBox/vbox/out/darwin.amd64/release/dist/
./loadall.sh
---------
Basic VirtualBox build instructions are found here:
https://www.virtualbox.org/wiki/Mac%20O ... structions
Additional, and somewhat more helpful VirtualBox build instructions:
http://blog.wildducktheories.com/buildi ... -osx-10-9/
---------
-- Create VirtualBox build directory
cd $HOME
mkdir VirtualBox
cd VirtualBox
---------
-- Download Xcode 4.1 (requires Apple Developer username and password)
-- from https://developer.apple.com/downloads/?q=xcode
-- http://adcdownload.apple.com/Developer_ ... eopard.dmg
-- If you already have the xcode_4.1_for_snow_leopard.dmg file in your Downloads folder:
-- Create Xcode folder and copy 4.1 from Downloads directory:
mkdir Xcode_4.1
cp $HOME/Downloads/installxcode_41_lion.dmg Xcode_4.1
cd Xcode_4.1
---------
-- Use this script to extract parts of Xcode 4.1:
git clone https://gist.github.com/f05d97da2b29d4a03192.git
mv f05d97da2b29d4a03192/extract-xcode41.sh .
rm -rf f05d97da2b29d4a03192/
chmod 755 extract-xcode41.sh
sudo ./extract-xcode41.sh
---------
-- Install Mac Ports from:
-- https://www.macports.org
-- Open a new terminal window and use the port command to install the following pieces:
sudo port install libidl +universal doxygen texlive texlive-latex-extra texlive-fonts-extra cdrtools
---------
-- Install homebrew:
-- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homeb ... er/install)"
---------
-- Use homebrew to install openssl source tree:
brew install openssl --build-from-source
---------
-- Use homebrew to install the Qt Framework:
brew install qt
---------
-- Use svn to checkout VirtualBox 5.0.2 source code:
cd ..
svn co -r r57334 http://www.virtualbox.org/svn/vbox/trunk vbox
cd vbox
rm -rf .svn
---------
Fix error in cofigure script:
---------
In configure: replace line at line #2151 with:
check_xcode_sdk_path "$WITH_XCODE_DIR"
---------
Run configure:
./configure --disable-hardening --target-arch=amd64 --with-xcode-dir=$HOME/VirtualBox/Xcode_4.1/xcode41-partial --disable-docs
---------
Finally, build VirtualBox:
source env.sh
kmk
---------
This step is necessary to disable the kernel extension signing requirement:
To disable the kext signing security setting:
sudo nvram boot-args=kext-dev-mode=1
After changing this setting you need to restart the computer to have OS X recognize it.
It is important to note that the kext-signing setting is global, if you disable it you should be careful to
only install system drivers from sources that you trust.
To reenable again use:
sudo nvram -d boot-args
Restart your computer
---------
Load kernel extensions:
cd $HOME/VirtualBox/vbox/out/darwin.amd64/release/dist/
./loadall.sh