void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.5k stars 2.11k forks source link

[Package Request] StreamFX - An OBS plugin #24706

Open zenny opened 4 years ago

zenny commented 4 years ago

Hi,

Thanks to @lemmi for packaging OBS for VoidLinux.

Meanwhile, StreamFX -- a perspective plugin to OBS (https://github.com/Xaymar/obs-StreamFX/releases/latest/ which is discussed in https://obsproject.com/forum/threads/virtual-sets-and-perspective.80947/) is available only for clang9 and gcc8 for Ubuntu.

The current installed version of clang and gcc are v10 and v9 respectively in VoidLinux, so maybe incompatible (haven't tested).

It would be nice to xbps-package the StreamFX plugin so that it could be easily (as described in https://github.com/xaymar/obs-streamfx/wiki/Installation) ported to obs xbps-package?

Cheers, and stay safe, /z

lemmi commented 4 years ago

According to https://github.com/Xaymar/obs-StreamFX/wiki/Building-From-Source the compilers shouldn't be a problem. While I see no problem in building this standalone (one option to build StreamFX), I'd rather not have this pollute the obs build (the other option). So if you or anyone else want to give this a spin, should be manageable first template.

zenny commented 4 years ago

According to https://github.com/Xaymar/obs-StreamFX/wiki/Building-From-Source the compilers shouldn't be a problem. While I see no problem in building this standalone (one option to build StreamFX), I'd rather not have this pollute the obs build (the other option). So if you or anyone else want to give this a spin, should be manageable first template.

I tried to compile but without success:

$ cmake -H. -B"build/flux" -G"Ninja" -DOBS_DOWNLOAD=ON -DCMAKE_PACKAGE_NAME=StreamFX -DCMAKE_PACKAGE_PREFIX="build/package" -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc
-- StreamFX: Using packaged or remote obs-studio.
Linux builds require your install the necessary development packages, take a look at the obs-studio build guide for them.
-- Configuring done
CMake Error at CMakeLists.txt:943 (add_library):
  The install of the StreamFX target requires changing an RPATH from the
  build tree, but this is not supported with the Ninja generator unless on an
  ELF-based platform.  The CMAKE_BUILD_WITH_INSTALL_RPATH variable may be set
  to avoid this relinking step.

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
lemmi commented 4 years ago

Looks like some broken defaults in the cmake file. Maybe you can patch the file to drop the version suffix.

zenny commented 4 years ago

An easy way out I figured out was to:

  1. Download the latest master binary build for ubuntu 20.04 (which uses gcc-9 and g++-9) from https://github.com/Xaymar/obs-StreamFX/suites/1118571358/artifacts/15811004
  2. Extract the plugin to ~/.config/obs-studio/plugins/ folder.

Seems like it is loading, but yet to see whether it works or not.

zenny commented 4 years ago

Looks like some broken defaults in the cmake file. Maybe you can patch the file to drop the version suffix.

Still cmake generate does not work. Updated output in https://github.com/void-linux/void-packages/issues/24706#issuecomment-687720959

Vaelatern commented 3 years ago

You could try building it within xbps-src, that would give you a template at the end, and give you a clean environment for building.