diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | build.sh | 8 | ||||
-rw-r--r-- | project.conf | 2 |
4 files changed, 14 insertions, 3 deletions
@@ -3,3 +3,6 @@ sibs-build/ compile_commands.json tests/sibs-build/ tests/compile_commands.json +vr-video-player +window_texture.o +main.o @@ -3,8 +3,8 @@ Still early in development, not very user friendly. Currently only works with stereo video. -# Installation -vr video player can be built using [sibs](https://github.com/DEC05EBA/sibs) or if you are running Arch Linux, then you can find it on aur under the name vr-video-player-git (`yay -S vr-video-player-git`). +# Building +vr video player can be built by running `./build.sh` or by using [sibs](https://github.com/DEC05EBA/sibs) or if you are running Arch Linux, then you can find it on aur under the name vr-video-player-git (`yay -S vr-video-player-git`). # How to use Start a video in your video player of choice (tested with mpv) and then get the x11 window id (this can be done with xwininfo) and then fullscreen the video (for best quality). diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..bfb0aec --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +dependencies="glm glew sdl2 openvr x11 xcomposite" +includes=$(pkg-config --cflags $dependencies) +libs=$(pkg-config --libs $dependencies) +gcc -c src/window_texture.c -O2 $includes +g++ -c src/main.cpp -O2 $includes +g++ -o vr-video-player window_texture.o main.o $libs diff --git a/project.conf b/project.conf index 09bc4a6..7bf0d49 100644 --- a/project.conf +++ b/project.conf @@ -1,5 +1,5 @@ [package] -name = "vr_video_player" +name = "vr-video-player" type = "executable" version = "0.1.0" platforms = ["linux"] |