Date: Sat, 30 Aug 2008 13:51:58 -0700 From: "Garrett Cooper" <yanefbsd@gmail.com> To: "Miroslav Lachman" <000.fbsd@quip.cz> Cc: freebsd-ports@freebsd.org Subject: Re: failed to build mencoder (mplayer), missing header files Message-ID: <7d6fde3d0808301351y2ffe6007uc766dc9ef9c13a45@mail.gmail.com> In-Reply-To: <48B7CFB4.4040206@quip.cz> References: <48B7CFB4.4040206@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 29, 2008 at 3:30 AM, Miroslav Lachman <000.fbsd@quip.cz> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d6fde3d0808301351y2ffe6007uc766dc9ef9c13a45>