Missing libGL.so.1 on 64-bit Raspberry Pi with eglfs
-
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 oflibgl
is required:so I am wondering if I am not compiling it right.
Can anyone tell me what package I am missing?
-
@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
-
@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.