add windows/cygwin readme

This commit is contained in:
Thomas Pöchtrager 2015-07-20 22:41:14 +02:00
parent 1c6e42e2f2
commit 8927f86514
19 changed files with 132 additions and 0 deletions

130
README.CYGWIN.md Normal file
View File

@ -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\<User>\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)

View File

@ -25,6 +25,8 @@ Please see [README.MACPORTS](README.MACPORTS.md) for more.
### INSTALLATION: ### ### INSTALLATION: ###
*Windows/Cygwin users should follow [README.CYGWIN](README.CYGWIN.md).*
Move your packaged SDK to the tarballs/ directory. Move your packaged SDK to the tarballs/ directory.
Then ensure you have the following installed on your system: Then ensure you have the following installed on your system:

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB