gree / lwf

LWF - Lightweight SWF
http://gree.github.com/lwf/
zlib License
627 stars 167 forks source link

Can't install rb-img gem to use swf2lwf #103

Closed efusien closed 9 years ago

efusien commented 9 years ago

I get an error while trying to install the 2nd gem under lwf/tools/swf2lwf. The gem rb-img-0.0.9.gem failed to install. See errors below.

Ruby version: ruby 2.0.0p598 (2014-11-13) [x64-mingw32].

$ gem install .\gems\rb
-img-0.0.9.gem
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing .\gems\rb-img-0.0.9.gem:
        ERROR: Failed to build gem native extension.

    C:/Ruby200-x64/bin/ruby.exe extconf.rb
checking for zlib.h... no
checking for png.h... no
checking for jpeglib.h... no
checking for main() in -lz... no
checking for main() in -lpng... no
checking for main() in -ljpeg... no
creating Makefile

make "DESTDIR="
generating img-x64-mingw32.def
compiling img.c
In file included from c:/Ruby200-x64/include/ruby-2.0.0/ruby/win32.h:40:0,
                 from c:/Ruby200-x64/include/ruby-2.0.0/ruby/defines.h:153,
                 from c:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:70,
                 from c:/Ruby200-x64/include/ruby-2.0.0/ruby.h:33,
                 from img.c:11:
c:\devkit\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-m
ingw32/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
img.c:13:17: fatal error: png.h: No such file or directory
compilation terminated.
make: *** [img.o] Error 1

Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rb-im
g-0.0.9 for inspection.
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rb-img-0.0.9/ext/img/g
em_make.out
efusien commented 9 years ago

Duplicate of https://github.com/gree/lwf/issues/93