2.0 KiB
STEP BY STEP INSTALLATION GUIDE:
Step 1:
Get Cygwin:
32-Bit: https://cygwin.com/setup-x86.exe
64-Bit: https://cygwin.com/setup-x86_64.exe
Note: You can compile for 64-bit in a 32-bit environment.
Click on setup-*.exe and install the following packages:
git
, make
, clang
, gcc-core
, gcc-objc
, gcc-g++
,
patch
, wget
, libuuid-devel
and pkg-config
Step 2:
Open the Cygwin shell:
Step 3:
Clone the OSXCross repository:
Step 4:
Get the Mac OS X SDK and move it into
C:\Cygwin*\home\<User>\osxcross\tarballs
.
Please see README for more.
Step 5:
Build OSXCross:
Step 6:
Add the printed target/bin path to your ~/.bashrc
:
Step 7:
Restart the Cygwin shell:
Step 8:
Verify target/bin is in PATH:
All done!
OPTIONAL:
Compiler-RT
Please see README.COMPILER-RT for more.
Step 1:
Build Compiler-RT:
Step 2:
Execute the printed commands:
Step 3:
Verify Compiler-RT works:
EXAMPLES:
osxcross-macports
Please see README.MACPORTS for more.
Step 1:
Change the deployment target to >= 10.7:
Step 2:
Restart the Cygwin shell:
Step 3:
Let's install libgeoip:
Step 4:
Write a simple test program:
Step 5:
Compile the test program:
... or the xcrun way: