Cross compile qt5.12.8 for tx2nx

I cross compile qt5. 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 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.

The link is 404. https://doc.qt.io/QtForDeviceCreation/qtee-preparing-hardware-jetsontx1.html

I want to us eglfs and any suggestions?

I have leaked the libs

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.