sorayuki / obs-multi-rtmp

OBS複数サイト同時配信プラグイン
https://sorayuki.github.io/obs-multi-rtmp/
GNU General Public License v2.0
3.42k stars 479 forks source link

Please help to build on Ubuntu 22.04 #234

Open drupal-cafe-lu-ua opened 1 year ago

drupal-cafe-lu-ua commented 1 year ago

I did

git clone https://github.com/sorayuki/obs-multi-rtmp.git obs-multi-rtmp
cd obs-multi-rtmp/
git checkout tags/0.2.8.1-OBS28
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release

I get

-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:74 (find_package):
  By not providing "FindLibObs.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "LibObs", but
  CMake did not find one.

  Could not find a package configuration file provided by "LibObs" with any
  of the following names:

    LibObsConfig.cmake
    libobs-config.cmake

  Add the installation prefix of "LibObs" to CMAKE_PREFIX_PATH or set
  "LibObs_DIR" to a directory containing one of the above files.  If "LibObs"
  provides a separate development package or SDK, be sure it has been
  installed.

Also I can not find libobsConfig.cmake as file or text in the source code.

sorayuki commented 1 year ago

Currently I only tried that installed with apt. Flatpak keeps endless loading just not worked. Are your OBS installed with apt?


From: drupal-cafe-lu-ua @.> Sent: Thursday, December 15, 2022 11:13:35 PM To: sorayuki/obs-multi-rtmp @.> Cc: Subscribed @.***> Subject: [sorayuki/obs-multi-rtmp] Please help to build on Ubuntu 22.04 (Issue #234)

I did

git clone https://github.com/sorayuki/obs-multi-rtmp.git obs-multi-rtmp cd obs-multi-rtmp/ git checkout tags/0.2.8.1-OBS28 cmake -S . -B build -DCMAKE_BUILD_TYPE=Release

I get

-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0") -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) CMake Error at CMakeLists.txt:74 (find_package): By not providing "FindLibObs.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "LibObs", but CMake did not find one.

Could not find a package configuration file provided by "LibObs" with any of the following names:

LibObsConfig.cmake
libobs-config.cmake

Add the installation prefix of "LibObs" to CMAKE_PREFIX_PATH or set "LibObs_DIR" to a directory containing one of the above files. If "LibObs" provides a separate development package or SDK, be sure it has been installed.

Also I can not find libobsConfig.cmake as file or text in the source code.

― Reply to this email directly, view it on GitHubhttps://github.com/sorayuki/obs-multi-rtmp/issues/234, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEAUME67WIVLIKRZOA3A2MDWNMYR7ANCNFSM6AAAAAAS7272YI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

SometimesJohn commented 1 year ago

I would also love some help installing the plugin on Linux. I've only had linux for about 2 weeks. Tried following someone else's guide on YouTube, but ran into CMAKE error. Am going to try to stream to two sites by using the recording trick for now.

bStyler commented 1 year ago

Following. We have used this plugin on OBS 27 on linux and since OBS 28 it no longer works.

thelabcat commented 1 year ago

Sorayuki, please do not give up on availability for flatpak or Linux. This is a great add-on, and I would love to have it. I'm glad to know that there's some hope for me compiling myself.

AntonioGomes42 commented 1 year ago

I made a new tutorial showing how to install it on a Flatpak OBS. I works for every single linux. Link : https://youtu.be/p4eoEoq438M. I hope it helps you!

thelabcat commented 1 year ago

I made a new tutorial showing how to install it on a Flatpak OBS. I works for every single linux. Link : https://youtu.be/p4eoEoq438M. I hope it helps you!

NGL, a "Builded" tool in a Google Drive link smells a little bit sus, but okay. Why isn't it on GitHub, though?

BTW, what are the chances of the builder running on Fedora?

AntonioGomes42 commented 1 year ago

I made a new tutorial showing how to install it on a Flatpak OBS. I works for every single linux. Link : https://youtu.be/p4eoEoq438M. I hope it helps you!

NGL, a "Builded" tool in a Google Drive link smells a little bit sus, but okay. Why isn't it on GitHub, though?

BTW, what are the chances of the builder running on Fedora?

It has all the chances to run on Fedora or any other Linux. The files disponibelized on Google Drive are the ones builded in the video. If you don't think it's safe just build it by yourself as i show in the video how to do it. I just put the files on GD because somepeople do not want to do the building part, just install it.

thelabcat commented 1 year ago

Okay, after actually watching the video, to fix the translation on that:

The plugin is guaranteed to work on any Linux distribution. The files in the Google Drive link are the pre-compiled plugin, following the instructions in the video. If you don't think these binaries are safe, the video shows you how to use the repository's included build script to build them yourself. I just put the pre-compiled binaries on GD for those who don't want to build it themselves.

thelabcat commented 1 year ago

To transcribe the video:

Here is how to install this plugin on Linux. If you want to use @AntonioGomes42's precompiled verson from Google Drive, skip to step 9. Otherwise, follow all steps to compile it yourself.

  1. Ubuntu is recommended for the compilation. A VM with internet access will work. A Ubuntu-based distro may also work. Have a Ubuntu system booted and ready.
  2. Git is required for compilation and currently would not be automatically installed by the compiling script, unlike some other tools used. Check that git is installed.
  3. Download the repository zip.
  4. Extract the repository, and run the script obs-multi-rtmp-master/.github/scripts/build-linux.sh
  5. Create folder obs-multi-rtmp-master/release/data/obs-plugins/obs-multi-rtmp/bin
  6. Move folder obs-multi-rtmp-master/release/obs-plugins/64bit to .../bin/64bit
  7. Create folder obs-multi-rtmp-master/release/data/obs-plugins/obs-multi-rtmp/data
  8. Move folder obs-multi-rtmp-master/release/data/obs-plugins/obs-multi-rtmp/locale to .../data/locale
  9. Folder obs-multi-rtmp-master/release/data/obs-plugins/obs-multi-rtmp is now the complete plugin folder. It should contain: image Remove all outside files and put it where you like.
  10. install Flatpak OBS Studio, and run it at least once.
  11. Create folder ~/.var/app/com.obsproject.Studio/config/obs-studio/plugins
  12. Copy the complete plugin folder (AKA obs-multi-rmtp) to .../plugins/obs-multi-rmtp
AntonioGomes42 commented 1 year ago

To transcribe the video:

Here is how to install this plugin on Linux. If you want to use @AntonioGomes42's precompiled verson from Google Drive, skip to step 9. Otherwise, follow all steps to compile it yourself.

  1. Ubuntu is recommended for the compilation. A VM with internet access will work. A Ubuntu-based distro may also work. Have a Ubuntu system booted and ready.
  2. Git is required for compilation and currently would not be automatically installed by the compiling script, unlike some other tools used. Check that git is installed.
  3. Download the repository zip.
  4. Extract the repository, and run the script obs-multi-rtmp-master/.github/scripts/build-linux.sh
  5. Create folder obs-multi-rtmp-master/release/data/obs-plugins/obs-multi-rtmp/bin
  6. Move folder obs-multi-rtmp-master/release/obs-plugins/64bit to .../bin/64bit
  7. Create folder obs-multi-rtmp-master/release/data/obs-plugins/obs-multi-rtmp/data
  8. Move folder obs-multi-rtmp-master/release/data/obs-plugins/obs-multi-rtmp/locale to .../data/locale
  9. Folder obs-multi-rtmp-master/release/data/obs-plugins/obs-multi-rtmp is now the complete plugin folder. It should contain: image Remove all outside files and put it where you like.
  10. install Flatpak OBS Studio, and run it at least once.
  11. Create folder ~/.var/app/com.obsproject.Studio/config/obs-studio/plugins
  12. Copy the complete plugin folder (AKA obs-multi-rmtp) to .../plugins/obs-multi-rmtp

Precisely, my friend!