kernelhcy / DeaDBeeF-MPRIS-plugin

The MPRIS plugin for DeaDBeeF music player.
http://kernelhcy.github.com/DeaDBeeF-MPRIS-plugin
GNU General Public License v3.0
25 stars 7 forks source link

Compile Error on Arch Linux with glib2 #10

Open fanzeyi opened 12 years ago

fanzeyi commented 12 years ago
.deps/mpris.Tpo -c mpris.c  -fPIC -DPIC -o .libs/mpris.o
mpris.c: In function 'mpris_start':
mpris.c:58:9: error: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Werror=deprecated-declarations]
mpris.c:62:5: error: 'g_thread_create' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:100): Use 'g_thread_new' instead [-Werror=deprecated-declarations]
cc1: all warnings being treated as errors

glib2 版本:

$ yaourt glib2 | grep installed
49 aur/glib2-git 20120915-1 [installed] (26)
Sharez commented 12 years ago

The error occurred because of changes in glib-2.0. See deprecated functions, here: Deprecated thread API

I'm working on this error.

arclance commented 12 years ago

Sharez Have you seen this bug report https://code.google.com/p/deadbeef-mpris-plugin/issues/detail?id=11 by the author of Deadbeef about how this plugin is incompatible with Deadbeef v5.5 or higher because glib-dbus is not thread safe? According to waker the MPRIS plugin needs to be rewritten without using it.

Sharez commented 12 years ago

Thank you arclance. You saved me from a futile debugging!

Serranya commented 9 years ago

If you only need MPRISv2 and an dependency on glibc >= 2.32 does not bother you, you can take a look at my version of this Plugin https://github.com/Serranya/deadbeef-mpris2-plugin