You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/BUILDING_CYGWIN.md
+35-34Lines changed: 35 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,46 @@
1
1
# Building with Cygwin
2
2
3
-
**N.B.** These have not been tested recently, you may find the requirements have changed a bit.
4
-
5
3
If you want to use Cygwin, you will need to:
6
4
7
5
8
-
## 1. Install Git Bash and Cygwin
6
+
## 1. Install Cygwin (and required packages)
9
7
10
-
* Download and install [Git Bash](https://git-scm.com/download/win).
11
8
* Download and install [Cygwin](https://cygwin.com).
12
9
10
+
Run the installer and follow the steps to install a cygwin terminal.
11
+
12
+
After the "choose a download site" step, a window will pop up which will allow you to select packages.
13
+
Unlike a normal linux distribution, you must install packages from this interface within the setup program.
14
+
To install a package you can change View from "Pending" to "Full".
15
+
Then you can enter a package name to search. After finding the package you want, change the "Skip" drop down
16
+
to the version you want to install.
17
+
18
+
Use this interface to select the latest version for all of the following packages:
19
+
* make
20
+
* gcc-g++
21
+
* bison
22
+
* flex
23
+
* texinfo
24
+
* git
25
+
* libiconv
26
+
* dos2unix
27
+
* python3
28
+
* libpng-devel
29
+
* binutils (Make sure to check the "Src?" checkbox since we're interested in the source code)
13
30
14
31
## 2. Build mips-linux-binutils on Windows using Cygwin
15
-
16
-
First, you will need to install the following packages using the Cygwin installer:
17
-
- make
18
-
- gcc-g++
19
-
- bison
20
-
- flex
21
-
- texinfo
22
-
- binutils (Make sure to check the "Src?" checkbox since we're interested in the source code. Once the download is finished, you will find it in `/usr/src/`)
32
+
For the following instructions, wherever you see `binutils-[...]`, the [...] represents the version number.
Add the new binutils binaries to your system PATH:
64
+
- Go to your home directory `cd`
65
+
- Open windows explorer in your current location `explorer.exe .`
66
+
- Open the `.bashrc` file in a text editor
67
+
- Scroll to the bottom and add `PATH=$PATH:/opt/cross/bin` to a new line and save the file
68
+
- Run `source .bashrc` or close and reopen cygwin
52
69
53
-
You can do that by adding `PATH=$PATH:/opt/cross/bin` to `~/.bashrc` and then reloading `~/.bashrc`.
54
-
55
-
Alternatively you can edit the `Path` variable in `Edit the system environment variables`>`Environment Variables` (in which case you will need to relaunch your terminal).
56
-
57
-
58
-
## 3. Install required Cygwin packages
59
-
60
-
Once mips-linux-binutils is installed you will need to install the following packages using Cygwin's installer:
61
-
62
-
* libiconv
63
-
* dos2unix
64
-
* python3
65
-
* libpng-devel
66
-
67
-
68
-
## 4. Install required Python packages
70
+
## 3. Install required Python packages
69
71
70
72
To install the Python dependencies simply run in a terminal:
71
73
72
74
```bash
73
75
python3 -m pip install colorama
74
76
```
75
77
76
-
77
-
## 5. Continue with Linux instructions
78
+
## 4. Continue with Linux instructions
78
79
79
80
You should be able to continue from step [step 2](../README.md#2-clone-the-repository) of the Linux instructions.
0 commit comments