I want to setup minidlna on my Mac (darwin 13.0.0) because it's the lightest and fastest DLNA server I've seen and plays effortlessly everything I've thrown at it. I had it installed before via macports but now it's not compiling anymore. I found out that minidlna is now supported on OS X, but it doesn't look so easy to setup as running "port install minidlna". I tried the binaries (minidlna_1.1.0_static.tar) but I couldn't run them probably because they weren't compiled for my version (no surprise). As the title says, I'm trying to compile minidlna but I'm getting some errors.
Firstly after every run of the "./configure; make; make install" command I kept getting configure failure because some library is missing (ffmpeg, etc). The easiest way for me to install it is via macports so that's how I kept getting them. On the last ./configure I got this:
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in po
CC getifaddr.o
getifaddr.c:178:39: error: use of undeclared identifier 'IFF_SLAVE'
if (p->ifa_flags & (IFF_LOOPBACK | IFF_SLAVE))
^
1 error generated.
make[2]: *** [getifaddr.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Making install in po
if test "minidlna" = "gettext-tools"; then \
.././install-sh -c -d /usr/local/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \
/usr/bin/install -c -m 644 ./$file \
/usr/local/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /usr/local/share/gettext/po/$file; \
done; \
else \
: ; \
fi
CC getifaddr.o
getifaddr.c:178:39: error: use of undeclared identifier 'IFF_SLAVE'
if (p->ifa_flags & (IFF_LOOPBACK | IFF_SLAVE))
^
1 error generated.
make[1]: *** [getifaddr.o] Error 1
make: *** [install-recursive] Error 1
You are still missing a library or two. I don't have a Mac so I can't tell you which libs are missing from macports. You might be able to Google it up.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It turns out that the initial problem for me to install minidlna via macports was that I was missing the command line tools for Xcode. However I saw something strange which could be the root cause of the last error I showed.
It minidlna's bug.
1. function was used before declared in taghandlers;
2. inline key word may avoid generate symbols while compiling;
3. patch is here, ignore change of metadata.c if you still use ffmpeg's old version;
Hi,
I want to setup minidlna on my Mac (darwin 13.0.0) because it's the lightest and fastest DLNA server I've seen and plays effortlessly everything I've thrown at it. I had it installed before via macports but now it's not compiling anymore. I found out that minidlna is now supported on OS X, but it doesn't look so easy to setup as running "port install minidlna". I tried the binaries (minidlna_1.1.0_static.tar) but I couldn't run them probably because they weren't compiled for my version (no surprise). As the title says, I'm trying to compile minidlna but I'm getting some errors.
Firstly after every run of the "./configure; make; make install" command I kept getting configure failure because some library is missing (ffmpeg, etc). The easiest way for me to install it is via macports so that's how I kept getting them. On the last ./configure I got this:
This looks like a bug to me and the guy here is saying some lines need to be added to the code. http://chris-labs.de/mac/2013/10/20/mac-install-minidlna-on-os-x.html
I added them but now sudo make is giving me this:
I'm stuck, please help.
Regards,
Vladimir
Last edit: jangozo 2013-10-29
You are still missing a library or two. I don't have a Mac so I can't tell you which libs are missing from macports. You might be able to Google it up.
It turns out that the initial problem for me to install minidlna via macports was that I was missing the command line tools for Xcode. However I saw something strange which could be the root cause of the last error I showed.
https://trac.macports.org/browser/trunk/dports/net/minidlna/Portfile
~~~~~~~~~~~~~~
post-patch {
if {[string match "clang" ${configure.compiler}]} {
reinplace "s|inline||g" ${worksrcpath}/utils.c ${worksrcpath}/tagutils/misc.c
}
~~~~~~~~~~~~~
This is the only difference from the sourceforge version and the macports version which worked. Developers please take a look.
PS. The minidlna version from the site still didn't work after I installed the command line tools for Xcode.
It minidlna's bug.
1. function was used before declared in
taghandlers
;2.
inline
key word may avoid generate symbols while compiling;3. patch is here, ignore change of metadata.c if you still use ffmpeg's old version;
Last edit: py_zhu 2013-11-23