CatxFish/obs-v4l2sink

Fix destination path

npalix opened this issue · 2 comments

LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins)

There is not way to set the destination path to /usr/lib/x86_64-linux-gnu/obs-plugins/ which is used under Ubuntu.

I propose to use LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/obs-plugins) instead.
So INSTALL_PREFIX can be set to either /usr/lib or /usr/lib/x86_64-linux-gnu accordingly.

A quick, dirty and and not in any way recommended workaround to make it to your next meeting:
sudo mv /usr/lib/obs-plugins/v4l2sink.so /usr/lib/x86_64-linux-gnu/obs-plugins/

(Thank you @npalix, i missed the fact the installer installs to the wrong directory, you just saved me!)

Edit: I finally moved the plugin to ~/.config/obs-studio/plugins/, which seems to be the appropriate place.

It should also potentially be /usr/lib64 on some systems