loskutov / deadbeef-lyricbar

A simple plugin for DeaDBeeF audio player that fetches and shows the song’s lyrics
MIT License
29 stars 8 forks source link

Compilation error #9

Closed mistersister closed 5 years ago

mistersister commented 5 years ago

Hello, Im trying to compile the gtk2 plugin from sources but get this error:

[cbarrabes@mothership deadbeef-lyricbar-master]$ make gtk2
g++ src/ui.cpp -c `pkg-config --cflags libxml++-3.0 gtkmm-2.4 gtk+-2.0` -std=c++14 -Wall -O2 -fPIC -fvisibility=hidden -flto
In file included from src/ui.cpp:1:
src/ui.h:5:10: fatal error: deadbeef/deadbeef.h: No such file or directory
 #include <deadbeef/deadbeef.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:24: ui.o] Error 1

Im using Arch LInux and Deadbeef 1.8.0 with the following dependencies installed: gtkmm 1:2.24.5-3 gtkmm3 3.24.1-1 libxml++ 3.0.1+4+g2af973f-3 libxml2 2.9.9-2

Any help please? Thanks!

loskutov commented 5 years ago

As far as I can see the Arch official repositories only feature 0.7.2 currently. How did you install 1.8.0?

mistersister commented 5 years ago

@loskutov , I installed the stable 1.8 static build from Deadbeef official website:

https://sourceforge.net/projects/deadbeef/files/travis/linux/1.8.0/deadbeef-static_1.8.0-1_x86_64.tar.bz2/download

loskutov commented 5 years ago

In this case you'll have to provide the paths manually, e.g.:

CFLAGS='-I/opt/deadbeef/include' CXXFLAGS='-I/opt/deadbeef/include' make gtk3
mistersister commented 5 years ago

thanks, that worked great and is installed now!