|
@@ -23,7 +23,7 @@ Dependencies
|
|
|
These can be found as submodules in the `deps` directory of the repository. To initialize the
|
|
|
submodules, clone LÖVR with the `--recursive` option or run this command in an existing repo:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
git submodule update --init
|
|
|
```
|
|
|
|
|
@@ -33,7 +33,7 @@ Windows
|
|
|
From the lovr folder, run these commands to create a build folder and compile the project using
|
|
|
CMake:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake ..
|
|
@@ -49,13 +49,13 @@ macOS
|
|
|
|
|
|
Install the dependencies using your package manager of choice:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
brew install assimp glfw3 luajit physfs freetype openal-soft ode
|
|
|
```
|
|
|
|
|
|
Next, build using CMake, as above:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake ..
|
|
@@ -65,7 +65,7 @@ cmake --build .
|
|
|
The lovr executable should exist in `lovr/build` now. It's recommended to set up an alias or
|
|
|
symlink so that this executable exists on your path. Once that's done, you can run a game like this:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
lovr /path/to/myGame
|
|
|
```
|
|
|
|
|
@@ -74,13 +74,13 @@ Linux
|
|
|
|
|
|
On Arch Linux, first install necessary dependencies:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
pacman -S assimp glfw-x11 luajit physfs freetype2 openal ode
|
|
|
```
|
|
|
|
|
|
Then, build with CMake:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake ..
|
|
@@ -92,14 +92,14 @@ Steam](https://wiki.archlinux.org/index.php/Steam#Installation). Next, [install
|
|
|
rules](https://github.com/ValveSoftware/SteamVR-for-Linux#usb-device-requirements). Then, run LÖVR
|
|
|
within the Steam runtime:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
~/.steam/steam/ubuntu12_32/steam-runtime/run.sh lovr
|
|
|
```
|
|
|
|
|
|
If you receive errors related to `libstdc++`, set the `LD_PRELOAD` environment variable when running
|
|
|
the command:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1' ~/.steam/steam/ubuntu12_32/steam-runtime/run.sh lovr
|
|
|
```
|
|
|
|
|
@@ -114,7 +114,7 @@ branch](https://github.com/bjornbytes/emscripten/tree/lovr) of Emscripten.
|
|
|
|
|
|
Unix:
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
mkdir build
|
|
|
cd build
|
|
|
emcmake cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
@@ -123,7 +123,7 @@ emmake make -j2
|
|
|
|
|
|
Windows (from a Visual Studio Command Prompt, make sure the Emscripten SDK is on PATH):
|
|
|
|
|
|
-```sh
|
|
|
+```
|
|
|
mkdir build
|
|
|
cd build
|
|
|
emcmake cmake -G "NMake Makefiles" ..
|