Skip to contentSkip to conversation

[Buildroot] [Fwd: Re: SDL_image, SDL_ttf & Co (libpng12.So bug)]

Buildroot Claudio Leonel 2 participants 4 messages Nov 27, 2006 – Nov 29, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

I was using buildroot version 20061111 and managed to compile SDL_image including the following flags (LDFLAGS) for the linker.

$(SDL_IMAGE_DIR)/.compiled: $(SDL_IMAGE_DIR)/.configured

	$(MAKE) LDFLAGS=$(STAGING_DIR)/lib/libpng12.so -C $(SDL_IMAGE_DIR)
	touch $(SDL_IMAGE_DIR)/.compiled

I checked the dependencies of the generated libSDL_image.so file and it seemed OK, but I haven't tested it yet in the target.

But then I changed to a newer buildroot version: 20061124 and the previous modification was not enough, other linker errors appeared, regarding the host directfb library.

I had to change the sdl.mk for SDL adding the following line to configure:
--disable-video-directfb

(I am not using directfb, only the framebuffer)

I am now having problems compiling SDL_ttf ...

Regards,

Quoted 19 lines

Hi,

I have tried an older Buildroot version (20060217) and SDL_image is compiling fine. uClibc version is the same (0.9.28) than on my "non working" Buildroot snapshot (20060908).

Claudio, which Buildroot version are you using ?

Does somebody from buildroot team working on the very similar DirectFB/libpng12.so bug (ID 959) has already found something ?

regards,
Julien

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

#2 lore raw

Hi,

Quoted 8 lines

I was using buildroot version 20061111 and managed to compile SDL_image including the following flags (LDFLAGS) for the linker.

$(SDL_IMAGE_DIR)/.compiled: $(SDL_IMAGE_DIR)/.configured

	$(MAKE) LDFLAGS=$(STAGING_DIR)/lib/libpng12.so -C $(SDL_IMAGE_DIR)
	touch $(SDL_IMAGE_DIR)/.compiled

Well I investigate a little too and find that when removing "showimage" example compilation from Makefile, then I was able to compile SDL_image. (The error on libpng12.so is during showimage tool link.) But if think your solution is cleaner
;-)

Quoted 4 lines

I had to change the sdl.mk for SDL adding the following line to configure:
--disable-video-directfb

ok ,thanks for the tip !

Quoted 1 line

I am now having problems compiling SDL_ttf ...

I had problems too :-). I suppose you have the same: missing OpenGL library. I was able to compile SDL_ttf (2.0.8) when adding the following options to configure:

        --disable-sdltest
	--without-x
	--disable-opengl

I attach my SDL_ttf makefile if it can help you. Let me know if it solves your problem !

regards,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sdl_ttf.mk
Type: application/octet-stream
Size: 2218 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20061127/d139ca79/attachment.obj

#3 lore raw

Hi,

Thanks, using this flags in configure, SDL_ttf
compiled OK !

Regards,

Quoted 43 lines · julien.boibessot at free.fr

Hi,

Quoted 8 lines

I was using buildroot version 20061111 and managed to compile SDL_image including the following flags (LDFLAGS) for the linker.

$(SDL_IMAGE_DIR)/.compiled: $(SDL_IMAGE_DIR)/.configured

	$(MAKE) LDFLAGS=$(STAGING_DIR)/lib/libpng12.so -C $(SDL_IMAGE_DIR)
	touch $(SDL_IMAGE_DIR)/.compiled

Well I investigate a little too and find that when removing "showimage" example compilation from Makefile, then I was able to compile SDL_image. (The error on libpng12.so is during showimage tool link.) But if think your solution is cleaner
;-)

Quoted 4 lines

I had to change the sdl.mk for SDL adding the following line to configure:
--disable-video-directfb

ok ,thanks for the tip !

Quoted 1 line

I am now having problems compiling SDL_ttf ...

I had problems too :-). I suppose you have the same: missing OpenGL library. I was able to compile SDL_ttf (2.0.8) when adding the following options to configure:

        --disable-sdltest
	--without-x
	--disable-opengl

I attach my SDL_ttf makefile if it can help you. Let me know if it solves your problem !

regards,
Julien

#4 lore raw

Hi,

I have tried your "trick" for SDL_image compilation and even if I put the LDFLAGS you advised I always have the same link error (/usr/lib/libpng12.so pb)

Are you sure it was the only thing you changed ?

Thanks,
Julien

Quoting Claudio Leonel <[email protected]>:

Quoted 10 lines
Quoted 10 lines
Quoted 8 lines

I was using buildroot version 20061111 and managed to compile SDL_image including the following flags (LDFLAGS) for the linker.

$(SDL_IMAGE_DIR)/.compiled: $(SDL_IMAGE_DIR)/.configured

	$(MAKE) LDFLAGS=$(STAGING_DIR)/lib/libpng12.so -C $(SDL_IMAGE_DIR)
	touch $(SDL_IMAGE_DIR)/.compiled