Help getting libpng working with fxruby

Hi,

I am compiling fox toolkit 1.0.23 and fxruby 1.0.13 with vc++6.
Do you have a receipt on how to get libpng working with fxruby ?
I have all the libs compiled.

C:\compilar\fxruby>ruby install.rb config --make-prog=nmake – \ --with-fox-incl
ude=C:\compilar\fox\include \ --with-fox-lib=C:\compilar\fox\lib \ --with-fxscin
tilla-include=C:\compilar\fxs\include \ --with-fxscintilla-lib=C:\compilar\fxs\l
ib
install.rb: entering config phase…
—> lib
—> lib/fox
<— lib/fox
<— lib
—> ext
—> ext/fox
c:/dev/ruby/bin/ruby C:/compilar/fxruby/ext/fox/extconf.rb \ --with-fox-include=
C:\compilar\fox\include \ --with-fox-lib=C:\compilar\fox\lib \ --with-fxscintill
a-include=C:\compilar\fxs\include \ --with-fxscintilla-lib=C:\compilar\fxs\lib
checking for time.h… yes
checking for signal.h… yes
checking for deflate() in -lzlib… yes
checking for png_create_read_struct() in -llibpng… yes
checking for jpeg_mem_init() in -llibjpeg… yes
checking for TIFFSetErrorHandler() in -llibtiff… yes
creating Makefile
—> ext/fox/include
<— ext/fox/include
<— ext/fox
<— ext
install.rb: config done.

But when I run the examples a blank png icon appears instead of the real
icons/images.

Everything is being static linked.

ruby 1.7.3 cvs
windows xp

Thanks,
Joao Pedrosa

Joao Pedrosa wrote:

Hi,

I am compiling fox toolkit 1.0.23 and fxruby 1.0.13 with vc++6.
Do you have a receipt on how to get libpng working with fxruby ?
I have all the libs compiled.

But when I run the examples a blank png icon appears instead of the real
icons/images.

It sounds as though you didn’t compile FOX itself with PNG support
enabled. Please take a look at this page:

http://www.fox-toolkit.org/win32.html

for the section titled “Missing support for JPEG or PNG images”.

Also note that a precompiled version of FXRuby-1.0.13, with FOX
statically linked into it, is already available for download from the
FXRuby home page. The version of FOX built into that installer includes
support for all of the optional bells and whistles (including JPEG,
PNG and TIFF images).

Hope this helps,

Lyle

Thank you Lyle.
It worked.
I missed that info, even though I searched a lot for something like it :slight_smile:

Regards,
Joao Pedrosa