Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
make: *** No rule to make target `-lavformat', needed by `minidlna'. Stop.
I wanna help.
Thank you so much!
This one had me stumped for a while as well…
The answer is the minidlna target in the Makefile at line 67. This includes $(LIBS) which is unnecessary as you've already installed and built the libraries you need. Anyway, with $(LIBS) included in this target, for some reason make on CentOS can't find the ffmpeg libraries (libavformat, libavcodec, etc.) and tries to build those libraries, which is why you get the error.
The fix is simply to remove $(LIBS) from this target. The target then looks like this:
minidlna: $(BASEOBJS) $(LNXOBJS)
@echo Linking $@
@$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS)
Thank you Jonathan.
And now the problem comes into "/usr/bin/ld: cannot find -lavformat" after it begins to linking?
Have anyone met this before?
What directory do you have libavformat and the other ffmpeg libraries installed in?
There's not need to modify the makefile. You need to install
Thank you guys.
I am a newbie to CentOS, so I transfer to Ubuntu again .
And It's convinent for me to install minidlna through "sudo apt-get install minidlna" ….
If all you want to do is run minidlna without making changes to the code, then why not download and install the 'static' version. This includes the required library code in the binary and works fine on CentOS 6.2.