All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Volk <f_l_k@t-online.de>
To: martin.jansa@gmail.com
Cc: "Martin Jansa via lists.openembedded.org"
	<martin.jansa=gmail.com@lists.openembedded.org>,
	openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-oe][PATCHv2] libsdl3: add recipe
Date: Mon, 17 Mar 2025 13:58:00 +0100	[thread overview]
Message-ID: <OOQ9TS.1SN68XT65W4D2@t-online.de> (raw)
In-Reply-To: <CA+chaQcVqO2qSReiy5tgc4EKhsZxJKd823wdZj=BgoHYPDYLHw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 13820 bytes --]

Hi,

I have sent a patch to fix it.

On Mon, Mar 17 2025 at 12:18:56 +01:00:00, Martin Jansa via 
lists.openembedded.org <martin.jansa=gmail.com@lists.openembedded.org> 
wrote:
> Hi,
> 
> in my world build without x11 in DISTRO_FEATURES this and
> libsdl2-compat failed to build with:
> 
> -- SDL3 was configured with the following options:
> --
> -- Platform: Linux
> -- 64-bit:   TRUE
> -- Compiler: 
> libsdl3/3.2.8/recipe-sysroot-native/usr/bin/aarch64-webos-linux/aarch64-webos-linux-gcc
> -- Revision: release-3.2.8-0-gf6864924f
> -- Vendor:
> --
> -- Subsystems:
> --   Audio:    ON
> --   Video:    ON
> --   GPU:      ON
> --   Render:   ON
> --   Camera:   ON
> --   Joystick: ON
> --   Haptic:   ON
> --   Hidapi:   ON
> --   Power:    ON
> --   Sensor:   ON
> --   Dialog:   ON
> --
> -- Options:
> --   SDL_ALSA                    (Wanted: OFF): OFF
> --   SDL_ALSA_SHARED             (Wanted: OFF): OFF
> --   SDL_ALTIVEC                 (Wanted: OFF): OFF
> --   SDL_ARMNEON                 (Wanted: OFF): OFF
> --   SDL_ASAN                    (Wanted: OFF): OFF
> --   SDL_ASSEMBLY                (Wanted: ON): ON
> --   SDL_ASSERTIONS              (Wanted: auto): auto
> --   SDL_AVX                     (Wanted: OFF): OFF
> --   SDL_AVX2                    (Wanted: OFF): OFF
> --   SDL_AVX512F                 (Wanted: OFF): OFF
> --   SDL_BACKGROUNDING_SIGNAL    (Wanted: OFF): OFF
> --   SDL_CCACHE                  (Wanted: OFF): OFF
> --   SDL_CLANG_TIDY              (Wanted: OFF): OFF
> --   SDL_CLOCK_GETTIME           (Wanted: ON): ON
> --   SDL_COCOA                   (Wanted: OFF): OFF
> --   SDL_DBUS                    (Wanted: ON): OFF
> --   SDL_DEPS_SHARED             (Wanted: ON): OFF
> --   SDL_DIRECTX                 (Wanted: OFF): OFF
> --   SDL_DISKAUDIO               (Wanted: OFF): OFF
> --   SDL_DUMMYAUDIO              (Wanted: ON): ON
> --   SDL_DUMMYCAMERA             (Wanted: ON): ON
> --   SDL_DUMMYVIDEO              (Wanted: OFF): OFF
> --   SDL_EXAMPLES                (Wanted: OFF): OFF
> --   SDL_EXAMPLES_LINK_SHARED    (Wanted: ON): OFF
> --   SDL_FOREGROUNDING_SIGNAL    (Wanted: OFF): OFF
> --   SDL_GCC_ATOMICS             (Wanted: ON): ON
> --   SDL_GPU_DXVK                (Wanted: OFF): OFF
> --   SDL_HIDAPI                  (Wanted: ON): ON
> --   SDL_HIDAPI_JOYSTICK         (Wanted: ON): ON
> --   SDL_HIDAPI_LIBUSB           (Wanted: OFF): OFF
> --   SDL_HIDAPI_LIBUSB_SHARED    (Wanted: OFF): OFF
> --   SDL_IBUS                    (Wanted: ON): OFF
> --   SDL_INSTALL                 (Wanted: ON): OFF
> --   SDL_INSTALL_TESTS           (Wanted: OFF): OFF
> --   SDL_JACK                    (Wanted: OFF): OFF
> --   SDL_JACK_SHARED             (Wanted: OFF): OFF
> --   SDL_KMSDRM                  (Wanted: OFF): OFF
> --   SDL_KMSDRM_SHARED           (Wanted: OFF): OFF
> --   SDL_LASX                    (Wanted: OFF): OFF
> --   SDL_LIBC                    (Wanted: ON): ON
> --   SDL_LIBICONV                (Wanted: OFF): OFF
> --   SDL_LIBUDEV                 (Wanted: ON): ON
> --   SDL_LIBURING                (Wanted: ON): OFF
> --   SDL_LSX                     (Wanted: OFF): OFF
> --   SDL_METAL                   (Wanted: OFF): OFF
> --   SDL_MMX                     (Wanted: OFF): OFF
> --   SDL_OFFSCREEN               (Wanted: ON): ON
> --   SDL_OPENGL                  (Wanted: OFF): OFF
> --   SDL_OPENGLES                (Wanted: OFF): OFF
> --   SDL_OPENVR                  (Wanted: OFF): OFF
> --   SDL_OSS                     (Wanted: OFF): OFF
> --   SDL_PIPEWIRE                (Wanted: ON): OFF
> --   SDL_PIPEWIRE_SHARED         (Wanted: OFF): OFF
> --   SDL_PTHREADS                (Wanted: ON): ON
> --   SDL_PTHREADS_SEM            (Wanted: ON): ON
> --   SDL_PULSEAUDIO              (Wanted: ON): ON
> --   SDL_PULSEAUDIO_SHARED       (Wanted: ON): ON
> --   SDL_RENDER_D3D              (Wanted: OFF): OFF
> --   SDL_RENDER_D3D11            (Wanted: OFF): OFF
> --   SDL_RENDER_D3D12            (Wanted: OFF): OFF
> --   SDL_RENDER_GPU              (Wanted: ON): ON
> --   SDL_RENDER_METAL            (Wanted: ON): OFF
> --   SDL_RENDER_VULKAN           (Wanted: OFF): OFF
> --   SDL_ROCKCHIP                (Wanted: ON): OFF
> --   SDL_RPATH                   (Wanted: OFF): OFF
> --   SDL_RPI                     (Wanted: OFF): OFF
> --   SDL_SNDIO                   (Wanted: OFF): OFF
> --   SDL_SNDIO_SHARED            (Wanted: OFF): OFF
> --   SDL_SSE                     (Wanted: OFF): OFF
> --   SDL_SSE2                    (Wanted: OFF): OFF
> --   SDL_SSE3                    (Wanted: OFF): OFF
> --   SDL_SSE4_1                  (Wanted: OFF): OFF
> --   SDL_SSE4_2                  (Wanted: OFF): OFF
> --   SDL_SYSTEM_ICONV            (Wanted: ON): ON
> --   SDL_TESTS                   (Wanted: OFF): OFF
> --   SDL_TESTS_LINK_SHARED       (Wanted: ON): OFF
> --   SDL_UNINSTALL               (Wanted: ON): OFF
> --   SDL_VIRTUAL_JOYSTICK        (Wanted: ON): ON
> --   SDL_VIVANTE                 (Wanted: OFF): OFF
> --   SDL_VULKAN                  (Wanted: OFF): OFF
> --   SDL_WASAPI                  (Wanted: OFF): OFF
> --   SDL_WAYLAND                 (Wanted: OFF): OFF
> --   SDL_WAYLAND_LIBDECOR        (Wanted: OFF): OFF
> --   SDL_WAYLAND_LIBDECOR_SHARED (Wanted: OFF): OFF
> --   SDL_WAYLAND_SHARED          (Wanted: OFF): OFF
> --   SDL_X11                     (Wanted: OFF): OFF
> --   SDL_X11_SHARED              (Wanted: OFF): OFF
> --   SDL_X11_XCURSOR             (Wanted: OFF): OFF
> --   SDL_X11_XDBE                (Wanted: OFF): OFF
> --   SDL_X11_XFIXES              (Wanted: OFF): OFF
> --   SDL_X11_XINPUT              (Wanted: OFF): OFF
> --   SDL_X11_XRANDR              (Wanted: OFF): OFF
> --   SDL_X11_XSCRNSAVER          (Wanted: OFF): OFF
> --   SDL_X11_XSHAPE              (Wanted: OFF): OFF
> --   SDL_X11_XSYNC               (Wanted: OFF): OFF
> --   SDL_XINPUT                  (Wanted: OFF): OFF
> --
> --  Build Shared Library: ON
> --  Build Static Library: OFF
> --
> -- If something was not detected, although the libraries
> -- were installed, then make sure you have set the
> -- CMAKE_C_FLAGS and CMAKE_PREFIX_PATH CMake variables correctly.
> --
> CMake Error at cmake/macros.cmake:382 (message):
>   SDL could not find X11 or Wayland development libraries on your 
> system.
>   This means SDL will not be able to create windows on a typical unix
>   operating system.  Most likely, this is not wanted.
> 
>   On Linux, install the packages listed at
>   
> <https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md#build-dependencies>
> 
> 
>   If you really don't need desktop windows, the documentation tells 
> you how
>   to skip this check.
>   
> <https://github.com/libsdl-org/SDL/blob/main/docs/README-cmake.md#cmake-fails-to-build-without-x11-or-wayland-support>
> 
> 
> Call Stack (most recent call first):
>   CMakeLists.txt:3799 (SDL_PrintSummary)
> 
> which might be caused by _both_ x11 and wayland missing in
> DISTRO_FEATURES and we should probably add features_check inherit to
> make sure at least one of them is available.
> 
> libsdl2-compat (in build where libsdl3 didn't fail) failed with:
> 
> -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OpenGL)
> CMake Error at 
> TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/libsdl2-compat/2.32.52/recipe-sysroot-native/usr/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233
> (message):
>   Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)
> Call Stack (most recent call first):
>   
> TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/libsdl2-compat/2.32.52/recipe-sysroot-native/usr/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603
> (_FPHSA_FAILURE_MESSAGE)
>   
> TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/libsdl2-compat/2.32.52/recipe-sysroot-native/usr/share/cmake-3.31/Modules/FindX11.cmake:676
> (find_package_handle_standard_args)
>   test/CMakeLists.txt:118 (find_package)
> 
> I'll check what went wrong and send patches, this is just FYI.
> 
> Cheers,
> 
> On Thu, Mar 13, 2025 at 1:41 PM Markus Volk via 
> lists.openembedded.org
> <f_l_k=t-online.de@lists.openembedded.org 
> <mailto:f_l_k=t-online.de@lists.openembedded.org>> wrote:
>> 
>>  v2: remove directfb from PACKAGECONFIG
>> 
>>  On Thu, Mar 13 2025 at 13:03:40 +01:00:00, Markus Volk 
>> <f_l_k@t-online.de <mailto:f_l_k@t-online.de>> wrote:
>> 
>>  Signed-off-by: Markus Volk <f_l_k@t-online.de 
>> <mailto:f_l_k@t-online.de>> --- 
>> .../recipes-graphics/libsdl3/libsdl3_3.2.8.bb | 83 
>> +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 
>> 100644 meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb diff --git 
>> a/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb 
>> b/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb new file mode 
>> 100644 index 0000000000..9c4fa317a2 --- /dev/null +++ 
>> b/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.8.bb @@ -0,0 +1,83 @@ 
>> +SUMMARY = "Simple DirectMedia Layer" +DESCRIPTION = "Simple 
>> DirectMedia Layer is a cross-platform multimedia \ +library designed 
>> to provide low level access to audio, keyboard, mouse, \ +joystick, 
>> 3D hardware via OpenGL, and 2D video framebuffer." +HOMEPAGE = 
>> "http://www.libsdl.org" +BUGTRACKER = "http://bugzilla.libsdl.org/" 
>> + +SECTION = "libs" + +LICENSE = "Zlib & BSD-2-Clause" 
>> +LIC_FILES_CHKSUM = "\ + 
>> file://LICENSE.txt;md5=cbf0e3161523f9a9315b6b915c5c4457 \ + 
>> file://src/hidapi/LICENSE.txt;md5=7c3949a631240cb6c31c50f3eb696077 \ 
>> + 
>> file://src/hidapi/LICENSE-bsd.txt;md5=b5fa085ce0926bb50d0621620a82361f 
>> \ + 
>> file://src/video/yuv2rgb/LICENSE;md5=79f8f3418d91531e05f0fc94ca67e071 
>> \ +" + +# arm-neon adds MIT license +LICENSE:append = " 
>> ${@bb.utils.contains('PACKAGECONFIG', 'arm-neon', '& MIT', '', d)}" 
>> +LIC_FILES_CHKSUM:append = " ${@bb.utils.contains('PACKAGECONFIG', 
>> 'arm-neon', 
>> 'file://src/video/arm/pixman-arm-neon-asm.h;md5=9a9cc1e51abbf1da58f4d9528ec9d49b;beginline=1;endline=24', 
>> '', d)}" + +PROVIDES = "virtual/libsdl3" + +SRC_URI = 
>> "http://www.libsdl.org/release/SDL3-${PV}.tar.gz" + +S = 
>> "${WORKDIR}/SDL3-${PV}" + +SRC_URI[sha256sum] = 
>> "13388fabb361de768ecdf2b65e52bb27d1054cae6ccb6942ba926e378e00db03" + 
>> +inherit cmake lib_package binconfig-disabled pkgconfig 
>> upstream-version-is-even + +CVE_PRODUCT = "simple_directmedia_layer 
>> sdl" + +EXTRA_OECMAKE = " \ + -DSDL_OSS_DEFAULT=OFF \ + 
>> -DSDL_DISKAUDIO=OFF \ + -DSDL_DUMMYVIDEO=OFF \ + -DSDL_RPI=OFF \ + 
>> -DSDL_PTHREADS=ON \ + -DSDL_RPATH=OFF \ + -DSDL_SNDIO=OFF \ + 
>> -DSDL_X11_XCURSOR=OFF \ + -DSDL_X11_XDBE=OFF \ + 
>> -DSDL_X11_XFIXES=OFF \ + -DSDL_X11_XINPUT=OFF \ + 
>> -DSDL_X11_XRANDR=OFF \ + -DSDL_X11_XSCRNSAVER=OFF \ + 
>> -DSDL_X11_XSHAPE=OFF \ +" + +# opengl packageconfig factored out to 
>> make it easy for distros +# and BSP layers to pick either (desktop) 
>> opengl, gles2, or no GL +PACKAGECONFIG_GL ?= 
>> "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" + 
>> +PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}" 
>> +PACKAGECONFIG:class-nativesdk = 
>> "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} 
>> ${PACKAGECONFIG_GL}" +PACKAGECONFIG ??= " \ + ${PACKAGECONFIG_GL} \ 
>> + ${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio pipewire 
>> x11 vulkan', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 
>> 'wayland', 'wayland gles2', '', d)} \ + 
>> ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ +" 
>> +PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib," 
>> +PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF" 
>> +PACKAGECONFIG[gles2] = 
>> "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2" 
>> +PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack" 
>> +PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm 
>> virtual/libgbm" +# The hidraw support doesn't catch Xbox, PS4 and 
>> Nintendo controllers, +# so we'll just use libusb when it's 
>> available. +PACKAGECONFIG[libusb] = 
>> "-DSDL_HIDAPI_LIBUSB=ON,-DSDL_HIDAPI_LIBUSB=OFF,libusb1" 
>> +PACKAGECONFIG[libdecor] = 
>> "-DSDL_WAYLAND_LIBDECOR=ON,-DSDL_WAYLAND_LIBDECOR=OFF,libdecor,libdecor" 
>> +PACKAGECONFIG[opengl] = 
>> "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl" 
>> +PACKAGECONFIG[pipewire] = 
>> "-DSDL_PIPEWIRE_SHARED=ON,-DSDL_PIPEWIRE_SHARED=OFF,pipewire" 
>> +PACKAGECONFIG[pulseaudio] = 
>> "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio" 
>> +PACKAGECONFIG[vulkan] = "-DSDL_VULKAN=ON 
>> -DSDL_RENDER_VULKAN=ON,-DSDL_VULKAN=OFF -DSDL_RENDER_VULKAN=OFF" 
>> +PACKAGECONFIG[wayland] = 
>> "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland 
>> wayland-protocols libxkbcommon" +PACKAGECONFIG[x11] = 
>> "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr 
>> libxrender" + +CFLAGS:append:class-native = " -DNO_SHARED_MEMORY" + 
>> +FILES:${PN} += "${datadir}/licenses/SDL3/LICENSE.txt" + 
>> +BBCLASSEXTEND = "native nativesdk"
>>  --
>>  2.48.1
>> 
>> 
>> 
>> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#116024): 
> <https://lists.openembedded.org/g/openembedded-devel/message/116024>
> Mute This Topic: <https://lists.openembedded.org/mt/111678038/3618223>
> Group Owner: openembedded-devel+owner@lists.openembedded.org 
> <mailto:openembedded-devel+owner@lists.openembedded.org>
> Unsubscribe: 
> <https://lists.openembedded.org/g/openembedded-devel/unsub> 
> [f_l_k@t-online.de <mailto:f_l_k@t-online.de>]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


[-- Attachment #2: Type: text/html, Size: 13877 bytes --]

  reply	other threads:[~2025-03-17 12:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <182C5B28D7D9F838.16826@lists.openembedded.org>
2025-03-13 12:04 ` [oe] [meta-oe][PATCHv2] libsdl3: add recipe Markus Volk
2025-03-17 11:18   ` Martin Jansa
2025-03-17 12:58     ` Markus Volk [this message]
     [not found]     ` <182D9870774557FF.29351@lists.openembedded.org>
2025-03-17 14:08       ` Markus Volk
2025-03-17 14:14         ` Martin Jansa
2025-03-13 12:03 Markus Volk
2025-03-13 12:44 ` [oe] " Gyorgy Sarvari
2025-03-13 14:10   ` Markus Volk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OOQ9TS.1SN68XT65W4D2@t-online.de \
    --to=f_l_k@t-online.de \
    --cc=martin.jansa=gmail.com@lists.openembedded.org \
    --cc=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.