tce-load -i Xorg-7.7-3d-dev sqlite3-dev dbus-dev openssl-dev alsa-dev glib2-dev libmng-dev libpng-dev libtiff-dev cups-dev pulseaudio-dev perl5 icu-dev gst-plugins-base-dev libwebp-dev mtdev-dev ruby-2.2-dev gtk2-dev libpci-dev nss-dev git gperf libgcrypt-dev libgnome-keyring-dev python cd qt-everywhere-opensource-src-5.6.0 QT5LINK=/usr/local CC="gcc -march=i686 -Os -pipe" CXX="g++ -march=i686 -Os -pipe" ./configure -prefix /usr/local -bindir /usr/local/bin -headerdir /usr/local/include/qt5 [-archdatadir /usr/local/lib/qt5] -plugindir /usr/local/lib/qt5/plugins -libexecdir /usr/local/lib/qt5 -importdir /usr/local/lib/qt5/imports -qmldir /usr/local/lib/qt5/qlm -datadir /usr/local/share/qt5 -docdir /usr/local/share/doc/qt5 -translationdir /usr/local/share/qt5/translations -sysconfdir /usr/local/etc/xdg -examplesdir /usr/local/share/doc/qt5/examples -confirm-license -opensource -release -dbus-linked -openssl-linked -system-sqlite -nomake examples -no-nis -alsa -no-use-gold-linker Edit /usr/src/qt-everywhere-opensource-src-5.4.1/qtbase/mkspecs/common/gcc-base.conf O2/O3 -> Os time make [1h 44m 03s] [make -j5 module-qtwebengine] sudo make install sudo find $QT5PREFIX/lib/pkgconfig -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \; sudo find $QT5PREFIX/ -name qt_lib_bootstrap_private.pri -exec sed -i -e "s:$PWD/qtbase:/$QT5PREFIX/lib/:g" {} \; sudo find $QT5PREFIX/ -name \*.prl -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; QT5BINDIR=$QT5PREFIX/bin sudo install -dm755 /usr/local/share/pixmaps sudo install -Dm644 qttools/src/assistant/assistant/images/assistant-128.png /usr/local/share/pixmaps/assistant-qt5.png sudo install -Dm644 qttools/src/designer/src/designer/images/designer.png /usr/local/share/pixmaps/designer-qt5.png sudo install -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png /usr/local/share/pixmaps/linguist-qt5.png sudo install -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png /usr/local/share/pixmaps/qdbusviewer-qt5.png for file in moc uic rcc qmake lconvert lrelease lupdate; do sudo ln -sfrn $QT5BINDIR/$file /usr/local/bin/$file-qt5 done Configure summary Build type: linux-g++ (i386, CPU features: none detected) Platform notes: - Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx Build options: Configuration .......... accessibility accessibility-atspi-bridge atomic64-libatomic audio-backend avx avx2 c++11 c++14 c++1z clock-gettime clock-monotonic compile_examples concurrent cups dbus dbus-linked egl egl_x11 eglfs eglfs_gbm enable_new_dtags evdev eventfd fontconfig full-config gbm getaddrinfo getifaddrs glib gstreamer-1.0 gtk2 gtkstyle harfbuzz iconv icu inotify ipv6ifname kms large-config largefile libudev linuxfb medium-config minimal-config mremap mtdev opengl openssl-linked pcre png posix_fallocate precompile_header pulseaudio qpa qpa reduce_exports reduce_relocations release release_tools rpath shared small-config sse2 sse3 sse4_1 sse4_2 ssse3 system-freetype system-jpeg system-png system-sqlite system-zlib threadsafe-cloexec use_gold_linker xcb xcb-glx xcb-plugin xcb-render xcb-sm xcb-xlib xinput2 xkbcommon-qt xlib xrender Build parts ............ libs tools Mode ................... release; optimized tools Using sanitizer(s)...... none Using C++ standard ..... c++1z Using gold linker....... yes Using new DTAGS ........ yes Using PCH .............. yes Using LTCG ............. no Target compiler supports: SSE2/SSE3/SSSE3 ...... yes/yes/yes SSE4.1/SSE4.2 ........ yes/yes AVX/AVX2 ............. yes/yes Qt modules and options: Qt D-Bus ............... yes (linked to dbus-1) Qt Concurrent .......... yes Qt GUI ................. yes Qt Widgets ............. yes Large File ............. yes QML debugging .......... yes Use system proxies ..... no Support enabled for: Accessibility .......... yes ALSA ................... yes CUPS ................... yes Evdev .................. yes FontConfig ............. yes FreeType ............... yes (system library) Glib ................... yes GStreamer .............. yes (1.0) GTK theme .............. yes HarfBuzz ............... yes (bundled copy) Iconv .................. yes ICU .................... yes Image formats: GIF .................. yes (plugin, using bundled copy) JPEG ................. yes (plugin, using system library) PNG .................. yes (in QtGui, using system library) libinput................ no Logging backends: journald ............... no syslog ............... no mtdev .................. yes (system library) Networking: getaddrinfo .......... yes getifaddrs ........... yes IPv6 ifname .......... yes libproxy.............. no OpenSSL .............. yes (linked to the libraries) NIS .................... no OpenGL / OpenVG: EGL .................. yes OpenGL ............... desktop OpenVG ............... no PCRE ................... yes (bundled copy) pkg-config ............. yes PulseAudio ............. yes QPA backends: DirectFB ............. no EGLFS ................ yes EGLFS i.MX6 ........ no EGLFS i.MX6 Wayland. no EGLFS EGLDevice .... no EGLFS GBM .......... yes EGLFS Mali ......... no EGLFS Raspberry Pi . no EGLFS X11 .......... yes LinuxFB .............. yes Mir client............ no XCB .................. yes (system library) EGL on X ........... yes GLX ................ yes MIT-SHM ............ yes Xcb-Xlib ........... yes Xcursor ............ yes (loaded at runtime) Xfixes ............. yes (loaded at runtime) Xi ................. no Xi2 ................ yes Xinerama ........... yes (loaded at runtime) Xrandr ............. yes (loaded at runtime) Xrender ............ yes XKB ................ yes XShape ............. yes XSync .............. yes XVideo ............. yes Session management ..... yes SQL drivers: DB2 .................. no InterBase ............ no MySQL ................ no OCI .................. no ODBC ................. no PostgreSQL ........... no SQLite 2 ............. no SQLite ............... yes (plugin, using system library) TDS .................. no tslib .................. no udev ................... yes xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/local/share/X11/xkb) xkbcommon-evdev......... no zlib ................... yes (system library)