alexandru-balan / stremio-install-scripts Goto Github PK
View Code? Open in Web Editor NEWA repo with scripts that install Stremio from scratch on systems that do not package it.
License: GNU General Public License v3.0
A repo with scripts that install Stremio from scratch on systems that do not package it.
License: GNU General Public License v3.0
It will be helpful to create another batch of scripts that install (optionally) the proprietary media codecs. That way the users that opt in will be able to watch and stream media with the mp4, mkv, etc extension.
Mainly they will need to install gstreamer and ffmpeg. At this moment all distros that I made scripts for have precompiled packages with the codecs and ffmpeg, except Clear Linux.
When running the arch script on a new machine, get error:
...
mkdir -p build
cd build && cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="" ..
/bin/sh: line 1: cmake: command not found
make: *** [release.makefile:36: build/stremio] Error 127
Can't compile project. MAKE error !
Fix would be to simply include cmake here: https://github.com/alexandru-balan/Stremio-Install-Scripts/blob/master/installStremioArch.sh#L10
I tried to install stremio on Fedora 31 but it kept showing an error saying:
"Can't set the project up. QMAKE error !"
I installed all the dependencies and also the qt5 libs but still the same error
Describe the bug
Since Stremio 4.0, Stremio comes with its own builtin version of libmpv. This prevents using a custom built version of mpv, for instance to allow extra ffmpeg audio filters or video interpolation with vapoursynth.
This was possible in the past: one could just edit /opt/stremio/server.js
to edit the path to the mpv binary, and then write-protect server.js
to prevent it from auto-updating. This allowed me to use libmysofa and 60 FPS interpolation with Stremio when opening the streamed file in mpv, which was really awesome.
It does not work anymore with later Stremio versions, probably due to the inclusion of the builtin libmpv. I can no longer enforce Stremio to use a different mpv binary. Even when stremio.js
is edited accordingly, whenever I launch Stremio from terminal, I can see that it is using another mpv version built at an "UNKNOWN" date, and it is not /usr/bin/mpv
nor /usr/local/bin/mpv
.
The inability to use custom mpv version with its own mpv.conf
and additional libraries is a major regression, it defeats the point of the whole external player feature. I reported the issue months ago on the Stremio subreddit but didn't get any answer, so I am wondering if you would know if it can be modified when compiling using your scripts?
To Reproduce
Steps to reproduce the behavior:
stremio.js
to use the path to another version of mpv (for instance, mpv-git built from the the mpv-git repository)Expected behavior
Stremio should be able to use a real external player, not a builtin external player that cannot be customized or even configured with mpv.conf
.
Please include the following:
i'm given error:
In file included from ../verifysig.c:1: ../../stremio-shell/verifysig.h:4:10: fatal error: openssl/evp.h: No such file or directory 4 | #include <openssl/evp.h> | ^~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:703: verifysig.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from ../../stremio-shell/autoupdater.h:21, from ../autoupdater.cpp:1: ../../stremio-shell/verifysig.h:4:10: fatal error: openssl/evp.h: No such file or directory 4 | #include <openssl/evp.h> | ^~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:690: autoupdater.o] Error 1 In file included from ../autoupdater.h:21, from ../mainapplication.h:4, from ../main.cpp:22: ../../stremio-shell/verifysig.h:4:10: fatal error: openssl/evp.h: No such file or directory 4 | #include <openssl/evp.h> | ^~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:672: main.o] Error 1 ../deps/singleapplication/singleapplication.cpp: In member function ‘void SingleApplicationPrivate::genBlockServerName(int)’: ../deps/singleapplication/singleapplication.cpp:110:33: warning: ‘void QProcess::start(const QString&, QIODevice::OpenMode)’ is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead [-Wdeprecated-declarations] 110 | process.start( "whoami" ); | ^ In file included from /usr/include/QtCore/QProcess:1, from ../deps/singleapplication/singleapplication.cpp:26: /usr/include/QtCore/qprocess.h:168:10: note: declared here 168 | void start(const QString &command, OpenMode mode = ReadWrite); | ^~~~~ ../deps/singleapplication/singleapplication.cpp: In member function ‘void SingleApplicationPrivate::slotConnectionEstablished()’: ../deps/singleapplication/singleapplication.cpp:285:26: warning: this statement may fall through [-Wimplicit-fallthrough=] 285 | break; // Otherwise set to invalid connection (next line) | ^ ../deps/singleapplication/singleapplication.cpp:287:13: note: here 287 | default: | ^~~~~~~ make[1]: Leaving directory '/home/weacomeout/Stremio-Install-Scripts/stremio-shell/build' make: *** [release.makefile:36: build/stremio] Error 2 Can't compile project. MAKE error !
Openssl is installed
Hi ! I just tried your script on OpenSuse Tumbleweed, it works !
I took the Fedora script, and replaced:
sudo dnf install nodejs wget librsvg2-devel librsvg2-tools mpv-libs-devel qt5-qtbase-devel qt5-qtwebengine-devel qt5-qtquickcontrols qt5-qtquickcontrols2 openssl-devel gcc g++ make glibc-devel kernel-headers binutils -y
with:
sudo zypper install nodejs wget librsvg-devel librsvg-2-2 mpv-devel libqt5-qtbase-devel libqt5-qtwebengine-devel libqt5-qtquickcontrols libqt5-qtquickcontrols2 libopenssl-devel gcc make gcc-c++ glibc-devel linux-glibc-devel binutils rsvg-convert
I use Solus 4.1, KDE Plasma version, in the budgie version i could install normally, but now a got:
fatal: cannot use Perl-compatible regexes when not compiled with USE_LIBPCRE
wget "https://s3-eu-west-1.amazonaws.com/stremio-artifacts/four/v/server.js" -qO server.js || rm server.js
mkdir -p "icons"
cd "icons" && printf 16,22,24,32,64,128 | xargs -I^ -d, sh -c 'rsvg-convert ../images/stremio.svg -w ^ -o smartcode-stremio_^.png && rsvg-convert ../images/stremio_tray_white.svg -w ^ -o smartcode-stremio-tray_^.png'
make -C build install
make[1]: Entrando no diretório '/home/gnomo/Stremio-Install-Scripts/stremio-shell/build'`
/usr/bin/qmake -install qinstall /home/gnomo/Stremio-Install-Scripts/stremio-shell/smartcode-stremio.desktop /opt/stremio/smartcode-stremio.desktop
/usr/bin/qmake -install qinstall -exe stremio /opt/stremio/stremio
make[1]: Saindo do diretório '/home/gnomo/Stremio-Install-Scripts/stremio-shell/build'
install -Dm 644 server.js "/opt/stremio/server.js"
install: não foi possível obter estado de 'server.js': Arquivo ou diretório inexistente
make: *** [release.makefile:15: install] Erro 1
Can't install the project. MAKE error !
How can i fix it ? For now i'm trying a flatpak version, the link is https://github.com/bilelmoussaoui/stremio-flatpak
You can add a message when a package is missing and hosted by rpmfusion free/nonfree or make a warning with solution :
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
installStremioFedora.sh script throws 'failed to create symbolic link '/opt/stremio/node': File exists Can't install the project. MAKE error !' on Fedora 32 after qt5 update
installStremioFedora.sh: linha 26: qmake-qt5: comando não encontrado
mkdir -p build
cd build && qmake-qt5 PREFIX="" ..
/bin/sh: qmake-qt5: comando não encontrado
make: *** [release.makefile:32: build/stremio] Error 127
which: no node in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
make -C build install
make[1]: Entering directory '/home/gaya/Documentos/Stremio-Install-Scripts/stremio-shell/build'
make[1]: *** No rule to make target 'install'. Pare.
make[1]: Leaving directory '/home/gaya/Documentos/Stremio-Install-Scripts/stremio-shell/build'
make: *** [release.makefile:14: install] Error 2
xdg-desktop-menu: file '/opt/stremio/smartcode-stremio.desktop' does not exist
./dist-utils/common/postinstall: linha 7: cd: /opt/stremio/icons: Arquivo ou diretório inexistente
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.