Skip to contentSkip to conversation

SDL_image: fix runtime libjpeg failure

PATCH New Baruch Siach 2 participants 3 messages Nov 9, 2009 – Nov 23, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SDL_image: fix runtime libjpeg failure

#1 lore raw

PATCH 1/1 SDL_image: fix runtime libjpeg failure

Hi Buildroot list,

Ping?

Should I open a Bugzilla entry to have this issue handled? Is there a better solutions?

baruch

Quoted 34 lines · Baruch Siach

From d86e3115e0beaf281e791a78a5e73bac69f14128 Mon Sep 17 00:00:00 2001
From: Baruch Siach <[email protected]>
Date: Mon, 9 Nov 2009 14:53:30 +0200
Subject: [PATCH] SDL_image: fix runtime libjpeg failure

By default SDL_image loads libjpeg at runtime on-demand. The find_lib routine in the configure script of SLD_image searches the /usr/lib directory of the host machine to find the file name of the jpeg library.

When the host on which Buildroot is being built contains newer version of libjpeg (e.g. libjpeg7), the configure script incorrectly uses its file name. The result is a runtime failure to load libjpeg.

Fix this by disabling runtime load of libjpeg.

---
 package/sdl_image/sdl_image.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/sdl_image/sdl_image.mk +1 -0
index 382c0b1..c12ae8e 100644
@@ -14,6 +14,7 @@ SDL_IMAGE_CONF_OPT:=--with-sdl-prefix=$(STAGING_DIR)/usr \
        --with-sdl-exec-prefix=$(STAGING_DIR)/usr \
        --disable-sdltest \
        --disable-static \
+       --disable-jpg-shared \
        --enable-bmp=$(if $(BR2_PACKAGE_SDL_IMAGE_BMP),yes,no) \
        --enable-gif=$(if $(BR2_PACKAGE_SDL_IMAGE_GIF),yes,no) \
        --enable-jpg=$(if $(BR2_PACKAGE_SDL_IMAGE_JPEG),yes,no) \
Signature · 1 line
1.6.5
Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 SDL_image: fix runtime libjpeg failure

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Baruch> Hi Buildroot list,
Baruch> Ping?

Hi, sorry for the slow response.

Baruch> Should I open a Bugzilla entry to have this issue handled? Baruch> Is there a better solutions?

No, it's an OK solution, but it isn't complete as the configure script will do the same for png and tiff, so you need --disable-*-shared for those as well.

I'll fix that and commit, thanks.

Signature · 1 line
Bye, Peter Korsgaard