1.3 KiB
1.3 KiB
UnrealXR
UnrealXR is a display multiplexer for the original Nreal Air (other devices may be supported).
Development
- Clone this repository with submodules:
git clone --recurse-submodules https://git.terah.dev/imterah/unrealxr.git
- Initialize the development shell:
nix-shell
- Create a virtual environment:
python3 -m venv .venv; source .venv/bin/activate
- Install Python dependencies:
pip install -r requirements.txt
Building PyEvdi
- Build
libevdi
:cd evdi/library; make -j$(nproc); cd ../..
- Build
PyEvdi
:cd evdi/pyevdi; make -j$(nproc); make install; cd ../..
Building patched PyRay
/raylib
- Build the native version of raylib:
cd raylib-python-cffi/raylib-c; mkdir -p build/out; cd build; cmake -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release -DPLATFORM=DRM -DENABLE_WAYLAND_DRM_LEASING=ON -DSUPPORT_CLIPBOARD_IMAGE=ON -DCMAKE_INSTALL_PREFIX:PATH=$PWD/out ..; make install -j$(nproc)
- Build the Python version of raylib:
cd ../..; PKG_CONFIG_PATH_FOR_TARGET="$PKG_CONFIG_PATH_FOR_TARGET:$PWD/raylib-c/build/out/lib64/pkgconfig/" PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/raylib-c/build/out/lib64/pkgconfig/" ENABLE_WAYLAND_DRM_LEASING=YES RAYLIB_PLATFORM=DRM python3 setup.py bdist_wheel; pip install dist/*.whl