From 4b5d01cd966e8fce7f14bf2c423f7a0086c1d355 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Tue, 23 Jan 2018 14:08:50 +0200 Subject: [PATCH] added readme file --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ce9eea4 --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +VR demo +======= + +Run with `-vr` or make a `demo.conf` file with the line: `vr = true` to run in +VR mode. + +Dependencies +------------ +3rd party: + - SDL2 + - GLEW + - OpenAL (softal) + - assimp + - freetype2 (used by drawtext) + - libpng (used by imago2) + - libjpeg (used by imago2) + - zlib (used by libpng) + - libogg + - libvorbis + - Oculus SDK (used on windows by goatvr) + +Nuclear's libraries: + - gph-math + - vmath + - imago2 + - drawtext + - resman + - treestore + - goatvr + + +Cross-compiling +--------------- +Install the mingw toolchain: `apt-get install mingw-w64` + +Dependencies must be installed under `/usr/i686-w64-mingw32`. Ask nuclear for a +pre-compiled archive of libraries cross-compiled for win32, because they are +many, and it's a horrible hassle. + +Source the `setup_cross_env` file which defines sys, CC, and CXX, then make +as usual. + +Remote debugging +---------------- +Make sure `gdb-mingw-w64` is installed. + +On windows do: `gdbserver demo.exe localhost:6666` +Then run: `i686-w64-mingw32-gdb demo.exe` +and use the command: `target remote alien:6666` +Then set breakpoints and continue. -- 1.7.10.4