Mailing List Archive

Trouble Compiling MythTV-0.10 on RedHat 9.0
I've been struggling to get mythtv-0.10 installed over the past few
days. I've read/searched the documentation and haven't found anything
relating to the problem I'm having.

My system is as follows:
RedHat 9.0 (kernel 2.4.20-8)
Duron 800 on VT82C686 [Apollo Super South] Motherboard
NVidia Geforce 4 MX440-8X AGP
BT878 Video Capture Card

I manually installed all of the perl modules required for xmltv, then
compiled and installed xmltv-0.5.14 (not building CVS just yet)

I think my problem has to do with qt-3.1 on RedHat 9, and maybe
something with g++. Here is what I have installed for qt on redaht...

[root@localhost mythtv-0.10]# rpm -qa | grep qt
qtcups-devel-2.0-15
qt-devel-3.1.1-6
qt-MySQL-3.1.1-6
qt-designer-3.1.1-6
qt-ODBC-3.1.1-6
qt-3.1.1-6
qtcups-2.0-15
qt-Xt-3.1.1-6

I unpacked mythtv-0.10 to /usr/src/mythtv-0.10
When I run ./configure it outputs:
[root@localhost mythtv-0.10]# ./configure
Please note that these settings only deal with libavcodec, not MythTV.
CPU x86
Big Endian no
MMX enabled yes
Vector Builtins yes
lcdproc support no
Creating config.mak and config.h

When I run 'make', I get:
[root@localhost mythtv-0.10]# make
make: *** No rule to make target
`/usr/lib/qt3-1/mkspecs/linux-g++/qmake.conf',
needed by `Makefile'. Stop.

A quick look in the 'troubleshooting' indicated my qt is broken, so I
create the recommended symbolic link:
[root@localhost mythtv-0.10]# cd /usr/lib/qt-3.1/mkspecs
[root@localhost mkspecs]# ln -sf linux-g++ default

Return to /usr/src/mythtv-0.10 and re-run 'make':
[root@localhost mythtv-0.10]# make
make: *** No rule to make target
`/usr/lib/qt3-1/mkspecs/linux-g++/qmake.conf',
needed by `Makefile'. Stop.

Argh... execute /sbin/ldconfig... retry 'make'.. same error. So then I
try the other *non-recommended* workaround:
[root@localhost mythtv-0.10]# qmake mythtv.pro

Now... when I 'make'... it starts to compile, but dies a ways into the
process (not sure how much of this is useful so I cut out much of the
successful stuff):
[root@localhost mythtv-0.10]# make
cd libs && qmake -o Makefile
cd libs && make -f Makefile
make[1]: Entering directory `/usr/src/mythtv-0.10/libs'
cd libavcodec && qmake -o Makefile
cd libavcodec && make -f Makefile
make[2]: Entering directory `/usr/src/mythtv-0.10/libs/libavcodec'
gcc -c -pipe -w -O3 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -I/usr/lib/qt-3.1/mkspecs/default -I. -I../..
-I/usr/lib/qt3-1/include -o common.o common.c
gcc -c -pipe -w -O3 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -I/usr/lib/qt-3.1/mkspecs/default -I. -I../..
-I/usr/lib/qt3-1/include -o utils.o utils.c
gcc -c -pipe -w -O3 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -I/usr/lib/qt-3.1/mkspecs/default -I. -I../..
-I/usr/lib/qt3-1/include -o mem.o mem.c
<< *STRIPPED OUT A BUNCH OF STUFF HERE* >>
gcc -c -pipe -w -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -I/usr/lib/qt-3.1/mkspecs/default -I. -I../..
-I../libavcodec -I../libmythtv -I/usr/lib/qt3-1/include -o wav.o wav.c
rm -f libavformat.a
ar cqs libavformat.a 4xm.o allformats.o asf.o avidec.o avienc.o avio.o
aviobuf.o cutils.o file.o mov.o mpeg.o mpegts.o mpegtsenc.o mpjpeg.o
rm.o utils.o wav.o
make[2]: Leaving directory `/usr/src/mythtv-0.10/libs/libavformat'
cd libmyth && qmake -o Makefile
cd libmyth && make -f Makefile
make[2]: Entering directory `/usr/src/mythtv-0.10/libs/libmyth'
g++ -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer
-D_REENTRANT -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DPREFIX=\"/usr/local\" -DMMX -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-I/usr/lib/qt-3.1/mkspecs/default -I. -I../../../../local/include
-I/usr/lib/qt3-1/include -o dialogbox.o dialogbox.cpp
dialogbox.cpp:4:21: qlayout.h: No such file or directory
dialogbox.cpp:5:25: qpushbutton.h: No such file or directory
dialogbox.cpp:6:26: qbuttongroup.h: No such file or directory
dialogbox.cpp:7:20: qlabel.h: No such file or directory
dialogbox.cpp:8:21: qcursor.h: No such file or directory
dialogbox.cpp:9:26: qapplication.h: No such file or directory
In file included from dialogbox.cpp:11:
dialogbox.h:4:23: qcheckbox.h: No such file or directory
In file included from dialogbox.h:6,
from dialogbox.cpp:11:
mythdialogs.h:4:21: qwidget.h: No such file or directory
mythdialogs.h:5:21: qdialog.h: No such file or directory
mythdialogs.h:6:26: qprogressbar.h: No such file or directory
mythdialogs.h:7:18: qdom.h: No such file or directory
mythdialogs.h:8:22: qptrlist.h: No such file or directory
<< *STRIPPED OUT A BUNCH OF STUFF HERE* >>
dialogbox.cpp:45: syntax error before `{' token
dialogbox.cpp:54: syntax error before `->' token
dialogbox.cpp:56: syntax error before `->' token
dialogbox.cpp:60: cannot declare member function `DialogBox::buttonPressed'
within `QMutexLocker'
dialogbox.cpp:60: syntax error before `{' token
{standard input}: Assembler messages:
{standard input}:15: Error: symbol `focusInEvent' is already defined
{standard input}:21: Error: symbol `focusInEvent' is already defined
{standard input}:27: Error: symbol `focusInEvent' is already defined
{standard input}:84: Error: symbol `keyPressEvent' is already defined
{standard input}:102: Error: symbol `keyPressEvent' is already defined
{standard input}:114: Error: symbol `drawButton' is already defined
{standard input}:120: Error: symbol `keyPressEvent' is already defined
{standard input}:126: Error: symbol `keyReleaseEvent' is already defined
{standard input}:132: Error: symbol `focusInEvent' is already defined
{standard input}:138: Error: symbol `focusOutEvent' is already defined
{standard input}:144: Error: symbol `focusInEvent' is already defined
{standard input}:155: Error: symbol `keyPressEvent' is already defined
{standard input}:201: Error: symbol `m_context' is already defined
{standard input}:207: Error: symbol `m_order' is already defined
{standard input}:320: Error: symbol `m_font' is already defined
{standard input}:325: Error: symbol `m_cutdown' is already defined
{standard input}:396: Error: symbol `keyPressEvent' is already defined
{standard input}:402: Error: symbol `wmult' is already defined
{standard input}:408: Error: symbol `hmult' is already defined
{standard input}:414: Error: symbol `screenwidth' is already defined
{standard input}:420: Error: symbol `screenheight' is already defined
{standard input}:448: Error: symbol `extradata' is already defined
make[2]: *** [dialogbox.o] Error 1
make[2]: Leaving directory `/usr/src/mythtv-0.10/libs/libmyth'
make[1]: *** [sub-libmyth] Error 2
make[1]: Leaving directory `/usr/src/mythtv-0.10/libs'
make: *** [sub-libs] Error 2
[root@localhost mythtv-0.10]#

Though the compiler gripes:
dialogbox.cpp:4:21: qlayout.h: No such file or directory
dialogbox.cpp:5:25: qpushbutton.h: No such file or directory
dialogbox.cpp:6:26: qbuttongroup.h: No such file or directory
dialogbox.cpp:7:20: qlabel.h: No such file or directory
dialogbox.cpp:8:21: qcursor.h: No such file or directory
dialogbox.cpp:9:26: qapplication.h: No such file or directory

... all of those files are in /usr/lib/qt-3.1/include ...

I've set $QTDIR for my setup:
[root@localhost mythtv-0.10]# echo $QTDIR
/usr/lib/qt3-1

I've tried to make sure all libraries are in /etc/ld.so.conf...
[root@localhost include]# cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib
/usr/lib/mysql
/usr/local/lib
/usr/lib/qt-3.1/include

I'm very confused at this point. Can anyone offer any help??? It seems
the gcc stuff is successful, but when g++ tries to compile it fails.
Seems that all required packages/libraries are in place.

Sorry for the long post,
Chris
Re: Trouble Compiling MythTV-0.10 on RedHat 9.0 [ In reply to ]
On Thursday 07 August 2003 06:00 pm, Chris Hillman wrote:
> I've been struggling to get mythtv-0.10 installed over the past few
> days. I've read/searched the documentation and haven't found anything
> relating to the problem I'm having.

http://atrpms.physik.fu-berlin.de/dist/rh9/mythtv-suite/

Isaac
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: Trouble Compiling MythTV-0.10 on RedHat 9.0 [ In reply to ]
>>>>> On Thu, 07 Aug 2003 16:00:55 -0600, Chris Hillman <chris@boredinboise.org> said:

[...]
c> When I run 'make', I get:
c> [root@localhost mythtv-0.10]# make
c> make: *** No rule to make target
c> `/usr/lib/qt3-1/mkspecs/linux-g++/qmake.conf',
c> needed by `Makefile'. Stop.

[...]
c> A quick look in the 'troubleshooting' indicated my qt is broken, so I
c> create the recommended symbolic link:
c> [root@localhost mythtv-0.10]# cd /usr/lib/qt-3.1/mkspecs
c> [root@localhost mkspecs]# ln -sf linux-g++ default

[...]
c> I've set $QTDIR for my setup:
c> [root@localhost mythtv-0.10]# echo $QTDIR
c> /usr/lib/qt3-1


Looks like there's a typo there. Shouldn't it be:

/usr/lib/qt-3.1

Anyway, you normally don't have to set QTDIR manually on a RedHat
system. It should be set already in "/etc/profile.d/qt.sh".
--
Gregorio Gervasio, Jr.
gtgj@pacbell.net
Re: Trouble Compiling MythTV-0.10 on RedHat 9.0 [ In reply to ]
LOL... thank you so much. My typo was what broke the compile. I must
have been tired when I typed that late last night. Looking forward to
getting MythTV running!

-Chris

Gregorio Gervasio, Jr. wrote:
>>>>>>On Thu, 07 Aug 2003 16:00:55 -0600, Chris Hillman <chris@boredinboise.org> said:
>
>
> [...]
> c> When I run 'make', I get:
> c> [root@localhost mythtv-0.10]# make
> c> make: *** No rule to make target
> c> `/usr/lib/qt3-1/mkspecs/linux-g++/qmake.conf',
> c> needed by `Makefile'. Stop.
>
> [...]
> c> A quick look in the 'troubleshooting' indicated my qt is broken, so I
> c> create the recommended symbolic link:
> c> [root@localhost mythtv-0.10]# cd /usr/lib/qt-3.1/mkspecs
> c> [root@localhost mkspecs]# ln -sf linux-g++ default
>
> [...]
> c> I've set $QTDIR for my setup:
> c> [root@localhost mythtv-0.10]# echo $QTDIR
> c> /usr/lib/qt3-1
>
>
> Looks like there's a typo there. Shouldn't it be:
>
> /usr/lib/qt-3.1
>
> Anyway, you normally don't have to set QTDIR manually on a RedHat
> system. It should be set already in "/etc/profile.d/qt.sh".
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users