On Fri, Aug 29, 2008 at 3:30 AM, Miroslav Lachman <[EMAIL PROTECTED]> wrote: > I am trying to install mencoder (or mplayer) on FreeBSD 6.3-RELEASE-p1 from > fresh portstree and getting this error about missing header file:
[ ... ] > Stop in /usr/ports/multimedia/mplayer. > *** Error code 1 > > Stop in /usr/ports/multimedia/mplayer. > > png is installed and header file exists in my system: > # find /usr/local/ -name png.h > /usr/local/include/libpng/png.h > /usr/local/include/png.h > > I found post about similar problem with sugested fix / hack > http://lists.freebsd.org/pipermail/freebsd-multimedia/2008-July/008856.html > but it doesn't solved my problem. > > I get it compiled after following change in Makefile of mencoder + mplayer > > post-configure: > @${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g ; \ > s| -I.../libavutil| -I.../libavutil -I/usr/local/include|g' \ > ${WRKSRC}/config.mak > > > As I am not C programmer, I don't know if this is right fix or I did > something bad, but "it works for me" ;). The problem is that the CFLAGS are being passed in incorrectly. -I/usr/local/include *should* be in there. -Garrett _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"