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 qtcharts with OpenGL ES2
QtWS25 Last Chance

build qtcharts with OpenGL ES2

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qtchartsopengl es2
2 Posts 1 Posters 719 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.
  • D Offline
    D Offline
    DungeonLords
    wrote on 12 Jun 2020, 09:54 last edited by DungeonLords 6 Dec 2020, 14:00
    #1

    I want to build Qt6 with qtcharts from git. Some modules that I do not need I am skipping.
    I have got 3 folders in base folder: qt5 (Sources), build (to configure and build), build_artifacts for build artifacts (always empty I do not know why). I read https://wiki.qt.io/Building_Qt_5_from_Git and install all necessary packages on my Ubuntu 20 on Orange Pi 4.
    git clone git://code.qt.io/qt/qt5.git qt5 &&
    cd qt5 &&
    perl init-repository --module-subset=default,qtcharts,-qtwebengine,-qtwayland,-qtandroidextras,-qtvirtualkeyboard,-qtquick3d
    cd ../build

    Configure my Qt6:
    ../qt5/configure -developer-build -opensource -nomake examples -nomake tests -confirm-license -skip webengine -skip qtwayland -skip qtandroidextras -skip qtdoc -skip qtgraphicaleffects -skip qtqa -skip qttranslations -skip qtvirtualkeyboard -skip qtquicktimeline -skip qtquick3d -skip qtrepotools -skip qtdeclarative -skip qttools -skip qtshadertools -skip qtimageformats -skip qtnetworkauth -skip qtquickcontrols2 -skip qtsvg -skip qtwebsockets -skip qt5compat -opengl es2 -prefix ../build_artifacts -v

    Orange Pi 4 do no support Desktop OpenGL, but OpenGL ES2. I try make -j8 and
    error with qtcharts:
    QtWidgets/QOpenGLWidget: No such file or directory.

    Is it because qtcharts need Desktop OpenGL? Can I change qtcharts to use OpenGL ES2?

    Configure summary:

    Build type: linux-g++ (arm64, CPU features: cx16 neon)
    Compiler: gcc 9.3.0
    Configuration: compile_examples enable_new_dtags largefile neon precompile_header warnings_are_errors shared shared rpath private_tests debug c++11 c++14 c++17 c++1z concurrent dbus reduce_exports release_tools stl
    Build options:
    Mode ................................... debug; optimized tools
    Optimize debug build ................... no
    Building shared libraries .............. yes
    Using C standard ....................... C11
    Using C++ standard ..................... C++17
    Using ccache ........................... no
    Using new DTAGS ........................ yes
    Generating GDB index ................... no
    Relocatable ............................ yes
    Using precompiled headers .............. yes
    Using LTCG ............................. no
    Target compiler supports:
    NEON ................................. yes
    Build parts ............................ libs tools
    Qt modules and options:
    Qt Concurrent .......................... yes
    Qt D-Bus ............................... yes
    Qt D-Bus directly linked to libdbus .... yes
    Qt Gui ................................. yes
    Qt Network ............................. yes
    Qt Sql ................................. yes
    Qt Testlib ............................. yes
    Qt Widgets ............................. yes
    Qt Xml ................................. yes
    Support enabled for:
    Using pkg-config ....................... yes
    udev ................................... yes
    Using system zlib ...................... yes
    Zstandard support ...................... no
    Qt Core:
    DoubleConversion ....................... yes
    Using system DoubleConversion ........ yes
    GLib ................................... yes
    iconv .................................. no
    ICU .................................... yes
    Built-in copy of the MIME database ..... yes
    Tracing backend ........................ <none>
    Logging backends:
    journald ............................. no
    syslog ............................... no
    slog2 ................................ no
    PCRE2 .................................. yes
    Using system PCRE2 ................... yes
    Qt Network:
    getifaddrs() ........................... yes
    IPv6 ifname ............................ yes
    libproxy ............................... no
    Linux AF_NETLINK ....................... yes
    OpenSSL ................................ yes
    Qt directly linked to OpenSSL ........ no
    OpenSSL 1.1 ............................ yes
    DTLS ................................... yes
    OCSP-stapling .......................... yes
    FTP .................................... no
    SCTP ................................... no
    Use system proxies ..................... yes
    GSSAPI ................................. no
    Qt Gui:
    Accessibility .......................... yes
    FreeType ............................... yes
    Using system FreeType ................ yes
    HarfBuzz ............................... yes
    Using system HarfBuzz ................ yes
    Fontconfig ............................. yes
    Image formats:
    GIF .................................. yes
    ICO .................................. yes
    JPEG ................................. yes
    Using system libjpeg ............... yes
    PNG .................................. yes
    Using system libpng ................ yes
    Text formats:
    HtmlParser ........................... yes
    CssParser ............................ yes
    OdfWriter ............................ yes
    MarkdownReader ....................... yes
    Using system libmd4c ............... no
    MarkdownWriter ....................... yes
    EGL .................................... yes
    OpenVG ................................. no
    OpenGL:
    Desktop OpenGL ....................... no
    OpenGL ES 2.0 ........................ yes
    OpenGL ES 3.0 ........................ yes
    OpenGL ES 3.1 ........................ yes
    OpenGL ES 3.2 ........................ yes
    Vulkan ................................. yes
    Session Management ..................... yes
    Features used by QPA backends:
    evdev .................................. yes
    libinput ............................... yes
    INTEGRITY HID .......................... no
    mtdev .................................. yes
    tslib .................................. no
    xkbcommon .............................. yes
    X11 specific:
    XLib ................................. yes
    XCB Xlib ............................. yes
    EGL on X11 ........................... yes
    xkbcommon-x11 ........................ yes
    QPA backends:
    DirectFB ............................... no
    EGLFS .................................. yes
    EGLFS details:
    EGLFS OpenWFD ........................ no
    EGLFS i.Mx6 .......................... no
    EGLFS i.Mx6 Wayland .................. no
    EGLFS RCAR ........................... no
    EGLFS EGLDevice ...................... yes
    EGLFS GBM ............................ yes
    EGLFS VSP2 ........................... no
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGLFS X11 ............................ yes
    LinuxFB ................................ yes
    VNC .................................... yes
    XCB:
    Using system-provided xcb-xinput ..... yes
    Native painting (experimental) ....... no
    GL integrations:
    GLX Plugin ......................... no
    EGL-X11 Plugin ..................... yes
    Qt Sql:
    SQL item models ........................ yes
    Qt Widgets:
    GTK+ ................................... yes
    Styles ................................. Fusion Windows
    Qt PrintSupport:
    CUPS ................................... yes
    Qt Sql Drivers:
    DB2 (IBM) .............................. no
    InterBase .............................. no
    MySql .................................. yes
    OCI (Oracle) ........................... no
    ODBC ................................... yes
    PostgreSQL ............................. yes
    SQLite ................................. yes
    Using system provided SQLite ......... no
    Qt Testlib:
    Tester for item models ................. yes
    Serial Port:
    ntddmodm ............................... no

    D 1 Reply Last reply 17 Jun 2020, 19:34
    0
    • D DungeonLords
      12 Jun 2020, 09:54

      I want to build Qt6 with qtcharts from git. Some modules that I do not need I am skipping.
      I have got 3 folders in base folder: qt5 (Sources), build (to configure and build), build_artifacts for build artifacts (always empty I do not know why). I read https://wiki.qt.io/Building_Qt_5_from_Git and install all necessary packages on my Ubuntu 20 on Orange Pi 4.
      git clone git://code.qt.io/qt/qt5.git qt5 &&
      cd qt5 &&
      perl init-repository --module-subset=default,qtcharts,-qtwebengine,-qtwayland,-qtandroidextras,-qtvirtualkeyboard,-qtquick3d
      cd ../build

      Configure my Qt6:
      ../qt5/configure -developer-build -opensource -nomake examples -nomake tests -confirm-license -skip webengine -skip qtwayland -skip qtandroidextras -skip qtdoc -skip qtgraphicaleffects -skip qtqa -skip qttranslations -skip qtvirtualkeyboard -skip qtquicktimeline -skip qtquick3d -skip qtrepotools -skip qtdeclarative -skip qttools -skip qtshadertools -skip qtimageformats -skip qtnetworkauth -skip qtquickcontrols2 -skip qtsvg -skip qtwebsockets -skip qt5compat -opengl es2 -prefix ../build_artifacts -v

      Orange Pi 4 do no support Desktop OpenGL, but OpenGL ES2. I try make -j8 and
      error with qtcharts:
      QtWidgets/QOpenGLWidget: No such file or directory.

      Is it because qtcharts need Desktop OpenGL? Can I change qtcharts to use OpenGL ES2?

      Configure summary:

      Build type: linux-g++ (arm64, CPU features: cx16 neon)
      Compiler: gcc 9.3.0
      Configuration: compile_examples enable_new_dtags largefile neon precompile_header warnings_are_errors shared shared rpath private_tests debug c++11 c++14 c++17 c++1z concurrent dbus reduce_exports release_tools stl
      Build options:
      Mode ................................... debug; optimized tools
      Optimize debug build ................... no
      Building shared libraries .............. yes
      Using C standard ....................... C11
      Using C++ standard ..................... C++17
      Using ccache ........................... no
      Using new DTAGS ........................ yes
      Generating GDB index ................... no
      Relocatable ............................ yes
      Using precompiled headers .............. yes
      Using LTCG ............................. no
      Target compiler supports:
      NEON ................................. yes
      Build parts ............................ libs tools
      Qt modules and options:
      Qt Concurrent .......................... yes
      Qt D-Bus ............................... yes
      Qt D-Bus directly linked to libdbus .... yes
      Qt Gui ................................. yes
      Qt Network ............................. yes
      Qt Sql ................................. yes
      Qt Testlib ............................. yes
      Qt Widgets ............................. yes
      Qt Xml ................................. yes
      Support enabled for:
      Using pkg-config ....................... yes
      udev ................................... yes
      Using system zlib ...................... yes
      Zstandard support ...................... no
      Qt Core:
      DoubleConversion ....................... yes
      Using system DoubleConversion ........ yes
      GLib ................................... yes
      iconv .................................. no
      ICU .................................... yes
      Built-in copy of the MIME database ..... yes
      Tracing backend ........................ <none>
      Logging backends:
      journald ............................. no
      syslog ............................... no
      slog2 ................................ no
      PCRE2 .................................. yes
      Using system PCRE2 ................... yes
      Qt Network:
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      Linux AF_NETLINK ....................... yes
      OpenSSL ................................ yes
      Qt directly linked to OpenSSL ........ no
      OpenSSL 1.1 ............................ yes
      DTLS ................................... yes
      OCSP-stapling .......................... yes
      FTP .................................... no
      SCTP ................................... no
      Use system proxies ..................... yes
      GSSAPI ................................. no
      Qt Gui:
      Accessibility .......................... yes
      FreeType ............................... yes
      Using system FreeType ................ yes
      HarfBuzz ............................... yes
      Using system HarfBuzz ................ yes
      Fontconfig ............................. yes
      Image formats:
      GIF .................................. yes
      ICO .................................. yes
      JPEG ................................. yes
      Using system libjpeg ............... yes
      PNG .................................. yes
      Using system libpng ................ yes
      Text formats:
      HtmlParser ........................... yes
      CssParser ............................ yes
      OdfWriter ............................ yes
      MarkdownReader ....................... yes
      Using system libmd4c ............... no
      MarkdownWriter ....................... yes
      EGL .................................... yes
      OpenVG ................................. no
      OpenGL:
      Desktop OpenGL ....................... no
      OpenGL ES 2.0 ........................ yes
      OpenGL ES 3.0 ........................ yes
      OpenGL ES 3.1 ........................ yes
      OpenGL ES 3.2 ........................ yes
      Vulkan ................................. yes
      Session Management ..................... yes
      Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... yes
      INTEGRITY HID .......................... no
      mtdev .................................. yes
      tslib .................................. no
      xkbcommon .............................. yes
      X11 specific:
      XLib ................................. yes
      XCB Xlib ............................. yes
      EGL on X11 ........................... yes
      xkbcommon-x11 ........................ yes
      QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
      EGLFS OpenWFD ........................ no
      EGLFS i.Mx6 .......................... no
      EGLFS i.Mx6 Wayland .................. no
      EGLFS RCAR ........................... no
      EGLFS EGLDevice ...................... yes
      EGLFS GBM ............................ yes
      EGLFS VSP2 ........................... no
      EGLFS Mali ........................... no
      EGLFS Raspberry Pi ................... no
      EGLFS X11 ............................ yes
      LinuxFB ................................ yes
      VNC .................................... yes
      XCB:
      Using system-provided xcb-xinput ..... yes
      Native painting (experimental) ....... no
      GL integrations:
      GLX Plugin ......................... no
      EGL-X11 Plugin ..................... yes
      Qt Sql:
      SQL item models ........................ yes
      Qt Widgets:
      GTK+ ................................... yes
      Styles ................................. Fusion Windows
      Qt PrintSupport:
      CUPS ................................... yes
      Qt Sql Drivers:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. yes
      OCI (Oracle) ........................... no
      ODBC ................................... yes
      PostgreSQL ............................. yes
      SQLite ................................. yes
      Using system provided SQLite ......... no
      Qt Testlib:
      Tester for item models ................. yes
      Serial Port:
      ntddmodm ............................... no

      D Offline
      D Offline
      DungeonLords
      wrote on 17 Jun 2020, 19:34 last edited by
      #2

      Wating bugfix
      https://bugreports.qt.io/browse/QTBUG-85053

      1 Reply Last reply
      0

      2/2

      17 Jun 2020, 19:34

      • Login

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