SDL and zziplib

Hi

I’m trying to create a archive file to store my images and sounds in. I am
trying to follow the sdl rwops tutorial found here:

http://www.kekkai.org/roger/sdl/rwops/rwops.html

It mentions that you need to use the zziplib library. This is where I am
running into problems. I can compile zlib support into my application, but
for the life of me, I can’t get zziplib working.

http://zziplib.sourceforge.net/

Has anyone compiled zziplib into a win32 *.lib file so I can link it into my
project. I have linux librarys, but can’t get it to compile on win32 (which
is my main development platform).

Once that is done, then I can use sdl rwops to read the file from memory,
straight out of the archive file.

http://zziplib.sourceforge.net/zzip-sdl-rwops.html

Many thanks.

David Berry—
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 18/02/02


IMPORTANT: This e-mail, including any attachments, may contain private or
confidential information. If you think you may not be the intended
recipient, or if you have received this e-mail in error, please contact the
sender immediately and delete all copies of this e-mail. If you are not the
intended recipient, you must not reproduce any part of this e-mail or
disclose its contents to any other party.


I am sorry if this is a blocking point here - it’s just that I do not use
win32 as my development platform, and do not own a windows compiler either.
I use a cross gcc to create all my win32 programs, but of course these
do not create a *.lib to be used for VC and similar compilers (I guess
you wanted that). I did check with the free borland 5.5 some time ago
that it will however build with the other windows compiler too, I’ll
attach the makefile. If someone on this list would be willing to maintain
a .lib file, I’d be very pleased to put it onto zziplib.sf.net for
download, so that all can benefit from it.

good luck, Guido

Es schrieb “Berry, David”:

Hi

I’m trying to create a archive file to store my images and sounds in. I am
trying to follow the sdl rwops tutorial found here:

http://www.kekkai.org/roger/sdl/rwops/rwops.html

It mentions that you need to use the zziplib library. This is where I am
running into problems. I can compile zlib support into my application, but
for the life of me, I can’t get zziplib working.

http://zziplib.sourceforge.net/

Has anyone compiled zziplib into a win32 *.lib file so I can link it into my
project. I have linux librarys, but can’t get it to compile on win32 (which
is my main development platform).

Once that is done, then I can use sdl rwops to read the file from memory,
straight out of the archive file.

http://zziplib.sourceforge.net/zzip-sdl-rwops.html

Many thanks.

David Berry

-------------- next part --------------

.path.c = …\zziplib

BORLAND = c:\borland\bcc55

unsignedchar = -K

omitframepointer = -k-

nowritestrings = -d # actually, merge duplicate strings
warnall = -w
optlevel = -O2 # optimize for speed
optmdll = -tWMD # multithreaded dll
optcons = -tCR # a console-windows-app
OPTS = $(unsignedchar) $(nowritestrings) $(optmdll) $(optlevel) $(warnall)

INCLUDES = -I.;…;$(BORLAND)\include

CFLAGS = $(INCLUDES) $(OPTS)
LFLAGS = -L$(BORLAND)\lib -ap # open console
LD=ilink32 -q
IMPLIB=implib

libzzip_la_SOURCES =
zzip-zip.c
zzip-file.c
zzip-dir.c
zzip-stat.c
zzip-info.c
zzip-err.c
libzzip_la_headers =
zzip-stdint.h
zzip-file.h
zzip.h
zziplib.h
zzipformat.h
zzip-conf.h
zzip-msvc.h

libzzip_DLL = $(libzzip_la_SOURCES:.c=.obj)
libzzip.dll : $(libzzip_DLL)
$(LD) -Tpd -Gi c0d32 $(libzzip_DLL) , $@ , , z import32 cw32i
libzzip.lib : libzzip.dll
$(IMPLIB) -c -a $<

$(libzzip_DLL) : $(libzzip_la_headers)

zzcat.obj : zzcat.c
$(CC) $(optcons) $(nowritestrings) -c $<
zzcat.exe : zzcat.obj
$(LD) -ap $(LFLAGS) c0x32 $(zzcat_EXE) , $@ , , libzzip z import32 cw32i

.c.obj :
$(CC) $(CFLAGS) -c $<
# builtins.mak uses $&.c which is fails with vpath

.c.i :
cpp32 $(CFLAGS) $<