Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 11 on RPi natively
Forum Updated to NodeBB v4.3 + New Features

Qt 11 on RPi natively

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 443 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vitruv
    wrote on last edited by
    #1

    Hi,
    first of all I am quite new to the Raspberry Pi, therefore I have limited knowledge of this way of installing things.

    I am trying to get Qt 5.11 on my Raspberry Pi 3 B+ (with stretch) according to this tutorial:
    http://www.tal.org/tutorials/building-qt-510-raspberry-pi-debian-stretch

    Instead of the suggested version 5.10, I use Qt 5.11 from
    http://download.qt.io/official_releases/qt/5.11/5.11.1/single/qt-everywhere-src-5.11.1.tar.xz

    In order to get the EGLFS support for the Raspberry Pi I use the suggested configuration from the comments, since the normal way fails.
    In "qt-everywhere-src-5.11.1\qtbase\mkspecs\devices\linux-rasp-pi3-g++\qmake.conf"

    include(../common/linux_device_pre.conf)
    
    QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib
    QMAKE_LFLAGS           += -Wl,-rpath-link,$$[QT_SYSROOT]/home/pi/qtdeps/lib
    
    QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib
    QMAKE_LIBDIR_EGL        = $$QMAKE_LIBDIR_OPENGL_ES2
    QMAKE_LIBDIR_OPENVG     = $$QMAKE_LIBDIR_OPENGL_ES2
    
    QMAKE_INCDIR_EGL        = $$[QT_SYSROOT]/opt/vc/include \
                              $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads \
                              $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux
    
    QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
    QMAKE_INCDIR_OPENVG     = $${QMAKE_INCDIR_EGL}
    
    QMAKE_LIBS_EGL          = -lEGL -lGLESv2
    QMAKE_LIBS_OPENVG       = -lEGL -lOpenVG -lGLESv2
    
    QMAKE_CFLAGS            = -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8
    QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS
    
    DISTRO_OPTS            += hard-float
    DISTRO_OPTS            += deb-multi-arch
    
    # Preferred eglfs backend
    EGLFS_DEVICE_INTEGRATION= eglfs_brcm
    
    include(../common/linux_arm_device_post.conf)
    
    load(qt_config)
    

    The following Errors remain and I have no solution for them:

    Note: Also available for Linux: linux-clang linux-icc
    
    Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.
    
    WARNING: Cross compiling without sysroot. Disabling pkg-config
    
    ERROR: Feature 'pkg-config' was enabled, but the pre-condition 'tests.pkg-config' failed.
    
    ERROR: Feature 'glib' was enabled, but the pre-condition 'libs.glib' failed.
    
    ERROR: Feature 'system-freetype' was enabled, but the pre-condition 'features.freetype && libs.freetype' failed.
    
    ERROR: Feature 'fontconfig' was enabled, but the pre-condition '!config.win32 && features.system-freetype && libs.fontconfig' failed.
    

    Full log can be found here:
    https://pastebin.com/Hjr8rcwS

    Thanks for your help in advance!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved