Closed kfarwell closed 9 years ago
Do you have libmpdclient client installed?
Yes, 2.9 installed from the 386 package in OpenBSD 5.6.
Weird, because this error /root/ympd/src/mpd_client.c:24:24: error: mpd/client.h: No such file or directory
indicates that the headers are either missing or in an unexpected path.
Does OpenBSD split dev and bin packages for libraries? (debian does this iirc)
Nope, just one package per library: libmpdclient-2.9.tgz in this case.
cmake finds it...
-- Found LibMPDClient: /usr/local/lib/libmpdclient.so.2.0
That's not the file you're missing or that's misplaced.
What you seem to be missing are the headers, which might be part of the package, but are apparently not found by your compiler. What's the output of locate client.h|grep mpd
(assuming you have locate).
# locate client.h|grep mpd
/usr/local/include/mpd/client.h
There is a stackoverflow question where someone appears to have the same problem as you. It's sadly unanswered…
I just commited 3701a8510b, it fixes building with openbsd, but sadly openbsd libc doesn't support the %m formatstring, so it just segfaults when searching for something. I will create a new bug report for it.
openbsd build should work now :)
OpenBSD 5.6 i386 gcc 4.2.1 20070719 cmake 2.8.12.2 libmpdclient 2.9