OpenWRT port


I've been hacking on OpenWRT and I got mocp working. Only issue was that in OpenWRT build environment libiconv shared libraries are installed to /usr/lib/libiconv/lib and headers to /usr/lib/libiconv/include. I hacked libiconv makefiles to change it to traditional /usr/lib and /usr/include so mocp would compile but this aint right.

What CFLAGS/LDFLAGS etc I need to pass to the configure/make script to make mocp compile against those customized paths? It seems more advanced programs are using --with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" but this didn't work with mocp.

OpenWRT makefile for mocp:


Try running configure this way:

./configure LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include

Resolved by r2415: Add --with-libiconv-prefix configure option.

I just got a TP-Link router and for several weeks I'm playing with OpenWRT on it.

Let me add that thanks to JCF there are now several more improvements to MOC targeted at OpenWRT. Several bugs have been squashed and vorbis decoding has been optimized (most routers are too slow to decode vorbis by standard libvorbis) by using tremor (integer version of libvorbis).

Several issues still remain, e.g. .moc directory should be exported via NFS or put on tmpfs, ffmpeg has it's worse days, crashes on some weird tags, and so on.

I will try to prepare a Makefile for current MOC which would allow it to be automatically build with OpenWRT image. I will also try to get OpenWRT guys to update their version (current 2.4.4 is even more unstable - crashes e.g. on any filename with "!", no working vorbis).