/buildtools/ -build-cross-tools x86_gcc2 -build-cross-tools x86. configure -use-xattr -cross-tools-source. Copyright 1993-2002 Christopher Seiwald Step 4: Building the buildtoolsĬonfigure a GCC 2.95 Hybrid, from a non-Haiku platform To override an older system version of "bison", you enter: brew install bisonĪfter installing the prerequisite softwares, install the modified Haiku jam: Note that you'll need to install gnu less from the dupes repository as OS X comes with BSD less while Haiku requires GNU less.Īlso important: make sure you have the latest version of "bison" installed!) Next install the prerequisite software to build Haiku using the following command:īrew install cdrtools gawk wget nasm less mpfr gmp libmpc Install Homebrew using the ruby command line installer provided on the linked page. To install the prerequisite software using Homebrew instead, do the following: Note: the ARM port is not yet supported for OS X, MacPorts has mtools but is missing sfdisk at least. If you are using another shell, take a look a the shell documentation to see which file is parsed at login, and add the required commands. Check the file used by Bash (in the mentioned order) and add these lines to the used file:Įxport MANPATH=$MANPATH:/opt/local/share/manĮxport INFOPATH=$INFOPATH:/opt/local/share/info If you’re using Bash, you probably have a ~/.bash_profile or ~/.bash_login file, preventing bash to read ~/.profile. If you get an error “port: command not found”, the MacPorts shell configuration, stored in ~/.profile, is probably not configured correctly. You will be prompted for the administrator password of the current account. (Also important: make sure you have the latest version of "bison" installed!) Sudo port install cdrtools gawk wget nasm less mpfr gmp libmpc Close your Terminal, and enter in a new one: Install MacPorts (a standard Installer package is provided). Step 3: Install required software To install the prerequisite software using Macports do the following: You should now have two folders “haiku” and “buildtools” into the mounted disk image. Git clone Checkout the source code: git clone git:///haiku Or (if the git protocol is blocked by a firewall, or if you prefer to access the source through an encrypted channel): In this case, it is named “Haiku”, so if you chose another name, use it instead of “Haiku” after “/Volumes/”.Ĭheckout the buildtools: git clone git:///buildtools “/Volumes/Haiku” refers here (and in all this tutorial) to the mounted disk image name. Open a Terminal (in /Application/Utilities), and enter: Step 2: Fetching the buildtools and the Haiku source code If you want to remount it later, just double-click on the image file. The image is automatically mounted on the Desktop. Format: Mac OS Extended (Case-sensitive).Only the consumed space on the image will be used on your hard drive, so don’t be afraid of setting a big value. Size: Haiku sources, compiled objects and the resulting Haiku disk image will take around 2.7 GB, but you should put more (8 GB for instance), especially if you want to add optional packages to the image.It should not contain special characters or spaces. Click “New Image”, and enter the following parameters:.Open Disk Utility (in /Application/Utilities).If your Mac OS X partition is not in case-sensitive HFS+ (which is very likely), you need to create a case-sensitive disk image and put Haiku buildtools and source code on it. This causes troubles during the build of some Haiku components, because of wrong headers inclusion (“String.h” (from Haiku) instead of “string.h” (from the system) for instance). The Mac OS file system, HFS+, is case-insensitive by default. Fetching the buildtools and the Haiku source code.MacPorts or Homebrew will also be requiredįollow the steps in order to build Haiku on Mac OS X.You must be logged in as administrator to install some tools.You will need the Xcode Tools: use the installer on your Mac OS X Install DVD, or download the latest version from Apple Developer Connection (free registration required).At least 3 GB of free space on your hard drive.The following was tested on Mac OS X 10.10 (Yosemite). This was written by Sambuddha Basu or samgtr on IRC.
0 Comments
Leave a Reply. |