You are not logged in.

#1 2008-08-28 10:36:33

Cornholio
Member
Registered: 2007-09-26
Posts: 38

[ABS] mythtv

Hi,
I cannot compile mythtv from abs,
I get this: http://rafb.net/p/kL4rQ596.html

Offline

#2 2008-08-28 10:51:42

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [ABS] mythtv

The given link does not work for me.

Offline

#3 2008-08-28 22:48:10

Cornholio
Member
Registered: 2007-09-26
Posts: 38

Re: [ABS] mythtv

In file included from mpeg/pespacket.cpp:9:
/usr/include/directfb/../libavcodec/avcodec.h:258:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:316:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:431:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:1007:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:1320:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:2317:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:2484:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:2501:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:2860:5: error: missing binary operator before token "("
/usr/include/directfb/../libavcodec/avcodec.h:2961:5: error: missing binary operator before token "("
In file included from mpeg/pespacket.cpp:10:
/usr/include/directfb/../libavformat/avformat.h:155:5: error: missing binary operator before token "("
/usr/include/directfb/../libavformat/avformat.h:524:5: error: missing binary operator before token "("
g++ -c -pipe -march=i686 -fomit-frame-pointer -O3 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS -I/usr/include/directfb -D_REENTRANT -I/usr/include/freetype2 -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -D_LARGEFILE_SOURCE -DUSING_OSS -DUSING_H264TOOLS -DUSING_DIRECTFB -DUSING_X11 -DUSING_XV -DUSING_XVMC -DUSING_XVMCW -DUSING_OPENGL -DUSING_OPENGL_VSYNC -DUSING_FRONTEND -DUSING_FFMPEG_THREADS -DUSING_V4L -DUSING_DBOX2 -DUSING_IPTV -DUSING_HDHOMERUN -DUSING_IVTV -DUSING_DVB -DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/opt/qt/mkspecs/default -I. -I/usr/include -I/usr/src/linux-2.6.26-ARCH/include -I../.. -I.. -I. -I../libmyth -I../libavcodec -I../libavutil -I../libmythmpeg2 -Idvbdev -Impeg -Iiptv -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/UsageEnvironment/include -I/opt/qt/include -I/usr/X11R6/include -I/usr/X11R6/include -o mpegtables.o mpeg/mpegtables.cpp
In file included from mpeg/pespacket.cpp:9:
/usr/include/directfb/../libavcodec/avcodec.h:2940: error: 'av_malloc_attrib' does not name a type
In file included from mpeg/pespacket.cpp:11:
/usr/include/directfb/../libavutil/crc.h:41: error: expected initializer before 'av_pure'
mpeg/pespacket.cpp: In member function 'uint PESPacket::WriteAsTSPackets(unsigned char*, uint&) const':
mpeg/pespacket.cpp:116: warning: suggest parentheses around arithmetic in operand of |
mpeg/pespacket.cpp: In member function 'uint PESPacket::CalcCRC() const':
mpeg/pespacket.cpp:160: error: 'av_crc04C11DB7' was not declared in this scope
mpeg/pespacket.cpp:160: error: 'av_crc' was not declared in this scope
make[2]: *** [pespacket.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mpeg/mpegtables.cpp: In member function 'bool PSIPTable::VerifyPSIP(bool) const':
mpeg/mpegtables.cpp:242: warning: suggest parentheses around + or - in operand of &
mpeg/mpegtables.cpp: In static member function 'static const char* StreamID::toString(uint)':
mpeg/mpegtables.cpp:754: warning: deprecated conversion from string constant to 'char*'
mpeg/mpegtables.cpp:799: warning: deprecated conversion from string constant to 'char*'
mpeg/mpegtables.cpp:801: warning: deprecated conversion from string constant to 'char*'
mpeg/mpegtables.cpp:803: warning: deprecated conversion from string constant to 'char*'
mpeg/mpegtables.cpp:805: warning: deprecated conversion from string constant to 'char*'
mpeg/mpegtables.cpp:807: warning: deprecated conversion from string constant to 'char*'
mpeg/mpegtables.cpp:809: warning: deprecated conversion from string constant to 'char*'
mpeg/mpegtables.cpp:810: warning: deprecated conversion from string constant to 'char*'
mpeg/tspacket.h: In member function 'void PESPacket::InitPESPacket(TSPacket&)':
mpeg/tspacket.h:78: warning: array subscript is above array bounds
mpeg/tspacket.h:78: warning: array subscript is above array bounds
mpeg/tspacket.h:145: warning: array subscript is above array bounds
mpeg/tspacket.h:78: warning: array subscript is above array bounds
mpeg/tspacket.h: In static member function 'static ProgramMapTable* ProgramMapTable::CreateBlank(bool)':
mpeg/tspacket.h:78: warning: array subscript is above array bounds
mpeg/tspacket.h:146: warning: array subscript is above array bounds
mpeg/tspacket.h: In static member function 'static ProgramAssociationTable* ProgramAssociationTable::CreateBlank(bool)':
mpeg/tspacket.h:78: warning: array subscript is above array bounds
mpeg/tspacket.h:146: warning: array subscript is above array bounds
make[2]: Leaving directory `/var/abs/local/mythtv/src/mythtv-0.21/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory `/var/abs/local/mythtv/src/mythtv-0.21/libs'
make: *** [sub-libs] Error 2
==> ERRORE: Compilazione interrotta.
    L'operazione sta per essere interrotta...

root | @ zero | lun ago 25 | 00:02:43 | /var/abs/local/mythtv |
 $ ->

Last edited by Cornholio (2008-09-02 20:18:13)

Offline

#4 2009-01-09 01:52:15

Corneliax
Member
From: Indianapolis, IN
Registered: 2004-04-27
Posts: 43
Website

Re: [ABS] mythtv

This is still a problem. I need to compile mythtv with firewire support, but with or without firewire enabled, the ABS build fails. I was able to successfully build the subversion package from aur, but there are too many interface glitches in it for my taste.

When I have a chance, I'll play around with the build and post if I get it working.

Offline

#5 2009-01-09 06:09:21

Corneliax
Member
From: Indianapolis, IN
Registered: 2004-04-27
Posts: 43
Website

Re: [ABS] mythtv

Some new library versions conflict with mythtv 0.21, but you can work around these problems and build from ABS as follows:

1. Force remove ffmpeg
2. Add "--disable-directfb" to configure in PKGBUILD (I also enabled firewire)
3. Assuming you have all dependencies installed except ffmpeg, build with dependencies ignored: makepkg -d
4. Reinstall ffmpeg
5. Install and enjoy big_smile (running well so far at least...)

Offline

#6 2009-02-10 03:43:00

EtherNut
Member
Registered: 2007-09-29
Posts: 8

Re: [ABS] mythtv

Myth still fails to compile for me.  Trying to get firewire just like you folks..  Here's where Mine craps out and I tried on two different Arch boxes:

/opt/qt/include/qimage.h:58: warning: suggest parentheses around && within ||
sourceutil.cpp: In static member function 'static QString SourceUtil::GetChannelSeparator(uint)':
sourceutil.cpp:88: warning: deprecated conversion from string constant to 'char*'
sourceutil.cpp:88: warning: deprecated conversion from string constant to 'char*'
sourceutil.cpp:88: warning: deprecated conversion from string constant to 'char*'
sourceutil.cpp:88: warning: deprecated conversion from string constant to 'char*'
sourceutil.cpp:88: warning: deprecated conversion from string constant to 'char*'
g++ -c -pipe -march=i686 -fomit-frame-pointer -O3 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS -I/usr/include/directfb -D_REENTRANT -I/usr/include/freetype2 -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -D_LARGEFILE_SOURCE -DUSING_OSS -DUSING_H264TOOLS -DUSING_DIRECTFB -DUSING_X11 -DUSING_XV -DUSING_XVMC -DUSING_XVMCW -DUSING_OPENGL -DUSING_OPENGL_VSYNC -DUSING_FRONTEND -DUSING_FFMPEG_THREADS -DUSING_V4L -DUSING_LINUX_FIREWIRE -DUSING_FIREWIRE -DUSING_LIBAVC_5_3 -DUSING_DBOX2 -DUSING_IPTV -DUSING_HDHOMERUN -DUSING_IVTV -DUSING_DVB -DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/opt/qt/mkspecs/default -I. -I/usr/include -I/usr/src/linux-2.6.28-ARCH/include -I../.. -I.. -I. -I../libmyth -I../libavcodec -I../libavutil -I../libmythmpeg2 -Idvbdev -Impeg-Iiptv -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/UsageEnvironment/include -I/opt/qt/include -I/usr/X11R6/include -I/usr/X11R6/include -o cc608decoder.o cc608decoder.cpp
make[2]: *** [cardutil.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc608decoder.cpp: In member function 'void CC608Decoder::FormatCCField(int, int, int)':
cc608decoder.cpp:363: warning: suggest parentheses around && within ||
make[2]: *** [videosource.o] Error 1
make[2]: Leaving directory `/tmp/mythtv/src/mythtv-0.21/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory `/tmp/mythtv/src/mythtv-0.21/libs'
make: *** [sub-libs] Error 2
==> ERROR: Build Failed.
    Aborting...



I had to make edits to the PKGBUILD thusly..


pkgname=mythtv
pkgver=0.21
pkgrel=1
pkgdesc="A Homebrew PVR project"
arch=('i686' 'x86_64')
depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
        'libxvmc')
backup=(etc/mythtv/mythbackend.conf etc/mythtv/mysql.txt)
source=("http://www.mythtv.org/download/mythtv/0 … 21.tar.bz2"\
        mythbackend\
        QUICKSTART.archlinux)
#md5sums=('49fc135e1cde90cd935c1229467fa37e' '6544fb0045661bfb65876a83ca04a319'\
#         'a0ecb7f476cb71c0c1ac90d349fc7695')
license=('GPL2')
makedepends=(libgl)
groups=('pvr')
url="http://www.mythtv.org/"
install=mythtv.install

build() {
   cd $startdir/src/${pkgname}-${pkgver} || return 1
   . /etc/profile.d/qt3.sh

   # use QT3 qmake
   export PATH=$QTDIR/bin:$PATH
  [ "$CARCH" = "i686"   ] && ARCH="i686"
  [ "$CARCH" = "x86_64" ] && ARCH="x86-64"

  ./configure --prefix=/usr --cpu=${ARCH} --enable-mmx --enable-audio-oss \
   --enable-audio-alsa --enable-dvb --enable-lirc --enable-joystick-menu \
   --enable-firewire --enable-v4l --enable-ivtv --enable-dvb \
   --dvb-path=/usr/include/linux/dvb --enable-xvmc --disable-ffmpeg \
   --enable-xvmc-pro --enable-xvmc-vld --enable-opengl-vsync \
   --disable-audio-jack --disable-audio-arts || return 1


Any Ideas?

Ether..

Offline

#7 2009-02-10 06:19:52

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [ABS] mythtv

try adding:
options=('!makeflags')

Offline

#8 2009-02-10 14:30:37

EtherNut
Member
Registered: 2007-09-29
Posts: 8

Re: [ABS] mythtv

Snowman I appreciate the suggestion!  I added the makeflags option as below..

pkgname=mythtv
pkgver=0.21
pkgrel=1
pkgdesc="A Homebrew PVR project"
arch=('i686' 'x86_64')
depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
        'libxvmc')
backup=(etc/mythtv/mythbackend.conf etc/mythtv/mysql.txt)
source=("http://www.mythtv.org/download/mythtv/0 … 21.tar.bz2"\
        mythbackend\
        QUICKSTART.archlinux)
#md5sums=('49fc135e1cde90cd935c1229467fa37e' '6544fb0045661bfb65876a83ca04a319'\
#         'a0ecb7f476cb71c0c1ac90d349fc7695')
license=('GPL2')
makedepends=(libgl)
groups=('pvr')
url="http://www.mythtv.org/"
install=mythtv.install
options=('!makeflags')


Here is how the compile ended..


/opt/qt/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':                                                                   
/opt/qt/include/qimage.h:58: warning: suggest parentheses around && within ||                                                                                                       
g++ -c -pipe -march=i686 -fomit-frame-pointer -O3 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS -I/usr/include/directfb -D_REENTRANT -I/usr/include/freetype2 -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -D_LARGEFILE_SOURCE -DUSING_OSS -DUSING_H264TOOLS -DUSING_DIRECTFB -DUSING_X11 -DUSING_XV -DUSING_XVMC -DUSING_XVMCW -DUSING_OPENGL -DUSING_OPENGL_VSYNC -DUSING_FRONTEND -DUSING_FFMPEG_THREADS -DUSING_V4L -DUSING_LINUX_FIREWIRE -DUSING_FIREWIRE -DUSING_LIBAVC_5_3 -DUSING_DBOX2 -DUSING_IPTV -DUSING_HDHOMERUN -DUSING_IVTV -DUSING_DVB -DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/opt/qt/mkspecs/default -I. -I/usr/include -I/usr/src/linux-2.6.28-ARCH/include -I../.. -I.. -I. -I../libmyth -I../libavcodec -I../libavutil -I../libmythmpeg2 -Idvbdev -Impeg -Iiptv -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/UsageEnvironment/include -I/opt/qt/include -I/usr/X11R6/include -I/usr/X11R6/include -o videosource.o videosource.cpp                                                                                 
In file included from videosource.cpp:43:                                                                                                                                           
dvbtypes.h:23:6: error: #error "DVB driver includes with API version 3 not found!"                                                                                                 
dvbtypes.h:33:2: warning: #warning DVB API version < 3.1                                                                                                                           
dvbtypes.h:34:2: warning: #warning ATSC will not be supported using the Linux DVB drivers                                                                                           
In file included from ../libmyth/mythwidgets.h:20,                                                                                                                                 
                 from videosource.cpp:26:                                                                                                                                           
/opt/qt/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':                                                                   
/opt/qt/include/qimage.h:58: warning: suggest parentheses around && within ||                                                                                                       
make[2]: *** [videosource.o] Error 1                                                                                                                                               
make[2]: Leaving directory `/tmp/mythtv/src/mythtv-0.21/libs/libmythtv'                                                                                                             
make[1]: *** [sub-libmythtv] Error 2                                                                                                                                               
make[1]: Leaving directory `/tmp/mythtv/src/mythtv-0.21/libs'                                                                                                                       
make: *** [sub-libs] Error 2                                                                                                                                                       
==> ERROR: Build Failed.                                                                                                                                                           
    Aborting...


So I changed the compile flags to (I basically ripped out DVB ans set directfb to disable):

./configure --prefix=/usr --cpu=${ARCH} --enable-mmx --enable-audio-oss \
   --enable-audio-alsa --disable-dvb --enable-lirc --disable-joystick-menu \
   --enable-firewire --enable-v4l --disable-directfb --enable-ivtv \
   --enable-xvmc --disable-ffmpeg \
   --enable-xvmc-pro --enable-xvmc-vld --enable-opengl-vsync \
   --disable-audio-jack --disable-audio-arts || return 1



Which made it fail like:

../libavutil/common.h:209: warning: previous declaration of 'int64_t ff_gcd(int64_t, int64_t)'
/usr/include/freetype2/../libavutil/common.h: In function 'int ff_get_fourcc(const char*)':
/usr/include/freetype2/../libavutil/common.h:251: error: redefinition of 'int ff_get_fourcc(const char*)'
../libavutil/common.h:214: error: 'int ff_get_fourcc(const char*)' previously defined here
/usr/include/freetype2/../libavutil/common.h: In function 'uint64_t read_time()':
/usr/include/freetype2/../libavutil/common.h:329: error: declaration of C function 'uint64_t read_time()' conflicts with
../libavutil/common.h:301: error: previous declaration 'long long int read_time()' here
/usr/include/freetype2/../libavutil/common.h:329: warning: redundant redeclaration of 'uint64_t read_time()' in same scope
../libavutil/common.h:301: warning: previous declaration of 'long long int read_time()'
mpeg/pespacket.cpp: In member function 'uint PESPacket::WriteAsTSPackets(unsigned char*, uint&) const':
mpeg/pespacket.cpp:116: warning: suggest parentheses around arithmetic in operand of |
mpeg/pespacket.cpp: In member function 'uint PESPacket::CalcCRC() const':
mpeg/pespacket.cpp:160: error: 'av_crc04C11DB7' was not declared in this scope
make[2]: *** [pespacket.o] Error 1
make[2]: Leaving directory `/tmp/mythtv/src/mythtv-0.21/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory `/tmp/mythtv/src/mythtv-0.21/libs'
make: *** [sub-libs] Error 2


Any more suggestions for compiling this mean ole Myth?  :-)

Offline

Board footer

Powered by FluxBB