Mailing List Archive

setup problem
Hi. I finally got mythtv compiled and installed. It had a lot of errors
like below. on make and make install. But I'm hoping those are not a
problem, and I can't test for sure since there is no 'make test'.
Anyway, it _did_ compile and install, so I gave it a whirl.

make errors
#######################################
cc1plus: warning: as it has already been specified as a non-system
directory
g++ -o setup main.o -L/usr/lib/qt3-gcc3.2/lib -L/usr/X11R6/lib
-lmyth -L/usr/local/lib -L../libs/libmyth -lqt-mt -lpthread -lXext
-lX11 -lm
make[1]: Leaving directory `/home/cedar/download/MC/setup'
[root@freevo MC]#


install errors
##########################################
strip "/usr/local/share/mythtv/themes/"
strip: /usr/local/share/mythtv/themes/: Is a directory
make[1]: *** [install_themes] Error 1
make[1]: Leaving directory `/home/cedar/download/MC/themes'
make[1]: Entering directory `/home/cedar/download/MC/setup'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/cedar/download/MC/setup'
[root@freevo MC]#



My real problem is this. I'm trying to do the setup. The mysql <mc.sql
things seems to have worked because now I have a database called
mythconverg. Now onto setup. It returns this error:

[root@freevo setup]# ./setup
QSqlDatabase warning: QMYSQL3 driver not loaded
QSqlDatabase: available drivers:
couldn't open db
[root@freevo setup]#

my best guess is that it is because the QT version that ships with Red
Hat isn't compiled with mysql support (and perhaps thread support?).
The problem is this, I can't test that because when I try to compile my
own QT the compile fails (see below) and I can't find a pre-compiled
rpm that includes mysql and thread support. So help 1) diagnosing the
setup error above, 2)diagnosing the QT compile failure, or 3) finding a
compiled version of QT with thread and mysql support that will install
on my Red Hat 8 machine would be really apreciated. I'm not the
sharpest tool in the shed, and I have been bashing my head against
trying to get mythtv installed for a week. I can't fail now!

Thanks in advance for your help!
Cedar



QT compile failure.
I do this:
./configure -qt-gif -qt-sql-mysql -plugin-sql-mysql -thread

then
gmake

then it compile for 45 minutes
then these errors:
#########################################3
/qt3-gcc3.2/mkspecs/linux-g++ -o
.obj/release-shared-mt/moc_mainfilesettings.o
.moc/release-shared-mt/moc_mainfilesettings.cpp
test -d ../../../../plugins/designer/ || mkdir -p
../../../../plugins/designer/
rm -f libcppeditor.so
g++ -shared -Wl,-soname,libcppeditor.so.1
-Wl,-rpath,../../../../plugins/designer/ -o libcppeditor.so
.obj/release-shared-mt/cppeditor.o
.obj/release-shared-mt/syntaxhighliter_cpp.o
.obj/release-shared-mt/cppcompletion.o
.obj/release-shared-mt/editorinterfaceimpl.o
.obj/release-shared-mt/languageinterfaceimpl.o
.obj/release-shared-mt/common.o
.obj/release-shared-mt/preferenceinterfaceimpl.o
.obj/release-shared-mt/yyreg.o .obj/release-shared-mt/cppbrowser.o
.obj/release-shared-mt/projectsettingsinterfaceimpl.o
.obj/release-shared-mt/sourcetemplateinterfaceimpl.o
.obj/release-shared-mt/projectsettings.o
.obj/release-shared-mt/mainfilesettings.o
.obj/release-shared-mt/moc_cppeditor.o
.obj/release-shared-mt/moc_cppcompletion.o
.obj/release-shared-mt/moc_editorinterfaceimpl.o
.obj/release-shared-mt/moc_cppbrowser.o
.obj/release-shared-mt/moc_projectsettings.o
.obj/release-shared-mt/moc_mainfilesettings.o
-Wl,-rpath,/usr/lib/qt3-gcc3.2/lib -L/usr/lib/qt3-gcc3.2/lib
-L/usr/X11R6/lib -L/usr/X11R6/lib -leditor -lqt-mt -lpthread -lGLU
-lGL -lXmu -lICE -lSM -ldl -lXext -lX11 -lm -lXinerama -lXrender
/usr/bin/ld: cannot find -leditor
collect2: ld returned 1 exit status
gmake[5]: *** [../../../../plugins/designer/libcppeditor.so] Error 1
gmake[5]: Leaving directory
`/usr/local/qt-x11-free-3.0.5/tools/designer/plugins/cppeditor'
gmake[4]: *** [sub-cppeditor] Error 2
gmake[4]: Leaving directory
`/usr/local/qt-x11-free-3.0.5/tools/designer/plugins'
gmake[3]: *** [sub-plugins] Error 2
gmake[3]: Leaving directory
`/usr/local/qt-x11-free-3.0.5/tools/designer'
gmake[2]: *** [sub-designer] Error 2
gmake[2]: Leaving directory `/usr/local/qt-x11-free-3.0.5/tools'
gmake[1]: *** [sub-tools] Error 2
gmake[1]: Leaving directory `/usr/local/qt-x11-free-3.0.5'
gmake: *** [init] Error 2
[root@freevo qt]#
Re: setup problem [ In reply to ]
On 27 Oct 2002 at 12:46, mythtv.3.ohthetrees@spamgourm wrote:

> [root@freevo setup]# ./setup
> QSqlDatabase warning: QMYSQL3 driver not loaded
> QSqlDatabase: available drivers:
> couldn't open db
> [root@freevo setup]#
Thats likley because it can't find the right path to the sql driver. On
Mandrake 8.2, it will be somewhere under /usr/lib/qt3, specifically

/usr/lib/qt3/plugins/sqldrivers

doing an ls there gives you

[sibbleh@marcus sqldrivers]$ ls
core libqsqlmysql.so* libqsqlodbc.so* libqsqlpsql.so*

> my best guess is that it is because the QT version that ships with Red
> Hat isn't compiled with mysql support (and perhaps thread support?).
Possibly, try doing a search (use locate if installed and database is up to
date) for the libqsqlmysql.so and note where that directory is.

Then do
export QTDIR=/path/to/your/qt-libs

> The problem is this, I can't test that because when I try to compile my
> own QT the compile fails (see below) and I can't find a pre-compiled
> rpm that includes mysql and thread support.
based on your errors below it looks like you might be missing a development
library or 2. Pop on over to http://rpmfind.net and do a search for qt3, I
think you'll find what you need there (in rpm or srpm form). That's how I got
a nice source rpm for qt3 that compiles nicely on my mdk 8.2 and 8.1 boxen.

If you get a source rpm (srpm or src.rpm), basically as root you'd do:

rpm --rebuild sourcerpmname.src.rpm, it'll run for a while, took about an
hour on my athlon 1.4g system and near the end of the output it will mention
1 or 2 rpms in a directory. Under mdk that was /usr/src/RPM/RPMS/i686.
Install those 2 rpm's and you should be good to go. I had to use --force on
my mdk box as I had installed older/other precompiled versions of the libs.

Anyhow, this should give you a bit of info to get started, I am sure other RH
users will pipe up with further details.


--
Harondel J. Sibble
Sibble Computer Consulting
Creating solutions for the small business and home computer user.
help@pdscc.com (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
(604) 739-3709 (voice/fax) (604) 686-2253 (pager)