From: Stefan K. <ste...@gm...> - 2006-03-31 13:35:33
|
Michael Reinelt schrieb: > Hi Stefan, > >> i try to write a plugin_mpd. > What the heck is 'mpd' ? > www.musicpd.org >> I have to use libmpdclient and include libmpdclient.h. >> make ends with "collect2: ld returned 1 exit status". >> How can i get libmpdclient compiled and linked? > > you have to change the autoconf stuff a bit. > > Have a look at plugins.m4, and llok for the MySQL stuff. Here's an > example of how to check for a header and library file. > So. I don't know what i have to do. I've plugin_mpd.c, libmpdclient.c and libmpdclient.h. I need libmpdclient compiled and static linked. This is the makefile from my mpd2lcd, which put the output to stdout: CFLAGS = -Wall -ggdb -lm SOURCES = mpd2lcd.c libmpdclient.c mpd2lcd: $(SOURCES) Sorry, but this is my first time i use header-files. Stefan Kuhne |