Ich muss gestehen, nicht gleich gesehen zu haben, dass es sich hier um zlib handelt (vor dem Code). Lade doch einfach hier http://www.zlib.net/ den Quellcode herunter und baue dir die lib selber.
Gruß,
badday
Gruß,
badday
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Die selbst gebaute zlib ist eingebunden!Compiler: Default compiler
Building Makefile: "Makefile.win"
Executing make clean
rm -f miniunz.o Test02.exe
gcc.exe -D__DEBUG__ -c main02.c -o miniunz.o -I"C:/BOOK/Dev-Cpp/include" -pg -g3
gcc.exe -D__DEBUG__ miniunz.o -o "miniunz.exe" -L"C:/BOOK/Dev-Cpp/lib" "zlib.a" -lgmon -pg -g3 // Meine eigene Lib!
miniunz.o(.text+0x2c9): In function `do_list':
miniunz.c:180: undefined reference to `unzGetGlobalInfo'
miniunz.o(.text+0x368):miniunz.c:192: undefined reference to `unzGetCurrentFileInfo'
miniunz.o(.text+0x546):miniunz.c:238: undefined reference to `unzGoToNextFile'
miniunz.o(.text+0x5ed): In function `do_extract_currentfile':
miniunz.c:267: undefined reference to `unzGetCurrentFileInfo'
miniunz.o(.text+0x735):miniunz.c:309: undefined reference to `unzOpenCurrentFilePassword'
miniunz.o(.text+0x96f):miniunz.c:375: undefined reference to `unzReadCurrentFile'
miniunz.o(.text+0xa7c):miniunz.c:400: undefined reference to `unzCloseCurrentFile'
miniunz.o(.text+0xaae):miniunz.c:407: undefined reference to `unzCloseCurrentFile'
miniunz.o(.text+0xaf9): In function `do_extract':
miniunz.c:426: undefined reference to `unzGetGlobalInfo'
miniunz.o(.text+0xb5e):miniunz.c:439: undefined reference to `unzGoToNextFile'
miniunz.o(.text+0xbbb): In function `do_extract_onefile':
miniunz.c:459: undefined reference to `unzLocateFile'
miniunz.o(.text+0xf07): In function `main':
miniunz.c:552: undefined reference to `fill_win32_filefunc'
miniunz.o(.text+0xf1c):miniunz.c:553: undefined reference to `unzOpen2'
miniunz.o(.text+0xf59):miniunz.c:561: undefined reference to `unzOpen2'
miniunz.o(.text+0x108e):miniunz.c:592: undefined reference to `unzClose'
collect2: ld returned 1 exit status
make.exe: *** [Test02.exe] Error 1
Execution terminated
Ich habe die Beispiele nicht gefunden! Wie heissen die Dateien?Ich habe es mir mal heruntergeladen. Da gibt es auch ein paar Beispiele, die meiner Meinung nach gut kommentiert sind.
Geh auf die Seite, die badday gepostet hat (http://www.zlib.net/).Ich habe die Beispiele nicht gefunden! Wie heissen die Dateien?
OMGHallo, ich bin es wieder. Das klappt zwar wunderbar, aber ich kann nur eine Datei pro Archiv speichern!
Das genügt leider nicht.
Ich will ZIP oder was anderes. Dies ist leider nur .gz und dabei ist die Kompression zwar gross, aber nur eine Datei pro Datei erlaubt.
z7 würde auch noch gehen
> cd zlib-1.2.3
> make -f win32\Makefile.gcc
gcc -O3 -Wall -c -o adler32.o adler32.c
gcc -O3 -Wall -c -o compress.o compress.c
gcc -O3 -Wall -c -o crc32.o crc32.c
gcc -O3 -Wall -c -o deflate.o deflate.c
gcc -O3 -Wall -c -o gzio.o gzio.c
gcc -O3 -Wall -c -o infback.o infback.c
gcc -O3 -Wall -c -o inffast.o inffast.c
gcc -O3 -Wall -c -o inflate.o inflate.c
gcc -O3 -Wall -c -o inftrees.o inftrees.c
gcc -O3 -Wall -c -o trees.o trees.c
gcc -O3 -Wall -c -o uncompr.o uncompr.c
gcc -O3 -Wall -c -o zutil.o zutil.c
ar rcs libz.a adler32.o compress.o crc32.o deflate.o gzio.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
windres --define GCC_WINDRES -o zlibrc.o win32/zlib1.rc
dllwrap --driver-name gcc --def win32/zlib.def \
--implib libzdll.a -o zlib1.dll adler32.o compress.o crc32.o deflate.o gzio.o infback.o inffast.o inflate.o inftrees.o trees.o unc
ompr.o zutil.o zlibrc.o
strip zlib1.dll
gcc -O3 -Wall -c -o example.o example.c
gcc -s -o example example.o libz.a
gcc -O3 -Wall -c -o minigzip.o minigzip.c
gcc -s -o minigzip minigzip.o libz.a
gcc -s -o example_d example.o libzdll.a
gcc -s -o minigzip_d minigzip.o libzdll.a
> cd contrib\minizip
> make CC=gcc
gcc -O -I../.. -o miniunz miniunz.o unzip.o ioapi.o iowin32.o ../../libz.a
gcc -O -I../.. -o minizip minizip.o zip.o ioapi.o iowin32.o ../../libz.a