./configure \
-opensource -v \
-confirm-license \
-xplatform qws/linux-mips-g++ \
-embedded mips \
-prefix /opt/qt-4.7.2-mips \
-release -shared -fast -glib \
-phonon -phonon-backend \
-no-pch -no-qt3support \
-no-libtiff -no-libmng -no-openssl \
-no-nis -no-opengl -no-cups -no-xcursor -no-3dnow -no-sse -no-sse2 -no-iconv \
-no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape \
-no-separate-debug-info \
-nomake examples -nomake demos -nomake docs -nomake tools -make libs \
-qt-sql-sqlite \
-optimized-qmake \
-qt-freetype \
-no-feature-CURSOR \
-little-endian -host-little-endian \
-qt-libjpeg -qt-gif -qt-libpng -qt-zlib -qt-freetype -svg -webkit -scripttools \
-qt-decoration-windows \
-depths 16,18,24,32 -no-qvfb -qt-gfx-linuxfb -no-gfx-qvfb \
-no-kbd-qvfb -no-mouse-qvfb \
-qt-mouse-tslib -I/opt/qt-4.7.2-mips/tslib-1.4/include -L/opt/qt-4.7.2-mips/tslib-1.4/lib
注意红色部分,如果配置 -no-glib 将会报 Phonon support cannot be enabled due to functionality tests!
如果配置 -glib就不会。
configure 就会成功!!
接下来看make时候的运气了。:)
碰到GLIB的问题可以include glib的路径:
-release -shared -fast -glib \
-I/opt/******/include/glib-2.0 \
-I/opt/******/glib-2.0/include \
-I/opt/******/gstreamer-0.10 \
-L/opt/******/lib -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0 \
注意这里的lgstreamer lgstbase ,要交叉编译gsteamer gstbase等库哦。 接下来的的make .make install 就会成功。
好了,enjoy it !!!