Date: Sun, 26 Jul 2020 09:50:22 +0200 From: Per Gunnarsson <mustafejen@gmail.com> To: desktop@FreeBSD.org Subject: butt and dbus feature (just curious) Message-ID: <74be5094-3610-49c6-b6b2-5d0272828078@gmail.com>
index | next in thread | raw e-mail
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 Gunnarssonhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?74be5094-3610-49c6-b6b2-5d0272828078>
