tce-load -i Xorg-7.7-3d-dev sqlite3-dev libmng-dev libpng-dev tiff-dev cups-dev pulseaudio-dev perl5 icu-dev gst-plugins-base-dev libwebp-dev mtdev-dev ruby geoclue-dev gtk2-dev libpci-dev nss-dev git libxkbcommon-dev gperf libgcrypt-dev libgnome-keyring-dev libinput-dev harfbuzz-icu-dev cd qt-everywhere-opensource-src-5.7.0 edit qtbase/configure #!/bin/sh -> #!/bin/bash QT5LINK=/usr/local CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe" ./configure -prefix /usr/local -bindir /usr/local/bin -headerdir /usr/local/include/qt5 -plugindir /usr/local/lib/qt5/plugins -libexecdir /usr/local/lib/qt5 -importdir /usr/local/lib/qt5/imports -datadir /usr/local/share/qt5 -sysconfdir /usr/local/etc/xdg -docdir /usr/local/share/doc/qt5 -examplesdir /usr/local/share/doc/qt5/examples -translationdir /usr/local/share/qt5/translations -confirm-license -opensource -release -dbus-linked -openssl-linked -system-sqlite -nomake examples -no-nis -optimized-qmake -system-harfbuzz -alsa -no-use-gold-linker [fails with gold-linker] edit /usr/src/qt-everywhere-opensource-src-5.4.1/qtbase/mkspecs/common/gcc-base.conf O2/O3 -> Os time make -j5 [3h 7m 25s] [make -j5 module-qtwebkit] find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \; sudo make install find /usr/local/ -name qt_lib_bootstrap_private.pri -exec sed -i -e "s:$PWD/qtbase:/usr/local/lib/:g" {} \; find /usr/local/ -name \*.prl -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; 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 Configure summary Build type: linux-g++ (x86_64, CPU features: mmx sse sse2) Platform notes: - Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx qmake vars .......... QMAKE_CC = gcc -mtune=generic -Os -pipe QMAKE_CXX = g++ -mtune=generic -Os -pipe styles += mac fusion windows QT_LIBS_DBUS = -L/usr/local/lib -ldbus-1 QT_CFLAGS_DBUS = -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include QT_HOST_CFLAGS_DBUS = -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include QT_CFLAGS_GLIB = -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include QT_LIBS_GLIB = -L/usr/local/lib -lgthread-2.0 -pthread -lglib-2.0 QT_CFLAGS_QGTK3 = -pthread -I/usr/local/include/gtk-3.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -I/usr/local/include/gtk-3.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/pango-1.0 -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/harfbuzz -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/harfbuzz -I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include -I/usr/local/include/libpng16 -I/usr/local/include -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng16 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include QT_LIBS_QGTK3 = -L/usr/local/lib -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 QT_CFLAGS_PULSEAUDIO = -D_REENTRANT -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include QT_LIBS_PULSEAUDIO = -L/usr/local/lib -lpulse-mainloop-glib -lpulse -lglib-2.0 QMAKE_INCDIR_OPENGL = "/usr/local/include" "/usr/local/include/libdrm" "/usr/local/include" QMAKE_LIBDIR_OPENGL = "/usr/local/lib" QMAKE_LIBS_OPENGL = "-lGL" QMAKE_CFLAGS_OPENGL = QMAKE_CFLAGS_FONTCONFIG = -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/harfbuzz -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/harfbuzz -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include QMAKE_LIBS_FONTCONFIG = -L/usr/local/lib -lfontconfig -lfreetype QMAKE_INCDIR_LIBUDEV = /usr/local/include QMAKE_LIBS_LIBUDEV = -L/usr/local/lib -ludev -lrt DEFINES += QT_NO_TSLIB QMAKE_INCDIR_XKBCOMMON_EVDEV = /usr/local/include QMAKE_LIBS_XKBCOMMON_EVDEV = -L/usr/local/lib -lxkbcommon QMAKE_LIBINPUT_VERSION_MAJOR = 1 QMAKE_LIBINPUT_VERSION_MINOR = 1 QMAKE_INCDIR_LIBINPUT = /usr/local/include QMAKE_LIBS_LIBINPUT = -L/usr/local/lib -linput QMAKE_LIBXI_VERSION_MAJOR = 1 QMAKE_LIBXI_VERSION_MINOR = 7 QMAKE_LIBXI_VERSION_PATCH = 5 QMAKE_X11_PREFIX = /usr/local QMAKE_CFLAGS_XKBCOMMON = -I/usr/local/include QMAKE_LIBS_XKBCOMMON = -L/usr/local/lib -lxkbcommon-x11 -lxkbcommon QMAKE_INCDIR_EGL = /usr/local/include /usr/local/include/libdrm /usr/local/include QMAKE_LIBS_EGL = -L/usr/local/lib -lEGL QMAKE_CFLAGS_EGL = -I/usr/local/include/libdrm QMAKE_CFLAGS_XCB = -I/usr/local/include QMAKE_LIBS_XCB = -L/usr/local/lib -lxcb-sync -lxcb-xfixes -lxcb-randr -lxcb-render -lxcb-image -lxcb-shm -lxcb-keysyms -lxcb-icccm -lxcb-shape -lxcb sql-drivers = sql-plugins = sqlite qmake switches ......... Build options: Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend avx avx2 avx512bw avx512cd avx512dq avx512er avx512f avx512ifma avx512pf avx512vbmi avx512vl c++11 c++14 c++1z clock-gettime clock-monotonic compile_examples concurrent cups dbus dbus-linked doubleconversion egl egl_x11 eglfs eglfs_gbm enable_new_dtags evdev eventfd fontconfig full-config gbm getaddrinfo getifaddrs glib gstreamer-1.0 gtk3 iconv icu inotify ipv6ifname kms large-config largefile libinput libudev linuxfb medium-config minimal-config mremap mtdev opengl openssl-linked png poll_ppoll 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-harfbuzz 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-evdev 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: SSE .................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX .................. AVX AVX2 AVX512 ............... AVX512F AVX512ER AVX512CD AVX512PF AVX512DQ AVX512BW AVX512VL AVX512IFMA AVX512VBMI 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 DoubleConversion........ yes (bundled copy) Evdev .................. yes FontConfig ............. yes FreeType ............... yes (system library) Glib ................... yes GStreamer .............. yes (1.0) GTK platformtheme ...... yes HarfBuzz ............... yes (system library) 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................ yes 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 ................... system 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) Xi2 ................ yes Xrandr ............. yes (loaded at runtime) Xrender ............ yes XKB ................ yes XShape ............. yes XSync .............. 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 (system library) xkbcommon-evdev......... yes zlib ................... yes (system library) NOTE: When linking against OpenSSL, you can override the default library names through OPENSSL_LIBS. For example: OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked NOTE: -optimized-tools is not useful in -release mode.