AW: [mythtv-users] Compiling error on SuSE 8.1 with QT3.3.0

Philippe C. Cattin cattin at vision.ee.ethz.ch
Thu Feb 19 04:55:41 EST 2004


This is what worked for me on SuSE 8.2 & 9.0. This approach needs no 
fiddeling around with makefiles!

1. get the newest qt3.3 (don't use the 3.3beta as several things won't 
work in myth with the beta version).

   wget ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.3.0.tar.bz2

2. unpack it

    tar -jxf qt-x11-free-3.3.0.tar.bz2

3. cd qt-x11-free-3.3.0

4. ./configure -prefix /usr/local/qt3.3 -qt-gif -thread -qt-sql-mysql 
-I/usr/include/mysql

   I prefer installing the new Qt in /usr/local/qt3.3. the -I is needed 
so that the compiler finds all the header files.

5. make

6. su
    [passwort]

7. make install

at this point you have the newest version of Qt installed in 
/usr/local/qt3.3 and all that is left to do is changing the environment 
variables. since I use tcsh I change it in ~/.tcshrc

   setenv QTDIR /usr/local/qt3.3
   setenv PATH $PATH':$QTDIR/bin'

then make shure you use the new version of Qt during compilation

   source ~/.tcshrc

after a make distclean, ./configure and make in your mythtv everything 
should work as expected.

to ensure that your binaries are realy using the new Qt library you can 
check it with ldd, e.g.:

   ldd /usr/local/lib/mythtv/plugins/libmythmusic.so | grep -i Qt

regards, Philippe



> I have begun from scratch. Untar the sources,
> ./configure
> qmake mythtv.pro
> make
>  
> then this :
>  
> eg.o mpegts.o mpegtsenc.o mpjpeg.o nut.o os_support.o rm.o psxstr.o 
> raw.o flic.o audi
> o.o segafilm.o swf.o utils.o wav.o wc3movie.o westwood.o yuv4mpeg.o 
> sierravmd.o    -W
> l,-rpath,/usr/lib/qt3/lib  -L/usr/lib/qt3/lib  -L/usr/X11R6/lib -lqt-mt 
> -lpthread -lX
> ext -lX11 -lm
> ln -s libmythavformat-0.14.so.0.14.0 libmythavformat-0.14.so
> ln -s libmythavformat-0.14.so.0.14.0 libmythavformat-0.14.so.0
> ln -s libmythavformat-0.14.so.0.14.0 libmythavformat-0.14.so.0.14
> make[2]: Leaving directory 
> `/home/tone/Documents/mythTV/mythtv-0.14/libs/libavformat'
> cd libmyth && qmake -o Makefile
> cd libmyth && make -f Makefile
> make[2]: Entering directory 
> `/home/tone/Documents/mythTV/mythtv-0.14/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 
> -DUSING_IVTV -DQT_
> NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/local/include -I/usr/lib/qt3/include 
> -I/usr/lib/q
> t3/mkspecs/default -o dialogbox.o dialogbox.cpp
> cc1plus: warning: changing search order for system directory 
> "/usr/local/include"
> cc1plus: warning:   as it has already been specified as a non-system 
> directory
> In file included from dialogbox.cpp:12:
> mythcontext.h:19:2: #error *You need Qt version >= 3.1.0 to compile MythTV*.
> make[2]: *** [dialogbox.o] Error 1
> make[2]: Leaving directory 
> `/home/tone/Documents/mythTV/mythtv-0.14/libs/libmyth'
> make[1]: *** [sub-libmyth] Error 2
> make[1]: Leaving directory `/home/tone/Documents/mythTV/mythtv-0.14/libs'
> make: *** [sub-libs] Error 2
> I've compiled the qt lib from scratch so that I have the requiered qt.
> Hmm. The $QTDIR is correct, it points
>  
> coruscant:~ # echo $QTDIR
> /usr/lib/qt3
>  
> coruscant:~ #  echo $PATH
> /usr/lib/qt3/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin:usr/local/ant/bin
>  
> Are there more vars where the path of  qt must be in?
>  
> No i see that I've installed the qt-x11-free-3.3.0.tar.gz...
> I do not think that this is the right.... Or?
> 
> 
> ------------------------------------------------------------------------
> *Von:* mythtv-users-bounces at mythtv.org 
> [mailto:mythtv-users-bounces at mythtv.org] *Im Auftrag von *Greg
> *Gesendet:* Mittwoch, 18. Februar 2004 20:36
> *An:* 'Discussion about mythtv'
> *Betreff:* RE: [mythtv-users] Compiling error on SuSE 8.1 with QT3.3.0
> 
> Hi Tom,
>  
> I managed to get it installed on suse 9.0 after having the same errors.
> What I did (YMMV) was as follows:
>  
> First check to see if you have QTDIR set right
>  
>         *echo $QTDIR*
> ** 
> Should be /usr/lib/qt3. If you still have problems then do:
>  
> *    make clean*
> *    make distclean*
> ** 
> Followed by:
> ** 
> 
> *    ./configure*
> 
> *    qmake mythtv.pro*
> 
> *    make qmake*
> 
> ** 
> 
> Then edit ALL of the makefiles under your source directory and replace 
> $(QTDIR) with /usr/lib/qt3. This is easy to do with jedit, you can do a 
> search in your mythtv build directory and replace all instances.
> 
>  
> 
> HTH
> 
> Greg
> 
>     I've installed qt3.3 on my SuSE 8.1.
>     When I try to configure, qmake, make my mythtv it crashs.
> 
>     I'm not so good in debugging.
> 
>     Hope someone can give me a hint to solve this problem.  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


-- 
Dr. Philippe C. Cattin                          cattin at vision.ee.ethz.ch
Swiss Federal Institute of Technology, ETHZ         Tel: +41-1-632 25 29
Computer Vision Laboratory, CH-8092 Zuerich         Fax: +41-1-632 11 99


More information about the mythtv-users mailing list