Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.

WIP: Update library path for new versions of OBS - #87

Open
josephgeis wants to merge 1 commit into
CatxFish:masterfrom
josephgeis:patch-1
Open

WIP: Update library path for new versions of OBS#87
josephgeis wants to merge 1 commit into
CatxFish:masterfrom
josephgeis:patch-1

Conversation

@josephgeis

Copy link
Copy Markdown

Fixes #86

@h1z1

h1z1 commented Oct 28, 2020

Copy link
Copy Markdown

Won't that break non ubuntu users?

@josephgeis

Copy link
Copy Markdown
Author

It doesn't break for Debian necessarily, but good point about other distros. Plus, there's other architectures too that don't use that.

I'll just leave this PR open for now and revise it after later research.

@josephgeis josephgeis changed the title Update library path for new versions of OBS WIP: Update library path for new versions of OBS Oct 29, 2020
@h1z1

h1z1 commented Oct 29, 2020

Copy link
Copy Markdown

CMake should be picking that path up. Take a look at the GNUInstallDirs module.

Comment thread CMakeLists.txt

install(TARGETS v4l2sink
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins)
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/x86_64-linux-gnu/obs-plugins)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks incorrect as this hardcode the libdir for x86_64 and is a debianism. (others distro don't use this scheme).

Usually CMAKE_INSTALL_LIBDIR needs to be configured as appropriate. Or this should be inherited from FindLibObs.cmake (from the obs-studio devel package)...

@kwizart kwizart Feb 14, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(not a project maintainer).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No longer works after upgrading to Ubuntu 20.10

3 participants