[mythtv-users] error compiling myth
David Lodeiro
dlodeiro at inspired.net.au
Fri Dec 26 19:22:33 EST 2003
On Wed, 24 Dec 2003 04:24 pm, Ivor Hewitt wrote:
> On Tuesday 23 December 2003 23:41, David Lodeiro wrote:
> > On Wed, 24 Dec 2003 12:16 am, Ivor Hewitt wrote:
> > > On Tuesday 23 December 2003 13:43, David Lodeiro wrote:
> > > > Hi,
> > > >
> > > > I'm trying to build mythtv on RedHat 9 with DVB support built in.
> > > > However I am getting some errors when doing make.
> > > >
> > > > Following is what it ends on
> > > >
> > > > cddevice.h:251: 'QString' is used as a type, but is not defined as a
> > > > type.
> > >
> > > [snip]
> > >
> > > Do you have qt-devel installed? Do you have an env var "QTDIR"
> > > pointing to your QT source?
> >
> > Thanks for your reply
> >
> > I had originally placed the variables in .profile not realising that it
> > wouldnt take affect, I had to place it in .bash_profile. Now it is set
> > and it does seem to progress further. However now it comes up with an
> > error as it cannot find -lqt-mt
> >
> > I did a search and the only libqt-mt that show up are in /usr/lib/qt-3.1
> > This must have come as part of the original redhat 9 install, because the
> > version of qt that I installed is 3.3.0b1 that I obtained from the qt
> > website.
> >
> > Should I be using an older version of qt?
> >
> > Following is the error
>
> Recompile the copy of qt you downloaded but add "-thread" to configure.
>
> e.g.
>
> /usr/lib/qt-copy/configure -system-zlib -qt-gif -system-libpng
> -system-libjpeg -plugin-imgfmt-mng -thread -no-exceptions -plugin-sql-mysql
> -I/usr/include/mysql -L/usr/lib/mysql
>
> Regards,
Thanks a lot for the help, that got it further. but now I'm getting this error
make[2]: Entering directory `/root/mythtv-0.13/libs/libmythtv'
g++ -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer
`freetype-config --cflags` -D_REENTRANT -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DPREFIX=\"/usr/local\" -DMMX -DUSING_DVB -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_SHARED -I/usr/local/qt/mkspecs/default -I. -I/usr/local/include
-I../../../linux-2.6.0/include -I../libmyth -I.. -I../libavcodec -I../
libavformat -I../libdvbdev -I/usr/local/qt/include -o videoout_xv.o
videoout_xv.cpp
In file included from ../libavcodec/common.h:164,
from ../libavcodec/avcodec.h:14,
from videoout_xv.cpp:26:
/usr/include/inttypes.h:396: parse error before `__attribute__'
/usr/include/inttypes.h:414: parse error before `__attribute__'
/usr/include/inttypes.h:430: parse error before `__attribute__'
/usr/include/inttypes.h:449: parse error before `__attribute__'
In file included from ../libavcodec/avcodec.h:15,
from videoout_xv.cpp:26:
../libavcodec/rational.h:35: parse error before `__attribute__'
../libavcodec/rational.h:43: parse error before `__attribute__'
In file included from videoout_xv.cpp:26:
../libavcodec/avcodec.h:1936: parse error before `}' token
make[2]: *** [videoout_xv.o] Error 1
make[2]: Leaving directory `/root/mythtv-0.13/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory `/root/mythtv-0.13/libs'
make: *** [sub-libs] Error 2
[root at localhost mythtv-0.13]#
I had a look through the mailing list and someone else has had this exact
problem. The fix that was suggetsed is as follows
<linux/compiler.h> from that kerenl doesn't work well with glibc. The
quick fix is to not #include it in <asm/sigcontext.h> and also
#define __user to nothing. The better fix is bug RH to get the fix from
Debian (bugs #218447, #218482) or come up with their own fix.
This didnt make to much sense to me, so I had a look in /usr/include/asm/
sigcontext.h for any reference to linux/compiler.h and I couldnt find it.
Can anyone give me any additional info.
Thanks in advance
David
More information about the mythtv-users
mailing list