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. Missing libGL.so.1 on 64-bit Raspberry Pi with eglfs
QtWS25 Last Chance

Missing libGL.so.1 on 64-bit Raspberry Pi with eglfs

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 938 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.
  • C Offline
    C Offline
    coldspark29
    wrote on last edited by coldspark29
    #1

    I am currently building a Yocto image with the following configuration

    SDKMACHINE ?= "x86_64"
    
    # Extra image configuration defaults
    EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh"
    CORE_IMAGE_EXTRA_INSTALL += "openssh-sftp openssh-sftp-server"
    INIT_MANAGER = "systemd"
    INHERIT += "rm_work"
    
    # Extra packages
    
    LICENSE_FLAGS_WHITELIST = "commercial"
    
    DISTRO_FEATURES:remove = " x11 wayland vulkan directfb"
    DISTRO_FEATURES:append = " alsa opengl"
    
    IMAGE_INSTALL:append = "\
      qtbase-plugins \
      qtbase-tools \
      qtdeclarative \
      qtdeclarative-plugins \
      qtdeclarative-tools \
      qtdeclarative-qmlplugins \
      qtmultimedia \
      qtmultimedia-plugins \
      qtmultimedia-qmlplugins \
      qtsvg \
      qtsvg-plugins \
      qtsensors \
      qtimageformats-plugins \
      qtsystems \
      qtsystems-tools \
      qtsystems-qmlplugins \
      qtscript \
      qt3d \
      qtquickcontrols2 \
      qtquicktimeline \
      rsync \
      coreutils \
      ffmpeg \
      mesa \
    "
    
    PACKAGECONFIG:append:pn-qtbase = " \
      eglfs \
      "
    
    # Hostname of the machine
    hostname_pn-base-files = "healthpi64"
    
    # Image file system types to package
    IMAGE_FSTYPES = "rpi-sdimg"
    
    # Package management configuration
    PACKAGE_CLASSES = "package_ipk"
    
    MACHINE ??= "raspberrypi4-64"
    DISTRO ??= "poky"
    BBMULTICONFIG ?= ""
    

    I have generated an SDK and could successfully build the Qt application, but when I try to run it I get this message

    error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

    libgl should be provided by mesa. I explicitly added it and because I read that ffmpeg supplies it, I tried that one too.
    Here I am reading that the 32-bit version of libgl is required:

    https://www.gog.com/forum/this_war_of_mine/error_while_loading_shared_libraries_libglso1_cannot_open_shared_object_file_no_such_file_or_di

    so I am wondering if I am not compiling it right.

    Can anyone tell me what package I am missing?

    JKSHJ 1 Reply Last reply
    0
    • C coldspark29

      I am currently building a Yocto image with the following configuration

      SDKMACHINE ?= "x86_64"
      
      # Extra image configuration defaults
      EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh"
      CORE_IMAGE_EXTRA_INSTALL += "openssh-sftp openssh-sftp-server"
      INIT_MANAGER = "systemd"
      INHERIT += "rm_work"
      
      # Extra packages
      
      LICENSE_FLAGS_WHITELIST = "commercial"
      
      DISTRO_FEATURES:remove = " x11 wayland vulkan directfb"
      DISTRO_FEATURES:append = " alsa opengl"
      
      IMAGE_INSTALL:append = "\
        qtbase-plugins \
        qtbase-tools \
        qtdeclarative \
        qtdeclarative-plugins \
        qtdeclarative-tools \
        qtdeclarative-qmlplugins \
        qtmultimedia \
        qtmultimedia-plugins \
        qtmultimedia-qmlplugins \
        qtsvg \
        qtsvg-plugins \
        qtsensors \
        qtimageformats-plugins \
        qtsystems \
        qtsystems-tools \
        qtsystems-qmlplugins \
        qtscript \
        qt3d \
        qtquickcontrols2 \
        qtquicktimeline \
        rsync \
        coreutils \
        ffmpeg \
        mesa \
      "
      
      PACKAGECONFIG:append:pn-qtbase = " \
        eglfs \
        "
      
      # Hostname of the machine
      hostname_pn-base-files = "healthpi64"
      
      # Image file system types to package
      IMAGE_FSTYPES = "rpi-sdimg"
      
      # Package management configuration
      PACKAGE_CLASSES = "package_ipk"
      
      MACHINE ??= "raspberrypi4-64"
      DISTRO ??= "poky"
      BBMULTICONFIG ?= ""
      

      I have generated an SDK and could successfully build the Qt application, but when I try to run it I get this message

      error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

      libgl should be provided by mesa. I explicitly added it and because I read that ffmpeg supplies it, I tried that one too.
      Here I am reading that the 32-bit version of libgl is required:

      https://www.gog.com/forum/this_war_of_mine/error_while_loading_shared_libraries_libglso1_cannot_open_shared_object_file_no_such_file_or_di

      so I am wondering if I am not compiling it right.

      Can anyone tell me what package I am missing?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @coldspark29 said in Missing libGL.so.1 on 64-bit Raspberry Pi with eglfs:

      Here I am reading that the 32-bit version of libgl is required:

      No, if you're building a 64-bit app with a 64-bit compiler, then you need 64-bit libraries.

      Can anyone tell me what package I am missing?

      Not off the top of my head, sorry. If you can't find answers here, try asking the Yocto community

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • C Offline
        C Offline
        coldspark29
        wrote on last edited by
        #3

        @JKSH Okay thanks. I was just hoping that there would be something wrong the the Qt side of the configuration, but when I look at Raspian all the libGL files are there, although it is the basic image without X.

        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