Difference between revisions of "CrossCompilingOsX"

From Inkscape Wiki
Jump to navigation Jump to search
(Created page with "This is being worked on, please maintain your patience. I have successfully done this before but I don't remember what I did, so I will have to recreate a lot of stuff.")
 
m (add info about chroot)
Line 1: Line 1:
This is being worked on, please maintain your patience. I have successfully done this before but I don't remember what I did, so I will have to recreate a lot of stuff.
This is being worked on, please maintain your patience. I have successfully done this before but I don't remember what I did, so I will have to recreate a lot of stuff.
You need:
* a mind so deadset on cross-compiling you won't stop to think
* the Xcode .dmg for your target OS X version
* root access to your build system
* a good processor and a lot of RAM
I used Ubuntu 14.04 "Trusty Tahr" for doing the initial chroot. The process was as follows:
apt-get install dchroot debootstrap
Then edit /etc/schroot/schroot.conf with your favourite text editor, and add this at the end:
[trusty]
description=Ubuntu Trusty
location=/var/chroot
priority=3
users='''your_username'''
groups=sbuild
root-groups=root
Install a base system:
sudo debootstrap --variant=buildd --arch '''amd64''' trusty /var/chroot/ '''http://mirror.url.com/ubuntu/'''
where '''http://mirror.url.com/ubuntu/''' can be any of [https://launchpad.net/ubuntu/+archivemirrors|these mirrors].
Now copy your resolv.conf for internet access (required):
sudo cp /etc/resolv.conf /var/chroot/etc/resolv.conf
Finally, chroot into your target:
sudo chroot /var/chroot
You should now have a working chroot, free for you to destroy as you see fit.
(from https://help.ubuntu.com/community/BasicChroot)
More coming...

Revision as of 22:00, 3 June 2014

This is being worked on, please maintain your patience. I have successfully done this before but I don't remember what I did, so I will have to recreate a lot of stuff.

You need:

  • a mind so deadset on cross-compiling you won't stop to think
  • the Xcode .dmg for your target OS X version
  • root access to your build system
  • a good processor and a lot of RAM

I used Ubuntu 14.04 "Trusty Tahr" for doing the initial chroot. The process was as follows:

apt-get install dchroot debootstrap

Then edit /etc/schroot/schroot.conf with your favourite text editor, and add this at the end:

[trusty]
description=Ubuntu Trusty
location=/var/chroot
priority=3
users=your_username
groups=sbuild
root-groups=root

Install a base system:

sudo debootstrap --variant=buildd --arch amd64 trusty /var/chroot/ http://mirror.url.com/ubuntu/

where http://mirror.url.com/ubuntu/ can be any of mirrors.

Now copy your resolv.conf for internet access (required):

sudo cp /etc/resolv.conf /var/chroot/etc/resolv.conf

Finally, chroot into your target:

sudo chroot /var/chroot

You should now have a working chroot, free for you to destroy as you see fit.

(from https://help.ubuntu.com/community/BasicChroot)

More coming...