diff --git a/README.CYGWIN.md b/README.CYGWIN.md new file mode 100644 index 0000000..43a9ef8 --- /dev/null +++ b/README.CYGWIN.md @@ -0,0 +1,130 @@ +## STEP BY STEP INSTALLATION GUIDE: ## + +#### Step 1: #### + +Get [Cygwin](https://cygwin.com): + +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. + +![](images/cygwin/osxcross/2.png) + +#### Step 3: #### + +Clone the OSXCross repository. + +![](images/cygwin/osxcross/3.png) + +#### Step 4: #### + +Get the Mac OS X SDK and move it into +`C:\Cygwin*\home\\osxcross\tarballs`. + +Please see [README](README.md) for more. + +#### Step 5: #### + +Build OSXCross: + +![](images/cygwin/osxcross/5_1.png) + +![](images/cygwin/osxcross/5_2.png) + +#### Step 6: #### + +Add the printed target/bin path to your `~/.bashrc`. + +![](images/cygwin/osxcross/6.png) + +#### Step 7: #### + +Restart the Cygwin shell. + +![](images/cygwin/osxcross/7.png) + +#### Step 8: #### + +Verify target/bin is in PATH: + +![](images/cygwin/osxcross/8.png) + +All done! + +## OPTIONAL: ## + +### Compiler-RT ### + +Please see [README.COMPILER-RT](README.COMPILER-RT.md) for more. + +#### Step 1: #### + +Build Compiler-RT: + +![](images/cygwin/compiler-rt/1.png) + +#### Step 2: #### + +Execute the printed commands: + +![](images/cygwin/compiler-rt/2.png) + +![](images/cygwin/compiler-rt/3.png) + +#### Step 3: #### + +Verify Compiler-RT works: + +![](images/cygwin/compiler-rt/4.png) + +## EXAMPLES: ### + +### osxcross-macports ### + +Please see [README.MACPORTS](README.MACPORTS.md) for more. + +#### Step 1: #### + +Change the deployment target to >= 10.7: + +![](images/cygwin/macports/1.png) + +#### Step 2: #### + +Restart the Cygwin shell: + +![](images/cygwin/macports/2.png) + +#### Step 3: #### + +Let's install libgeoip: + +![](images/cygwin/macports/3.png) + +#### Step 4: #### + +Write a simple test program: + +![](images/cygwin/macports/4.png) + +#### Step 5: #### + +Compile the test program: + +![](images/cygwin/macports/5.png) + +... or the xcrun way: + +![](images/cygwin/macports/6.png) + + diff --git a/README.md b/README.md index 746da20..f63dfe7 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ Please see [README.MACPORTS](README.MACPORTS.md) for more. ### INSTALLATION: ### +*Windows/Cygwin users should follow [README.CYGWIN](README.CYGWIN.md).* + Move your packaged SDK to the tarballs/ directory. Then ensure you have the following installed on your system: diff --git a/images/cygwin/compiler-rt/1.png b/images/cygwin/compiler-rt/1.png new file mode 100644 index 0000000..40acaa3 Binary files /dev/null and b/images/cygwin/compiler-rt/1.png differ diff --git a/images/cygwin/compiler-rt/2.png b/images/cygwin/compiler-rt/2.png new file mode 100644 index 0000000..ee1e324 Binary files /dev/null and b/images/cygwin/compiler-rt/2.png differ diff --git a/images/cygwin/compiler-rt/3.png b/images/cygwin/compiler-rt/3.png new file mode 100644 index 0000000..3fbd8b7 Binary files /dev/null and b/images/cygwin/compiler-rt/3.png differ diff --git a/images/cygwin/compiler-rt/4.png b/images/cygwin/compiler-rt/4.png new file mode 100644 index 0000000..4437e41 Binary files /dev/null and b/images/cygwin/compiler-rt/4.png differ diff --git a/images/cygwin/macports/1.png b/images/cygwin/macports/1.png new file mode 100644 index 0000000..6400d55 Binary files /dev/null and b/images/cygwin/macports/1.png differ diff --git a/images/cygwin/macports/2.png b/images/cygwin/macports/2.png new file mode 100644 index 0000000..fada330 Binary files /dev/null and b/images/cygwin/macports/2.png differ diff --git a/images/cygwin/macports/3.png b/images/cygwin/macports/3.png new file mode 100644 index 0000000..76478b4 Binary files /dev/null and b/images/cygwin/macports/3.png differ diff --git a/images/cygwin/macports/4.png b/images/cygwin/macports/4.png new file mode 100644 index 0000000..ccc0fd5 Binary files /dev/null and b/images/cygwin/macports/4.png differ diff --git a/images/cygwin/macports/5.png b/images/cygwin/macports/5.png new file mode 100644 index 0000000..6cd0d88 Binary files /dev/null and b/images/cygwin/macports/5.png differ diff --git a/images/cygwin/macports/6.png b/images/cygwin/macports/6.png new file mode 100644 index 0000000..fed6e13 Binary files /dev/null and b/images/cygwin/macports/6.png differ diff --git a/images/cygwin/osxcross/2.png b/images/cygwin/osxcross/2.png new file mode 100644 index 0000000..fada330 Binary files /dev/null and b/images/cygwin/osxcross/2.png differ diff --git a/images/cygwin/osxcross/3.png b/images/cygwin/osxcross/3.png new file mode 100644 index 0000000..2b2d8a6 Binary files /dev/null and b/images/cygwin/osxcross/3.png differ diff --git a/images/cygwin/osxcross/5_1.png b/images/cygwin/osxcross/5_1.png new file mode 100644 index 0000000..1161947 Binary files /dev/null and b/images/cygwin/osxcross/5_1.png differ diff --git a/images/cygwin/osxcross/5_2.png b/images/cygwin/osxcross/5_2.png new file mode 100644 index 0000000..dc15ce7 Binary files /dev/null and b/images/cygwin/osxcross/5_2.png differ diff --git a/images/cygwin/osxcross/6.png b/images/cygwin/osxcross/6.png new file mode 100644 index 0000000..03f9c17 Binary files /dev/null and b/images/cygwin/osxcross/6.png differ diff --git a/images/cygwin/osxcross/7.png b/images/cygwin/osxcross/7.png new file mode 100644 index 0000000..fada330 Binary files /dev/null and b/images/cygwin/osxcross/7.png differ diff --git a/images/cygwin/osxcross/8.png b/images/cygwin/osxcross/8.png new file mode 100644 index 0000000..fda9eb1 Binary files /dev/null and b/images/cygwin/osxcross/8.png differ