sorayuki / obs-multi-rtmp

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

Install on Linux Mint (Ubuntu) #196

Open Hoerli1337 opened 2 years ago

Hoerli1337 commented 2 years ago

Unfortunately, the installation does not work with Linux Mint. Here's what I do:

sudo apt install cmake qtbase5-dev qtdeclarative5-dev build-essential
wget https://github.com/sorayuki/obs-multi-rtmp/archive/refs/heads/master.zip
unzip master.zip
cd obs-multi-rtmp-master/ci
sudo ./install_ubuntu.sh
cd ..
./build_linux.sh

The last command brings the following message:

./build_linux.sh
+ : 0
+ : /usr
+ : ''
+ : /usr/include/obs
++ grep 'obs-multi-rtmp VERSION' CMakeLists.txt
+ ver='project(obs-multi-rtmp VERSION 0.2.8.0)'
+ ver=($ver)
+ ver='0.2.8.0)'
+ ver=0.2.8.0
+ rm -fr build dist '*.tar.xz'
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTDIR= -DOBS_SRC_DIR=/usr/include/obs -B build .
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:13 (find_package):
  By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt6", but
  CMake did not find one.

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

    Qt6Config.cmake
    qt6-config.cmake

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

-- Configuring incomplete, errors occurred!
See also "/home/maxi/Downloads/obs-multi-rtmp-master/build/CMakeFiles/CMakeOutput.log".

What am I doing wrong? How can I fix the error?

sorayuki commented 2 years ago

Hi, I'm not familiar with Linux OS. The building script original accepted via Pull Request. I may not help.

Hoerli1337 commented 2 years ago

Okay I managed to create the plugin now.

add-apt-repository ppa:okirby/qt6-backports
apt update
apt install cmake qt6-base-dev qt6-declarative-dev build-essential libobs0 libobs-dev
unzip master.zip
cd obs-multi-rtmp-master/ci
sudo ./install_ubuntu.sh
cd ..
./build_linux.sh

Unfortunately, it does not work in OBS Studio. No matter if I add it in /home/USERNAME/.config/obs-studio/plguins Or in /usr/lib/obs-plguins

cincodenada commented 1 year ago

@Hoerli1337 My comment on another thread might be helpful, I just got this working under Linux today. You have to rearrange the file structure a bit: https://github.com/sorayuki/obs-multi-rtmp/issues/189#issuecomment-1250182571

Hoerli1337 commented 1 year ago

@cincodenada I tried it again. Did not work. Even with your customized folder paths, the plugin does not run. Meanwhile it is also so that OBS does not start, as far as the plugin is in the folder of the plugins. I have to remove it again for OBS to start at all. In your thread I also saw that you are using OBS version 27, but I already have version 28 installed.

lukaprincic commented 1 year ago

similarly on Ubuntu, if using obs-project's PPA packages, it's not possible to apt install libobs0 libobs-dev because the obs package conflicts with those which all leads to error (no libobs0 dev) at compilation of this plugin.

the only workaround was to upgrade to Ubuntu Jammy which has obs 27 in official repos that doesn't conflict with libobs0 (and dev version) and use previously compiled plugin.

Ryu945 commented 1 year ago

Okay I managed to create the plugin now.

add-apt-repository ppa:okirby/qt6-backports
apt update
apt install cmake qt6-base-dev qt6-declarative-dev build-essential libobs0 libobs-dev
unzip master.zip
cd obs-multi-rtmp-master/ci
sudo ./install_ubuntu.sh
cd ..
./build_linux.sh

Unfortunately, it does not work in OBS Studio. No matter if I add it in /home/USERNAME/.config/obs-studio/plguins Or in /usr/lib/obs-plguins

The correct directory to install the plugin for flatpak is: /home/[username]/.var/app/com.obsproject.Studio/config/obs-studio/plugins/obs-multi-rtmp/bin/64bit/obs-multi-rtmp.so

For non flatpaks, find the location it is installed and create the ending structure: config/obs-studio/plugins/obs-multi-rtmp/bin/64bit/obs-multi-rtmp.so

I tested this 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!