[mythtv-users] display resolution switching still not working

John Patrick Poet john at BlueSkyTours.com
Fri Sep 10 21:01:18 EDT 2004


James Armstrong wrote:

> Please do send instructions on installing and compiling with qt 3.3.3 
> if it is something that is not straight forward. I  am running on FC1 
> with qt 3.1.2 (sounds pretty old).
>

Grab 3.3.3 from:

http://www.trolltech.com/download/qt/x11.html

If you look at the install instructions included, they talk about 
building the distribution "in place".  I don't like to do that.  I like 
to build packages in my home directory, and then install them in a 
system-wide location.

To do it my way:

Unpack qt-x11-free-3.3.3.tar.bz2 into someplace in your home directory, 
e.g.:

cd ~/src
tar -jxvf qt-x11-free-3.3.3.tar.bz2
cd qt-x11-free-3.3.3

Qt needs to be able to find various tools during the build process, so 
you need to set some environment variables:

export QTDIR=`pwd`
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

You then need to "configure" Qt to build the way you want.  I personally 
do not use xinerama, but you might so change as appropriate.

./configure -prefix /usr/local/qt-x11-free-3.3.3 -system-libpng 
-system-libjpeg -no-xinerama -thread -qt-sql-mysql -I/usr/include/mysql 
-L/usr/lib/mysql

Make sure your mysql devel put it stuff in /usr/inlude/mysql and 
/usr/lib/mysql.  If it did not, modify the above configure options as 
appropriate.

Once the configure program completes and indicates everything is fine, 
you can build it:

make

The build process can take hours depending on the speed of your 
computer.  Once it is built, become root and install it:

su
make install

This will *not* clobber your current Qt installation.  It is still 
there.  To get everything to use this new version you must set some 
environment variables in your /etc/profile.  Edit that file and add:

export QTDIR=/usr/local/qt-x11-free-3.3.3
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export MANPATH=$QTDIR/doc/man:$MANPATH

My /etc/profile actually has:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export QTDIR
QTDIR=/usr/local/qt-x11-free-3.3.3

pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
           if [ "$2" = "after" ] ; then
              PATH=$PATH:$1
           else
              PATH=$1:$PATH
           fi
        fi
}

# Path manipulation
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin

pathmunge /usr/X11R6/bin after
pathmunge $QTDIR/bin before

unset pathmunge
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The PATH must *start* with $QTDIR/bin so it finds the new version of the 
Qt utils first.

You need to "exit" out and log back in, so your session will re-read the 
/etc/profile.  You could also set those environment vairables by hand, 
instead.

Now that you have a new verrsion of Qt, you need to rebuild Myth.  Just 
do a make clean;make in your Myth source directory, and then install it.

I hope this fixes your problem, since I am not sure what else to try.

John



More information about the mythtv-users mailing list