Skip to content

[sdl2-image] JPEG and WEBP features do not work on Linux #21331

@kogiokka

Description

@kogiokka

Describe the bug
SDL reports error when loading .jpg and .webp images. Both sdl2-image[libjpeg-turbo] and sdl2-image[libwebp] are installed.

Environment

  • OS: Linux (Fedora 33)
  • Compiler: GCC version 10.3.1 20210422

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install sdl2 'sdl2-image[core,libjpeg-turbo,libwebp]'
  2. Compile and run the attached project: SDL_image_vcpkg_bug_report.zip
  3. SDL reports "JPEG loading error" when loading a JPEG image, and "Failed loading libwebp-4.dll: libwebp-4.dll: cannot open shared object file: No such file or directory" when loading a WEBP image.

Expected behavior

SDL should be able to load JPEG and WEBP images on Linux after libjpeg-turbo and libwebp features are installed. The same project has been tested on Windows without any issue occurring.

Failure logs
N/A

Additional context
N/A

Metadata

Metadata

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions