Serranya / deadbeef-mpris2-plugin

A rewrite of the seemingly orphaned deadbeef-mpris-plugin originally written by HuangCongyu
GNU General Public License v2.0
65 stars 8 forks source link

Can't build the plugin, can't find deadbeef.h #9

Closed rosavi closed 9 years ago

rosavi commented 9 years ago

I tried following the instructions but I get the following error:

  CC       src/mpris_la-mpris.lo
In file included from src/mpris.c:3:0:
src/mprisServer.h:8:31: fatal error: deadbeef/deadbeef.h: No such file or directory
 #include <deadbeef/deadbeef.h>
                               ^
compilation terminated.
make: *** [src/mpris_la-mpris.lo] Error 1

I'm on Ubuntu 14.04, deadbeef installed via the deb package in the official website.

Serranya commented 9 years ago

Hmm yes this will not work since DeaDBeeF is not installed in the standard location.

Can you try to build the plugin like this:

./configure --prefix=/opt/deadbeef
make
sudo make install
rosavi commented 9 years ago

Still no luck, same error message :(

(Not sure if this is relevant, but I did check and deadbeef.h is indeed in /opt: /opt/deadbeef/include/deadbeef/deadbeef.h)

Serranya commented 9 years ago

I will try to reproduce the issue in an ubuntu vm.

Serranya commented 9 years ago

Can you try the following:

env CPPFLAGS="$CPPFLAGS -I/opt/deadbeef/include/" ./configure --prefix=/opt/deadbeef
make
sudo make install

Edit: You can safely ignore the pkgconfig message. You also dont need the .la file

rm /opt/deadbeef/lib/deadbeef/mpris.la
rosavi commented 9 years ago

Thanks, it works now!