eworm-de / mpd-notification

Notify about tracks played by mpd
GNU General Public License v3.0
86 stars 23 forks source link

Problem with make and iniparser #20

Closed pprw closed 6 years ago

pprw commented 6 years ago

I tried to install mpd-notification with the following error:

$ make
gcc -std=c11 -O2 -fPIC -Wall -Werror -liniparser -lmpdclient -pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -Wl,-z,now -Wl,-z,relro -pie -o mpd-notification mpd-notification.c
In file included from mpd-notification.c:8:0:
mpd-notification.h:26:10: fatal error: iniparser.h: Aucun fichier ou dossier de ce type
 #include <iniparser.h>
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:33 : la recette pour la cible « mpd-notification » a échouée
make: *** [mpd-notification] Erreur 1

I tried to install iniparser (from https://github.com/ndevilla/iniparser). I did a "make" in iniparser folder and copied libiniparser.a to /usr/bin. With no effect.

How can I fix this issue?

system : debian sid

eworm-de commented 6 years ago

Remove the file and install package libiniparser-dev.

pprw commented 6 years ago

I installed libiniparser-dev from the repository before trying the manual installation.

I removed /usr/bin/ibiniparser.so.1 (that I copied from git), purge libiniparser-dev and then reinstall it, same error.

eworm-de commented 6 years ago

Looks like Debian uses a subdirectory for include files. Does it compile if you run this?

gcc -std=c11 -O2 -fPIC -Wall -Werror -liniparser -lmpdclient -pthread -I/usr/include/iniparser -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lnotify -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -Wl,-z,now -Wl,-z,relro -pie -o mpd-notification mpd-notification.c