ChristophHaag / SteamVR-OpenHMD

SteamVR plugin for using OpenHMD drivers in SteamVR
Boost Software License 1.0
193 stars 33 forks source link

Improve CMake installation #19

Open Holzhaus opened 5 years ago

Holzhaus commented 5 years ago

I created an AUR packagei for easy installation on Arch Linux: https://aur.archlinux.org/packages/steamvr-openhmd-git/

In the process, I noticed that the installation process could use some improvement. make install does not work properly, which is why I needed to use install to copy files by hand.

Ideally, make install should be used to copy bin, resources and the driver.vrdrivermanifest file to /usr/lib/steamvr/openhmd or something like that. Then, users just create a symlink to their SteamVR installation and everything works, e.g.:

$ ln -s /usr/lib/steamvr/openhmd ~/.steam/steam/steamapps/common/SteamVR/drivers/openhmd
ChristophHaag commented 5 years ago

Yes, I did not care about installing at all so far because SteamVR can load registered plugins from anywhere.

I can look into how SteamVR-OSVR does it, because installing the package was easy in my AUR package that I of course misnamed as osvr-steamvr. I believe SteamVR-OSVR registers the plugin during make install so it works without further user action.