Important: Please read the Qt Code of Conduct -

How to make a minimal QT library for embedded Linux base on MIPS?

  • Hello, everyone.
    I’m planning to port QT to MIPS platform running with Linux. I must make a minimal QTCore library(shared objcet) and QTGui library(shared objcet) limited to the free memory space. According to the official site the minimal QTCore lib is only 2.0M and the QTGui lib is only 4.5M, but I made a QTCore lib with 3.31Mbytes and a QTGui lib with 10.9Mbytes.
    How can I compile a minimal QT library for embedded Linux base on MIPS? Thank a lot!

    1. I don’t need network, webkit, media, sounds modules.
    2. I used the qconfig-minimal.h to cut some unused function or features.
    3. The following is my configuration.
      ./configure -prefix /home/rootman/qt/mini_qt_4.8.7/qt-everywhere-opensource-src-4.8.7/output/ -embedded mips -v-arch mips -platform qws/linux-x86_64-g++ -xplatform qws/linux-rdamips-g++ -opensource -confirm-license -depths 16,24,32 -no-largefile -release -fast -no-dbus -no-sql-sqlite -qt-libpng -qt-freetype -little-endian -host-little-endian -no-svg -no-qt3support -no-libtiff -no-libmng -no-mmx -no-sse -no-sse2-no-sse3 -no-3dnow -no-openssl -no-phonon -no-opengl -no-cups -no-qvfb -no-gif -no-webkit -no-javascript-jit -no-script -no-xmlpatterns -no-kbd-tty -no-kbd-linuxinput -no-kbd-qvfb -no-kbd-qnx -no-mouse-tslib -no-mouse-pc -no-mouse-linuxtp -no-mouse-linuxinput -no-mouse-tslib -no-mouse-qvfb -no-mouse-qnx -no-xcursor -no-xfixes -no-xrandr -no-xrender -nomake examples -nomake tools -nomake docs -nomake demos -no-qt3support -no-libtiff -no-multimedia -no-nis -no-feature-CSSPARSER -no-feature-SOUND -no-feature-XMLSTREAM -no-feature-XMLSTREAMREADER -no-feature-XMLSTREAMWRITER -no-feature-IM -no-feature-URLINFO -no-feature-HOSTINFO -no-feature-FTP -no-feature-HTTP -no-feature-UDPSOCKET -no-feature-NETWORKPROXY -no-feature-SOCKS5 -no-feature-COP -no-feature-NETWORKINTERFACE -no-feature-NETWORKDISKCACHE -no-feature-BEARERMANAGEMENT -qconfig minimal

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    To simplify things a bit, you should implement you own qconfig base on minimal, that way you won't have to enter everything on the command line. IIRC there's a text file where you can find all features you can disable.

Log in to reply