Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2009 11:55:58 +0100 (CET)
From:      "Bernhard Froehlich" <decke@bluelife.at>
To:        "Torfinn Ingolfsen" <torfinn.ingolfsen@broadpark.no>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: Call for Testers: MythTV 0.22
Message-ID:  <f59daa885bd6a8a10484d30a24ecb0a7.squirrel@webmail.itac.at>
In-Reply-To: <20091120114100.9bec7d49.torfinn.ingolfsen@broadpark.no>
References:  <20091115204205.482e6a15@bluelife.at> <20091120085925.f75b3e73.torfinn.ingolfsen@broadpark.no> <20091120114100.9bec7d49.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, November 20, 2009 11:41 am, Torfinn Ingolfsen wrote:
> On Fri, 20 Nov 2009 08:59:25 +0100
> Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> wrote:
>
>> I don't understand why x11 support isn't autodetected, but that neeeds
>> to be fixed somehow.
>
> Hmm, as usleep said in the initial message about mythtv 0.22, configure
> needs a few things.
>
> Is argument order important for configure?
>
> I now trying with this line in Makefile:
> CONFIGURE_ARGS= --enable-xvmc --enable-opengl-vsync --disable-directfb
> --enable-ivtv \
>                 --disable-xvmc-pro --disable-xvmc-vld --disable-xvmcw \
>                 --disable-dvb --extra-ldflags=-L/usr/local/lib \
>                 --prefix=${PREFIX} --extra-cflags="-g
> -I/usr/local/include" --extra-cxxflags=-g
>
> and that gets me this output from configure:
> # Video Output Support
> x11 support               yes
> xrandr support            yes
> xv support                yes
> XvMC support              yes
> XvMC VLD support          no
> XvMC pro support          no
> XvMC libs                 -lI810XvMC
> VDPAU support             no
> OpenGL video              yes
> OpenGL vsync              yes
> DirectFB                  no
> Fribidi formatting        yes
> MHEG support              yes
>
> but then it dies here:
> gmake[2]: Entering directory
> `/usr/ports/multimedia/mythtv/work/mythtv-0.22/libs/libmythdvdnav'
> gcc -c -pipe -march=k8 -fomit-frame-pointer -O3 -O2 -fno-strict-aliasing
> -pipe -D_ISOC99_SOURCE -std=c99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -pthread -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith
> -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef
> -fno-math-errno -g -I/usr/local/include -fPIC -DPIC -w -fPIC -DMMX
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_AV_CONFIG_H
> -D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
> -I/usr/include -I/usr/local -I/usr/local/include -I. -I../.. -Idvdnav
> -I../libmythdb -I/usr/local/include -o dvdnav.o dvdnav/dvdnav.c
> dvdnav/dvdnav.c: In function 'dvdnav_open':
> dvdnav/dvdnav.c:79: error: 'DVDNAV_SVN_REV' undeclared (first use in this
> function)
> dvdnav/dvdnav.c:79: error: (Each undeclared identifier is reported only
> once
> dvdnav/dvdnav.c:79: error: for each function it appears in.)
> dvdnav/dvdnav.c: In function 'dvdnav_audio_stream_format':
> dvdnav/dvdnav.c:915: error: 'DVDNAV_FORMAT_AC3' undeclared (first use in
> this function)
> dvdnav/dvdnav.c:919: error: 'DVDNAV_FORMAT_MPEGAUDIO' undeclared (first
> use in this function)
> dvdnav/dvdnav.c:922: error: 'DVDNAV_FORMAT_LPCM' undeclared (first use in
> this function)
> dvdnav/dvdnav.c:925: error: 'DVDNAV_FORMAT_DTS' undeclared (first use in
> this function)
> dvdnav/dvdnav.c:928: error: 'DVDNAV_FORMAT_SDDS' undeclared (first use in
> this function)
> gmake[2]: *** [dvdnav.o] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/multimedia/mythtv/work/mythtv-0.22/libs/libmythdvdnav'
> gmake[1]: *** [sub-libmythdvdnav-all] Error 2
> gmake[1]: Leaving directory
> `/usr/ports/multimedia/mythtv/work/mythtv-0.22/libs'
> gmake: *** [sub-libs-all-ordered] Error 2

Looks like what i described one mail ago. We cannot use --extra-cflags
because it WILL break in weird ways. It pulls in header files from
/usr/local/include because "-g -I/usr/local/include" is earlier than "-I."
and so it breaks.

As a hackish workaround just until i fix it correctly you could try
--extra-cflags="-g -I. -I/usr/local/include" --extra-ldflags="-L.
-L/usr/local/lib"

-- 
Bernhard Fröhlich
http://www.bluelife.at/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f59daa885bd6a8a10484d30a24ecb0a7.squirrel>