forked from peercoin/peercoin
-
Notifications
You must be signed in to change notification settings - Fork 17
OS X Cross Compiled on Linux
Ben Rossi edited this page Jun 17, 2014
·
8 revisions
DEPRECATED! - NEEDS TO BE UPDATED WITH RECENT CHANGES TO THE BULID PROCESS RETAINING THE INFORMATION IN CASE WE ARE ABLE TO MAKE THIS WORK IN THE FUTURE.
Resources: https://github.com/tpoechtrager/osxcross
- Download and install VirtualBox
- Download Ubuntu 14.02 image
- Configure a new virtual machine
- Set up a network shared drive
- Install Ubuntu
- From Terminal,
sudo apt-get update
sudo apt-get install git
- Confirm network drive,
sudo adduser USERNAME vboxsf
- Restart
- Devices: Computer > Media > sf_SHAREDFOLDER
https://github.com/tpoechtrager/osxcross
git clone https://github.com/tpoechtrager/osxcross
cd /media/sf_SHAREDFOLDER/osxcross/tools
sudo ./get_dependencies.sh
- Boot into OS X
- [Download Xcode (used 5.1)]
- [Mount Xcode.dmg (Open With -> DiskImageMounter)]
- Run:
./tools/gen_sdk_package.sh
(from the OSXCross package). This script will generate a packaged SDK for each version of OS X that is contained in the Xcode disk image. You only need to move the one you need in the next step (todo: need to specify if it's going to be 10.8 or 10.9) - Copy the packaged SDK (.tar. or *.pkg) on a USB Stick
- Reboot back into Linux
- Copy or move the SDK into the tarball/ directory of OSXCross
(FIRST TEST PASS: OSX10.9SDK with min version 10.7)
- From /media/sf_SHAREDFOLDER/osxcross, run
OSX_VERSION_MIN=10.7 ./build.sh
(It will search 'tarballs' for your SDK and then build in its own directory)
sudo apt-get install libmpc-dev libmpfr-dev libgmp-dev
./build_gcc.sh