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. Yocto Qt5 GUI App not running on RPi3
Forum Updated to NodeBB v4.3 + New Features

Yocto Qt5 GUI App not running on RPi3

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 490 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
    aashishqt
    wrote on last edited by
    #1

    Hi All,

    I have build a "rpi-test-image" using Yocto dunfell with the meta-openembedded, meta-raspberrypi, meta-qt5 layers and following settings in my local.conf file

    MACHINE ?= "raspberrypi3"

    IMAGE_INSTALL_append = " qt3d qt5-plugin-generic-vboxtouch qtbase qtcharts qtconnectivity qtdatavis3d qtdeclarative qtgraphicaleffects qtimageformats qtlocation qtmultimedia qtquickcontrols2 qtquickcontrols qtscript qtsensors qtserialport qtsvg qtsystems qttools qttranslations qtvirtualkeyboard qtwebchannel qtwebkit qtwebsockets qtxmlpatterns openssh-sftp-server gdb gdbserver"

    Now I setup meta-toolchain-qt5 and using Qt creator I created a very basic Qt Quick Application (compat) with the following settings,

    in .pro file;

    Default rules for deployment.

    target.path=/home/root
    INSTALLS += target

    QMAKE_LFLAGS=--sysroot=/opt/poky/sdk_rpi/sysroots/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi

    Now when I run this app in my RPi3 the GUI does not pop-up, I am getting the following error,

    ![alt text](1.jpg image url)

    then I exported the following environment variables,
    export QT_QPA_PLATFORMTHEME=qt5ct
    export DISPLAY=:0.0
    export XDG_SESSION_TYPE=x11
    export QT_QPA_PLATFORM=offscreen
    export XDG_RUNTIME_DIR=/var/volatile/tmp/runtime-root

    then I got the following error,
    2.jpg

    I think it is OpenGL error, please tell me how to solve this problem, I am in a great need of it.
    Thanks

    Ronel_qtmasterR 1 Reply Last reply
    0
    • A aashishqt

      Hi All,

      I have build a "rpi-test-image" using Yocto dunfell with the meta-openembedded, meta-raspberrypi, meta-qt5 layers and following settings in my local.conf file

      MACHINE ?= "raspberrypi3"

      IMAGE_INSTALL_append = " qt3d qt5-plugin-generic-vboxtouch qtbase qtcharts qtconnectivity qtdatavis3d qtdeclarative qtgraphicaleffects qtimageformats qtlocation qtmultimedia qtquickcontrols2 qtquickcontrols qtscript qtsensors qtserialport qtsvg qtsystems qttools qttranslations qtvirtualkeyboard qtwebchannel qtwebkit qtwebsockets qtxmlpatterns openssh-sftp-server gdb gdbserver"

      Now I setup meta-toolchain-qt5 and using Qt creator I created a very basic Qt Quick Application (compat) with the following settings,

      in .pro file;

      Default rules for deployment.

      target.path=/home/root
      INSTALLS += target

      QMAKE_LFLAGS=--sysroot=/opt/poky/sdk_rpi/sysroots/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi

      Now when I run this app in my RPi3 the GUI does not pop-up, I am getting the following error,

      ![alt text](1.jpg image url)

      then I exported the following environment variables,
      export QT_QPA_PLATFORMTHEME=qt5ct
      export DISPLAY=:0.0
      export XDG_SESSION_TYPE=x11
      export QT_QPA_PLATFORM=offscreen
      export XDG_RUNTIME_DIR=/var/volatile/tmp/runtime-root

      then I got the following error,
      2.jpg

      I think it is OpenGL error, please tell me how to solve this problem, I am in a great need of it.
      Thanks

      Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on last edited by
      #2

      @aashishqt i think your image does not have the window manager of xcb, that is probably why you don't see the gui.Try to build a core-image-sato and test again with -platform xcb

      Moreover Try to add eglfs plugin and linuxfb in your build to test.Forget about offscreen only try with eglfs, xcb, linuxfb or vnc

      A 1 Reply Last reply
      0
      • Ronel_qtmasterR Ronel_qtmaster

        @aashishqt i think your image does not have the window manager of xcb, that is probably why you don't see the gui.Try to build a core-image-sato and test again with -platform xcb

        Moreover Try to add eglfs plugin and linuxfb in your build to test.Forget about offscreen only try with eglfs, xcb, linuxfb or vnc

        A Offline
        A Offline
        aashishqt
        wrote on last edited by
        #3

        @Ronel_qtmaster Great thanks I built core-image-sato and used QT_QPA_PLATFORM=xcb and I got the GUI. Thanks

        Now I want to know that how to add eglfs plugin and linuxfb in my build.

        Ronel_qtmasterR 1 Reply Last reply
        0
        • A aashishqt

          @Ronel_qtmaster Great thanks I built core-image-sato and used QT_QPA_PLATFORM=xcb and I got the GUI. Thanks

          Now I want to know that how to add eglfs plugin and linuxfb in my build.

          Ronel_qtmasterR Offline
          Ronel_qtmasterR Offline
          Ronel_qtmaster
          wrote on last edited by
          #4

          @aashishqt You're welcome
          to enable eglfs, in your local.conf add
          DISTRO_FEATURES_remove = "X11 wayland"
          then in qtbase_%.bbappend add
          PACKAGECONFIG_append = " eglfs"

          qtbase_%.bbappend is found in meta-qt5 under recipes-qt, qt5 folder.

          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