mirror of https://github.com/bjornbytes/lovr.git
Update README;
This commit is contained in:
parent
020a4207bb
commit
1009e39174
23
README.md
23
README.md
|
@ -14,11 +14,10 @@ function lovr.update(dt)
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, start the OSVR server and run your game:
|
Then, run your game:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ cd path/to/myGame
|
$ lovr path/to/myGame
|
||||||
$ lovr .
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
|
@ -27,15 +26,13 @@ Dependencies
|
||||||
- LuaJIT
|
- LuaJIT
|
||||||
- GLFW (3.2+) and OpenGL (3.2+)
|
- GLFW (3.2+) and OpenGL (3.2+)
|
||||||
- assimp
|
- assimp
|
||||||
- OSVR-Core
|
- SteamVR (OpenVR)
|
||||||
|
|
||||||
Compiling
|
Compiling
|
||||||
---
|
---
|
||||||
|
|
||||||
### Windows (CMake)
|
### Windows (CMake)
|
||||||
|
|
||||||
- Install [Boost 1.57](http://www.boost.org/users/history/version_1_57_0.html) to `C:\local\boost_1_57_0`.
|
|
||||||
- Download and extract a pre-built [OSVR-Core](http://access.osvr.com/binary/osvr-core).
|
|
||||||
- Install [lovr-deps](https://github.com/bjornbytes/lovr-deps):
|
- Install [lovr-deps](https://github.com/bjornbytes/lovr-deps):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@ -43,12 +40,12 @@ cd lovr
|
||||||
git clone --recursive https://github.com/bjornbytes/lovr-deps deps
|
git clone --recursive https://github.com/bjornbytes/lovr-deps deps
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, build using the CMake GUI or using the CMake command line. Make sure you pass the `OSVR_PATH` option:
|
Next, build using the CMake GUI or using the CMake command line.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DOSVR_PATH=/path/to/osvr-core ..
|
cmake ..
|
||||||
```
|
```
|
||||||
|
|
||||||
This should output a Visual Studio solution, which can be built using Visual Studio or by using CMake:
|
This should output a Visual Studio solution, which can be built using Visual Studio or by using CMake:
|
||||||
|
@ -57,10 +54,16 @@ This should output a Visual Studio solution, which can be built using Visual Stu
|
||||||
cmake --build .
|
cmake --build .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The executable will then exist at `/path/to/lovr/build/Debug`.
|
||||||
|
|
||||||
### OSX (tup)
|
### OSX (tup)
|
||||||
|
|
||||||
|
Used for development, not generally recommended.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
brew tap OSVR/osvr
|
cd lovr
|
||||||
brew install assimp glfw3 luajit osvr-core
|
git clone git@github.com:ValveSoftware/openvr ..
|
||||||
|
export DYLD_LIBRARY_PATH=`pwd`/../openvr/lib/osx32
|
||||||
|
brew install assimp glfw3 luajit
|
||||||
tup
|
tup
|
||||||
```
|
```
|
||||||
|
|
|
@ -21,5 +21,5 @@ export DYLD_LIBRARY_PATH;
|
||||||
: foreach timer/*.c |> clang -c %f -o %o $(CFLAGS) |> obj/%B.o
|
: foreach timer/*.c |> clang -c %f -o %o $(CFLAGS) |> obj/%B.o
|
||||||
: foreach lovr/*.c |> clang -c %f -o %o $(CFLAGS) |> obj/lovr_%B.o
|
: foreach lovr/*.c |> clang -c %f -o %o $(CFLAGS) |> obj/lovr_%B.o
|
||||||
|
|
||||||
: foreach *.c |> clang -c %f -o %o $(CFLAGS) -v |> obj/%B.o
|
: foreach *.c |> clang -c %f -o %o $(CFLAGS) |> obj/%B.o
|
||||||
: obj/*.o |> clang -o %o %f $(LIBS) -v |> ../lovr
|
: obj/*.o |> clang -o %o %f $(LIBS) |> ../lovr
|
||||||
|
|
Loading…
Reference in New Issue