1. Download QT sources form [1]
2. QT libraries search for toolchian with prefix mips-linux-  I don want to make a patch so I create links form openwrt toolchain with this script:


PREFIX=mipsel-openwrt-linux-
ALIAS=mips-linux-

for f in ${PREFIX}*; do
  n=$(echo $f|cut -b  `expr length ${PREFIX} + 1`-);
  ln -s $f ${ALIAS}${n};
done



3. Run this script:

The next script will compile QT libraries using openwrt toolchain:

#!/bin/bash

BASE=/stuff/devel/embedded/XBurst/QT/qt-embedded-linux-opensource-src-4.5.3/

${BASE}/configure -opensource  \
   -embedded mips  \
   -platform /qws/linux-x86-g++ \
   -xplatform /qws/linux-mips-g++ \
   -little-endian \
   -no-cups  \
   -no-largefile  \
   -no-qt3support  \
   -no-phonon \
   -qt-sql-sqlite \
            -qt-kbd-tty  \
            -qt-kbd-usb   \
            -qt-kbd-qvfb   \
            -DQT_KEYPAD_NAVIGATION  \
   --prefix=/opt/QT  

And ready

[1] http://get.qt.nokia.com/qt/source/qt-embedded-linux-opensource-src-4.5.3.tar.gz

--
Carlos Iván Camargo Bareño
Profesor Asistente
Departamento de Ingeniería Eléctrica y Electrónica
Universidad Nacional de Colombia
cicamargoba@unal.edu.co