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. Build for jetson tx2nx
QtWS25 Last Chance

Build for jetson tx2nx

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 135 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.
  • A Offline
    A Offline
    AlfredNG
    wrote on 24 Dec 2021, 01:45 last edited by
    #1

    I cross compile qt5.12.8. Here is the config

    ./configure -v \
    -nomake tests \
    -no-separate-debug-info \
    -sysroot /media/alfred/data/qttx2nx/sysroot \
    -prefix /opt/qttx2nx \
    -confirm-license \
    -opensource \
    -release \
    -make libs \
    -device linux-jetson-tx2nx \
    -device-option CROSS_COMPILE=/opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- \
    -pch \
    -no-dbus \
    -qt-libjpeg \
    -qt-libpng \
    -qt-zlib \
    -opengl es2 \
    -eglfs \
    -no-directfb \
    -nomake examples \
    -skip wayland \
    -skip qtwebengine \
    -skip qtdatavis3d \
    -skip qtscript \
    -pkg-config \
    -no-use-gold-linker
    

    My qmake.conf is

    include(../common/linux_device_pre.conf)
    
    QMAKE_INCDIR_POST += \
        $$[QT_SYSROOT]/usr/include \
        $$[QT_SYSROOT]/usr/include/aarch64-linux-gnu
    
    QMAKE_LIBDIR_POST += \
        $$[QT_SYSROOT]/usr/lib \
        $$[QT_SYSROOT]/lib/aarch64-linux-gnu \
        $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu
    
    QMAKE_RPATHLINKDIR_POST += \
        $$[QT_SYSROOT]/usr/lib \
        $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu \
        $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu/tegra \
        $$[QT_SYSROOT]/lib/aarch64-linux-gnu
    
    QMAKE_INCDIR_OPENGL_ES2 += \
        $$[QT_SYSROOT]/usr/include \
        $$[QT_SYSROOT]/usr/include/EGL \
        $$[QT_SYSROOT]/usr/include/GLES2 \
        $$[QT_SYSROOT]/usr/include/GLES3 \
        $$[QT_SYSROOT]/usr/include/KHR
    QMAKE_LIBDIR_OPENGL_ES2 += \
            $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu/tegra-egl \
            $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu \
    
    
    QMAKE_LIBS_OPENGL_ES2 += -lEGL -lGLESv2
    
    QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/lib/aarch64-linux-gnu/tegra-egl
    
    DISTRO_OPTS += aarch64
    COMPILER_FLAGS += -mtune=cortex-a57.cortex-a53 -march=armv8-a
    
    # When configured with -opengl es2, eglfs will be functional with its
    # dummy fullscreen X11 backend, in addition to xcb.
    EGLFS_DEVICE_INTEGRATION = eglfs_kms_egldevice
    #EGLFS_DEVICE_INTEGRATION = eglfs_x11
    
    include(../common/linux_arm_device_post.conf)
    load(qt_config)
    

    I want to us eglfs.
    I found that if I close -eglfs, config is ok, opengl is opened. But EGL---no If I turn on -eglfs. It will show the error

    ERROR: Feature 'eglfs' was enabled, but the pre-condition '!config.android && !config.darwin && !config.win32 && features.egl' failed.
    

    Any suggestions?

    1 Reply Last reply
    0

    1/1

    24 Dec 2021, 01:45

    • Login

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