Skip to content

Commit 5b0f79e

Browse files
authored
Update cygwin instructions (zeldaret#1146)
* update readme * fixes * update permissions for various things * typos
1 parent e51fd73 commit 5b0f79e

File tree

12 files changed

+35
-34
lines changed

12 files changed

+35
-34
lines changed

docs/BUILDING_CYGWIN.md

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,46 @@
11
# Building with Cygwin
22

3-
**N.B.** These have not been tested recently, you may find the requirements have changed a bit.
4-
53
If you want to use Cygwin, you will need to:
64

75

8-
## 1. Install Git Bash and Cygwin
6+
## 1. Install Cygwin (and required packages)
97

10-
* Download and install [Git Bash](https://git-scm.com/download/win).
118
* Download and install [Cygwin](https://cygwin.com).
129

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)
1330

1431
## 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.
33+
You can use tab auto-complete to fill this in.
2334

2435
Create destination dir for binutils
2536
```bash
26-
sudo mkdir -p /opt/cross
37+
mkdir -p /opt/cross
2738
```
39+
2840
Extract binutils source
2941
```bash
3042
cd /usr/src/binutils-[...].src/
31-
tar xjf binutils-[...].tar.bz2
43+
tar -xf binutils-[...].tar.xz
3244
```
3345

3446
Create and enter build dir
@@ -39,42 +51,31 @@ cd build-binutils
3951

4052
Configure the build
4153
```bash
42-
../binutils-gdb/configure --target=mips-linux-gnu --prefix=/opt/cross --disable-gprof --disable-nls --disable-werror --disable-gdb --disable-libdecnumber --disable-readline --disable-sim
54+
../binutils-[...]/configure --target=mips-linux-gnu --prefix=/opt/cross --disable-gprof --disable-nls --disable-werror --disable-gdb --disable-libdecnumber --disable-readline --disable-sim
4355
```
4456

4557
Make and install binutils
4658
```bash
4759
make -j
48-
sudo make install -j
60+
make install -j
4961
```
5062

5163
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
5269

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
6971

7072
To install the Python dependencies simply run in a terminal:
7173

7274
```bash
7375
python3 -m pip install colorama
7476
```
7577

76-
77-
## 5. Continue with Linux instructions
78+
## 4. Continue with Linux instructions
7879

7980
You should be able to continue from step [step 2](../README.md#2-clone-the-repository) of the Linux instructions.
8081

fixle.sh

100644100755
File mode changed.

tools/ido_recomp/windows/5.3/as1.exe

100644100755
File mode changed.

tools/ido_recomp/windows/5.3/cc.exe

100644100755
File mode changed.

tools/ido_recomp/windows/5.3/cfe.exe

100644100755
File mode changed.

tools/ido_recomp/windows/5.3/ugen.exe

100644100755
File mode changed.

tools/ido_recomp/windows/5.3/uopt.exe

100644100755
File mode changed.

tools/ido_recomp/windows/7.1/as1.exe

100644100755
File mode changed.

tools/ido_recomp/windows/7.1/cc.exe

100644100755
File mode changed.

tools/ido_recomp/windows/7.1/cfe.exe

100644100755
File mode changed.

0 commit comments

Comments
 (0)