Skip to content

Commit

Permalink
Merge pull request #9 from BluRaf/linux-building
Browse files Browse the repository at this point in the history
Streamline Unix building instructions
  • Loading branch information
jkarneges authored Nov 12, 2018
2 parents 1a58056 + 28da0b2 commit 6d5f73f
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,44 +68,52 @@ If all goes well, the game will be built as `build\j.gb`.

**WORK IN PROGRESS**

```sh
git clone https://github.com/infinity-gbc/infinity.git
cd infinity
INFINITY=`pwd`
```

Build GBDK and install it somewhere. Below installs to `/home/user/tmp/sdk`:

```sh
git clone git://github.com/infinity-gbc/gbdk.git
cd gbdk
make SDK_DIR=/home/user/tmp
make SDK_DIR=/home/user/tmp install
GBDK_SRC=`pwd`
GBDK_PATH=~/gbdk
make SDK_DIR=$GBDK_PATH
make SDK_DIR=$GBDK_PATH install
```

Patch the GBDK and build the library:

```sh
cd /home/user/tmp/sdk/gbz80-gb/2.1.5 # the dir with "sdk" in it
patch -p0 < /path/to/infinity/tools/gbdk_infinity.diff
cd sdk/gbz80-gb/2.1.5/lib
cd $GBDK_PATH/sdk/gbz80-gb/2.1.5 # the dir with "sdk" in it
patch -p0 < $INFINITY/tools/gbdk_infinity.diff
cd lib
make
```

Build the toolchain:
Put the compiler in your `$PATH`:

```sh
# (from infinity dir)
cd tools/toolchain
make
export PATH=$PATH:$GBDK_PATH/sdk/gbz80-gb/2.1.5/bin
```

Put the compiler in your `PATH`:
Build the toolchain:

```sh
export PATH=$PATH:/home/user/tmp/sdk/gbz80-gb/2.1.5/bin
cd $INFINITY
cd tools/toolchain
make
cd ../../
```

Copy all the `.pag` files from a Windows build into the `resource` dir of the infinity dir.

Build the game!

```sh
# (from infinity dir)
make
```

Expand Down

0 comments on commit 6d5f73f

Please sign in to comment.