build of zlib with msys

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

build of zlib with msys

gintare
 
 
OS: windows 7
Downloaded Zlib (zlib125.zip)  from gnuwin32.sourceforge.net/packages/zlib.htm
Extracted to c:/files/install/first/first/zlib125
used msys console in folder c:/first/zlib    to run:
1)
c:/files/install/first/first/zlib125/configure
error - can not find zlib.h, although it is in c:/files/install/first/first/zlib125
also suggestion better use win32/Makefile.gcc instead after checking for gcc.
 
 
2)
c:/files/install/first/first/zlib125/configure --with_prefix=/mingw/local
gives the same errors
 
3)
how to use win32/Makefile.gcc?
 
regards,
gintare statkute
 
 
 
 
 

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mingw-msys mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-msys
Reply | Threaded
Open this post in threaded view
|

Re: build of zlib with msys

Bidski
Hi,
 
I have successfully built zlib-1.2.5 under MSYS on Windows 7.
 
Running configure wont work, you do need to run the makefile that it specifies.
 
Follow these steps.
 
1) Enter the MSYS console
2) Navigate to the zlib root directory (if you extracted the files to /mingw/zlib-1.2.5, you must enter that directory).
3) run make -f win32/makefile.gcc
4) run make -f win32/makefile.gcc install BINARY_PATH=/mingw/bin INCLUDE_PATH=/mingw/include LIBRARY_PATH=/mingw/lib
    To run make install you need to set the three variables to where you want things to be installed (I have specified values assuming that /mingw is the prefix).
 
Hope that helps
 
Regards
Bidski
 
 

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mingw-msys mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-msys
Reply | Threaded
Open this post in threaded view
|

Re: build of zlib with msys

Charles Wilson-8
On 7/18/2010 6:04 PM, Bidski wrote:

> Follow these steps.
>  
> 1) Enter the MSYS console
> 2) Navigate to the zlib root directory (if you extracted the files to
> /mingw/zlib-1.2.5, you must enter that directory).
> 3) run make -f win32/makefile.gcc
> 4) run make -f win32/makefile.gcc install BINARY_PATH=/mingw/bin
> INCLUDE_PATH=/mingw/include LIBRARY_PATH=/mingw/lib
>     To run make install you need to set the three variables to where you
> want things to be installed (I have specified values assuming that
> /mingw is the prefix).
>  
> Hope that helps

Bidski and statkute, both of you appear to be attempting to compile a
*native* (that is, win32) version of zlib.  That is a whole different
thing than an "msys" build of zlib (e.g. one that uses, and requires,
the msys-1.0.dll POSIX dll).

Do create an *msys* zlib, you can download this -src package
https://sourceforge.net/projects/mingw/files/MSYS/zlib/zlib-1.2.3-2/zlib-1.2.3-2-msys-1.0.13-src.tar.lzma/download
and simply run the msys-build-zlib script (after editing as appropriate
for the 1.2.5 version of zlib). [NOTE: this only works if you launch the
script from a so-called "msys-developer" shell; that is, you start
msys.bat with a first argument of 'MSYS']

However, I suspect that you don't really want an "MSYS" zlib.

If you want a native, win32 zlib that doesn't rely on the msys posix
dll, then you can *use* an regular MSYS shell to build it. In that case,
bidski's instructions are more-or-less correct.  (I generally use the
configure/Makefile.in process, but that requires modifying some of the
build files first.)

And, if you ARE trying to build a native, win32 zlib and are just using
msys "incidentally" to host the build process, then you're on the wrong
list.  You want mingw-users at lists d0t sourceforge d0t net

--
Chuck

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mingw-msys mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-msys