butt and dbus feature (just curious)
Tobias C. Berner
tcberner at freebsd.org
Sun Jul 26 12:10:42 UTC 2020
Moin moin
Looking at the code, you'll also need to patch fl_funcs.cpp on Line 150:
#elif (__linux__ || __FreeBSD__) && HAVE_DBUS
That way the dropdown in the application will get populated with the
player it knows about.
mfg Tobias
On Sun, 26 Jul 2020 at 09:58, Per Gunnarsson <mustafejen at gmail.com> wrote:
>
> Hello!
>
> I have been trying to port butt (broadcast using this tool by Daniel
> Noethen) to FreeBSD.
>
> It's a live streamer for icecast, and there is a feature in the
> application which works on Linux which I have failed to get working on
> FreeBSD.
>
> The feature I am trying to get working is that the application picks up
> metadata (artist name and song name) from a media player and forwards it
> to the icecast server.
>
> This is somehow done by dbus.
>
> When I compile butt on FreeBSD, configure seens to find dbus and
> compiles, but the application doesn't seem to find any mpris connected
> media players.
>
> Do you think I can get away with just adjusting som flags or do I have
> to learn serious programming to get it working?
>
> from configure.ac:
>
> #Add dbus library for Linux
> if test "$build_linux" = "yes"; then
> AC_MSG_NOTICE([])
> PKG_CHECK_MODULES([DBUS], [dbus-1], [
> AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current
> tracks])
> LIBS="$LIBS $DBUS_LIBS"
> CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS"
> CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS"
> ], [
> AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current
> tracks])
> AC_MSG_ERROR([**** Coud not find dbus dev files])
> ])
> fi
>
>
> #Add dbus library for FreeBSD (just copied and pasted from linux in
> order to make things compile)
>
> if test "$build_freebsd" = "yes"; then
> AC_MSG_NOTICE([])
> PKG_CHECK_MODULES([DBUS], [dbus-1], [
> AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current
> tracks])
> LIBS="$LIBS $DBUS_LIBS"
> CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS"
> CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS"
> ], [
> AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current
> tracks])
> AC_MSG_ERROR([**** Coud not find dbus dev files])
> ])
> fi
>
> Do I have to play around with src/currentTrack.h and create a
> src/currentTrackFreeBSD.cpp too?
>
> Regards,
>
> Per Gunnarsson
> _______________________________________________
> freebsd-desktop at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-desktop
> To unsubscribe, send any mail to "freebsd-desktop-unsubscribe at freebsd.org"
More information about the freebsd-desktop
mailing list