From 461c78e631f93f1993dd6635c9ae53d80286c7bb Mon Sep 17 00:00:00 2001 From: Zheng Ruoqin Date: Thu, 25 Jun 2026 10:04:33 +0800 Subject: [PATCH] freeglut-gles: Add symbol link to fix opencl-cts compile error opencl-cts depends on freeglut-gles which will cause can't find so file error when using freeglut-gles as: opencl-cts/2026.05.05/recipe-sysroot-native/usr/bin/aarch64-oe-linux/aarch64-oe-linux-ld: cannot find -lglut: No such file or directory It was caused by the CMake definition in opencl-cts In test_conformance/gl/CMakeLists.txt, it will always find glut file to link but the realname is libfreeglut-gles.so or libfreeglut.so. if(WIN32) ...... list(APPEND CLConform_LIBRARIES opengl32 freeglut glew32) else(WIN32) list(APPEND CLConform_LIBRARIES GL glut GLEW GLU) endif(WIN32) So add symbol link for so file in freeglut-gles. Signed-off-by: Zheng Ruoqin Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb index a00519f0d7..f9fe540c63 100644 --- a/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb +++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.8.0.bb @@ -36,4 +36,7 @@ UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" do_install:append() { # Remove buildpaths sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake + if [ -f "${D}${libdir}/libfreeglut-gles.so" ]; then + ln -sf libfreeglut-gles.so ${D}${libdir}/libglut.so + fi }