Date: Sun, 26 Jul 2020 14:10:28 +0200 From: "Tobias C. Berner" <tcberner@freebsd.org> To: Per Gunnarsson <mustafejen@gmail.com> Cc: desktop@freebsd.org Subject: Re: butt and dbus feature (just curious) Message-ID: <CAOshKtepBUhu0TKWFbaWiLiB-AsvpE15JR8pOMbn7w5fSXhZjg@mail.gmail.com> In-Reply-To: <74be5094-3610-49c6-b6b2-5d0272828078@gmail.com>
index | next in thread | previous in thread | raw e-mail
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@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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-desktop > To unsubscribe, send any mail to "freebsd-desktop-unsubscribe@freebsd.org"home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOshKtepBUhu0TKWFbaWiLiB-AsvpE15JR8pOMbn7w5fSXhZjg>
