Skip to content
Permalink
Browse files

Improved build instructions

  • Loading branch information...
richelbilderbeek committed Oct 10, 2017
1 parent 8b003fa commit 02975882dbc0799284f1fb9da1735b79dfb8fe7d
Showing with 103 additions and 43 deletions.
  1. +1 −40 .travis.yml
  2. +26 −3 README.md
  3. BIN Whitespace.png
  4. +38 −0 build_libnds_32
  5. +38 −0 build_libnds_64
@@ -27,46 +27,7 @@ install:
# OCLint
- ./install_oclint
# libnds
# From https://github.com/richelbilderbeek/travis_qmake_gcc_cpp98_libnds
- pwd
- my_github=${PWD##*/}
- echo $my_github
# Create folder structure
- sudo mkdir -p /opt/devkitpro
- sudo chmod 777 /opt/devkitpro
# Go to that folder
- cd /opt/devkitpro
# Download and extract devkitARM
- sudo wget https://sourceforge.net/projects/devkitpro/files/devkitARM/devkitARM_r47/devkitARM_r47-x86_64-linux.tar.bz2
# Extract
- sudo tar -xvjf devkitARM_r47-x86_64-linux.tar.bz2
# libnds
- mkdir libnds
- cd libnds
- sudo wget https://sourceforge.net/projects/devkitpro/files/libnds/1.7.1/libnds-1.7.1.tar.bz2
- sudo tar -xvjf libnds-1.7.1.tar.bz2
# libfat (subfolder of libnds)
- sudo wget https://sourceforge.net/projects/devkitpro/files/libfat/1.1.2/libfat-nds-1.1.2.tar.bz2
- sudo tar -xvjf libfat-nds-1.1.2.tar.bz2
# dswifi (subfolder of libnds)
- sudo wget https://sourceforge.net/projects/devkitpro/files/dswifi/0.4.0/dswifi-0.4.0.tar.bz2
- sudo tar -xvjf dswifi-0.4.0.tar.bz2
# maxmod (subfolder of libnds)
- sudo wget https://sourceforge.net/projects/devkitpro/files/maxmod/1.0.10/maxmod-nds-1.0.10.tar.bz2
- sudo tar -xvjf maxmod-nds-1.0.10.tar.bz2
# libfilesystem (subfolder of libnds)
- sudo wget https://sourceforge.net/projects/devkitpro/files/filesystem/0.9.13-1/libfilesystem-0.9.13-1.tar.bz2
- sudo tar -xvjf libfilesystem-0.9.13-1.tar.bz2
# default_arm7 (subfolder of libnds)
- sudo wget https://sourceforge.net/projects/devkitpro/files/default_arm7/0.7.3/default_arm7-0.7.3.tar.bz2
- sudo tar -xvjf default_arm7-0.7.3.tar.bz2
# Go to /opt/devkitpro
- cd ..
# Examples
- mkdir -p examples/nds
- cd examples/nds
- sudo wget https://sourceforge.net/projects/devkitpro/files/examples/nds/nds-examples-20170915.tar.bz2
- sudo tar -xvjf nds-examples-20170915.tar.bz2
- sudo ./build_libnds_64

addons:
apt:
@@ -18,15 +18,33 @@ City Of Thieves is a text adventure game after the English gamebook with the sam

* [here](http://richelbilderbeek.nl/GameCityOfThieves.htm).

## Building
## How to install `devkitPro` and `libnds`?

Always do first: `./build_files.sh`.
Do:

* `sudo ./build_libnds_32`: when your computer is 32 bit
* `sudo ./build_libnds_64`: when your computer is 64 bit

Add to `~/bashrc`:

```
export DEVKITPRO=/opt/devkitpro
export DEVKITARM=$DEVKITPRO/devkitARM
```

Restart the terminal for these exports to have an effect

Then, in the `CityOfThieves` folder:

```
./build_files.sh
```

Then:

* Console version: `cd Console`, `qmake`,`make`
* Desktop version: `cd Desktop`, `qmake`,`make`
* Nintendo DS version: `cd Nds`, `make`
* Nintendo DS version: `cd Nds`, `make`, `desmume CityOfThieves.nds`
* Crosscompile to Windows: `./crosscompile.sh`

## I want to help!
@@ -41,3 +59,8 @@ The `.txt` files contain the story of 'City Of Thieves'.
These are converted to C++ headers and source files by the `FilesToFunctions.sh` scripts.
This was needed, because NitroFS (as part of libnds, as part of DevKitPro) does not support a filesystem on the NDS hardware.


## External links

* [libnds_example_1](https://github.com/richelbilderbeek/libnds_example_1)
* [libnds_example_2](https://github.com/richelbilderbeek/libnds_example_2)
BIN -129 Bytes Whitespace.png
Binary file not shown.
@@ -0,0 +1,38 @@
#!/bin/bash

# Create folder structure
sudo mkdir -p /opt/devkitpro
sudo chmod 777 /opt/devkitpro
# Go to that folder
cd /opt/devkitpro
# Download and extract devkitARM
sudo wget https://sourceforge.net/projects/devkitpro/files/devkitARM/devkitARM_r46/devkitARM_r46-i686-linux.tar.bz2
# Extract
sudo tar -xvjf devkitARM_r46-i686-linux.tar.bz2
# libnds
mkdir libnds
cd libnds
sudo wget https://sourceforge.net/projects/devkitpro/files/libnds/1.7.1/libnds-1.7.1.tar.bz2
sudo tar -xvjf libnds-1.7.1.tar.bz2
# libfat (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/libfat/1.1.2/libfat-nds-1.1.2.tar.bz2
sudo tar -xvjf libfat-nds-1.1.2.tar.bz2
# dswifi (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/dswifi/0.4.0/dswifi-0.4.0.tar.bz2
sudo tar -xvjf dswifi-0.4.0.tar.bz2
# maxmod (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/maxmod/1.0.10/maxmod-nds-1.0.10.tar.bz2
sudo tar -xvjf maxmod-nds-1.0.10.tar.bz2
# libfilesystem (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/filesystem/0.9.13-1/libfilesystem-0.9.13-1.tar.bz2
sudo tar -xvjf libfilesystem-0.9.13-1.tar.bz2
# default_arm7 (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/default_arm7/0.7.3/default_arm7-0.7.3.tar.bz2
sudo tar -xvjf default_arm7-0.7.3.tar.bz2
# Go to /opt/devkitpro
cd ..
# Examples
mkdir -p examples/nds
cd examples/nds
sudo wget https://sourceforge.net/projects/devkitpro/files/examples/nds/nds-examples-20170915.tar.bz2
sudo tar -xvjf nds-examples-20170915.tar.bz2
@@ -0,0 +1,38 @@
#!/bin/bash

# Create folder structure
sudo mkdir -p /opt/devkitpro
sudo chmod 777 /opt/devkitpro
# Go to that folder
cd /opt/devkitpro
# Download and extract devkitARM
sudo wget https://sourceforge.net/projects/devkitpro/files/devkitARM/devkitARM_r47/devkitARM_r47-x86_64-linux.tar.bz2
# Extract
sudo tar -xvjf devkitARM_r47-x86_64-linux.tar.bz2
# libnds
mkdir libnds
cd libnds
sudo wget https://sourceforge.net/projects/devkitpro/files/libnds/1.7.1/libnds-1.7.1.tar.bz2
sudo tar -xvjf libnds-1.7.1.tar.bz2
# libfat (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/libfat/1.1.2/libfat-nds-1.1.2.tar.bz2
sudo tar -xvjf libfat-nds-1.1.2.tar.bz2
# dswifi (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/dswifi/0.4.0/dswifi-0.4.0.tar.bz2
sudo tar -xvjf dswifi-0.4.0.tar.bz2
# maxmod (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/maxmod/1.0.10/maxmod-nds-1.0.10.tar.bz2
sudo tar -xvjf maxmod-nds-1.0.10.tar.bz2
# libfilesystem (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/filesystem/0.9.13-1/libfilesystem-0.9.13-1.tar.bz2
sudo tar -xvjf libfilesystem-0.9.13-1.tar.bz2
# default_arm7 (subfolder of libnds)
sudo wget https://sourceforge.net/projects/devkitpro/files/default_arm7/0.7.3/default_arm7-0.7.3.tar.bz2
sudo tar -xvjf default_arm7-0.7.3.tar.bz2
# Go to /opt/devkitpro
cd ..
# Examples
mkdir -p examples/nds
cd examples/nds
sudo wget https://sourceforge.net/projects/devkitpro/files/examples/nds/nds-examples-20170915.tar.bz2
sudo tar -xvjf nds-examples-20170915.tar.bz2

0 comments on commit 0297588

Please sign in to comment.
You can’t perform that action at this time.