Open jvc84 opened 8 months ago
It works, but you need to compile musikcube with specfic cmake flags. For openrc and other elogind related: -DUSE_ELOGIND=true
.
Some times ago I wrote ebuild for gentoo and it was adapted with another patch to make it link against ncurses better, thanks to some smart guys. You can see some useful stuff there . For example, if you need mpris, it depends on your service-system : if systemd , then don't add anything, because it's default, if elogind, add the mentioned flag, if basu (*BSD OSs), then another flag.
You can see the gentoo's ebuild here, for example: https://gpo.zugaina.org/AJAX/Ebuild/54112928/View
I tried to use playerctl to control musikcube playback, but on Artix musikcube didn't provide any mpris interface. Muiskcube mpris plugin supports
libelogind
instead oflibsystemd
but you need to replace it manually.Installation of musikcube with mpris support on systemd-free distribution (originals of changed files will be saved as
<filename>.<extention>.bak
):Install musikcube from source:
Replace
libsystemd
requirement withlibelogind
:optional:
Build according to this instruction: Install dependencies.
Troubleshooting:
3.1
itemListMap
Solution: replace
itemListMap
withitemMap
insrc/plugins/taglib_plugin/TaglibMetadataReader.cpp
:3.2
<ncursesw/curses.h> / <ncursesw/panel.h>
Solution: According to the instruction "you should invoke CMake with the
-DNO_NCURSESW
flag as follows:cmake -DNO_NCURSESW .
instead of the more standardcmake .
", but it gives error:so you should remove
ncursesw/
from#include
:After
make
completed:After installation
libmpris.so
may not appear in/usr/local/share/musikcube/plugins
or/usr/share/musikcube/plugins
. In this case:You can check if
mpris
plugin is running inmusikcube
:settings>configure plugins
- it should contain string:That's it. I hope this helps someone. Also share improvements of my instruction if you faced any other issues.