Trying to build ruby on visual studio with zlib

Hi, I’m trying to build ruby on visual studio with zlib and I’m having
problems with it.

I have prepared everything to build it but I don’t know how to specify
where the zlib library and headers are.

I have the source code in $(ProjectDir)/…
I am buildin in $(ProjectDir)/$(Platform)/$(Configuration)
I build with command line, and I have it like this

mkdir $(Platform)$(Configuration)
cd $(Platform)$(Configuration)
…\win32\configure.bat --target=i386-mswin32
–prefix=$(ProjectDir)$(Platform)$(Configuration)\bin

If I go to ext/zlib, I can execute
extconf.rb
–with-zlib-lib=$(ProjectDir)…\zlib-1.2.8\zlib-1.2.8$(Platform)$(Configuration)\lib
–with-zlib-include=$(ProjectDir)…\zlib-1.2.8

and creates the makefile correcly, but I don’t know how to pass zlib lib
and include paths to the configuration script.

I have tried with
…\win32\configure.bat --target=i386-mswin32
–prefix=$(ProjectDir)$(Platform)$(Configuration)\bin
–with-zlib-lib=$(ProjectDir)…\zlib-1.2.8\zlib-1.2.8$(Platform)$(Configuration)\lib
–with-zlib-include=$(ProjectDir)…\zlib-1.2.8

but that doesn’t works

I suppose it has something to do with the ‘–with-ext=“a,b,…”’ option
that is specified in the help command, but I don’t know how to specify
it and the documentation is really bad.

I would be very gratefull if you could help me-

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs