Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt cross compilation for raspberry pi4: Cannot find GLESv2
Forum Updated to NodeBB v4.3 + New Features

qt cross compilation for raspberry pi4: Cannot find GLESv2

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 194 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.
  • L Offline
    L Offline
    LISP
    wrote on last edited by
    #1

    I'm trying to cross-compile.
    windows10 (qt 5.15.2) - Raspberry pi4 (64bit)

    The configure command i run is¨:
    .\configure -opensource -confirm-license -release -opengl -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE="C:\SysGCC\raspberry64\bin\aarch64-linux-gnu-" -sysroot C:\SysGCC\raspberry64\sysroot -prefix /usr/local/qt5pi -extprefix "C:\Qt\raspberry_pi" -hostprefix "C:\Qt\raspberry_pi" -nomake examples -nomake tests -no-use-gold-linker -qt-pcre -skip qtscript -skip qttools

    result :
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

    I modified qmake.conf(makspecs\devices\linux-rasp-pi4-v3d-g++) :

    include(../common/linux_device_pre.conf)
    QMAKE_LIBS_EGL += -lEGL
    QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL
    QMAKE_CFLAGS = -march=armv8-a -mtune=cortex-a72 -mfpu=crypto-neon-fp-armv8
    QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
    DISTRO_OPTS += hard-float
    DISTRO_OPTS += deb-multi-arch
    EGLFS_DEVICE_INTEGRATION = eglfs_kms
    include(../common/linux_device_post.conf)
    load(qt_config)

    Q:
    VC_LIBRARY_PATH and QMAKE_LIBDIR_OPENGL_ES2 are defined in the qmake.conf file of linux-rasp-pi3-g++, but the inside of linux-rasp-pi4-v3d-g++ is simple. Also, there is only the pigpio folder in the \opt\ folder of the Raspberry Pi.

    Do I need to correct the qmake.conf of linux-rasp-pi4-v3d-g++ to eliminate the error?

    Can you give me some advice on how to cross-compile from Win10 to Raspberry Pi 4?
    Thank you for reading my poor English.

    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