minizip lib
Re: minizip lib
this is great! thanks ts-soft.
A couple of questions...
what language is your minizip.lib written in? C?
Also, in the event you no longer support this would you release the source to the lib?
A couple of questions...
what language is your minizip.lib written in? C?
Also, in the event you no longer support this would you release the source to the lib?
Re: minizip lib
The source for the static lib is here available.
The PureBasic Source to use this static lib is in the downloadpackage.
The PureBasic Source to use this static lib is in the downloadpackage.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: minizip lib
you are the man, thanks!ts-soft wrote:The source for the static lib is here available.
The PureBasic Source to use this static lib is in the downloadpackage.
Re: minizip lib
Hello,
Is there a library for linux which is something like this?
Thanks.
Is there a library for linux which is something like this?
Thanks.
Re: minizip lib
I have come back to a project to make changes, it was originally done in an earlier version of PB - using the latest, I get:
POLINK: error: Unresolved external symbol 'SYS_AllocateString'.
POLINK: error: Unresolved external symbol 'PB_CallFunctionFast2'.
POLINK: fatal error: 2 unresolved external(s).
any ideas? or is the lib not compatible with 4.61?
POLINK: error: Unresolved external symbol 'SYS_AllocateString'.
POLINK: error: Unresolved external symbol 'PB_CallFunctionFast2'.
POLINK: fatal error: 2 unresolved external(s).
any ideas? or is the lib not compatible with 4.61?
Re: minizip lib
Use the includefile, the userlib is not up to date!
Or use tailbite to create a userlib.
Or use tailbite to create a userlib.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: minizip lib
ts-soft wrote:Use the includefile, the userlib is not up to date!
Or use tailbite to create a userlib.
Thanks! That did it.
Re: minizip lib
Update
Bugfix-Release:
fixed division by zero error
fixed nullbyte files not extracted
fixed examples static lib not found
Bugfix-Release:
fixed division by zero error
fixed nullbyte files not extracted
fixed examples static lib not found
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: minizip lib
I tried this to add a folder
But i get "division by zero forbidden".
Any advice?
Code: Select all
IncludePath "..\"
XIncludeFile "minizip_include.pbi"
Define.s zip
zip = "H:\ABC\test.zip"
Define ff = ZIP_FileCreate(zip.s)
If ff
ZIP_DirAdd(ff,"H:\ABC\ABC\",#Z_DEFAULT_COMPRESSION,0)
ZIP_FileClose(ff)
EndIf
Any advice?
ARGENTINA WORLD CHAMPION
Re: minizip lib
You are using the latest version as include?
The debugger doesn't show the line with division by zero?
The dir for packing is empty?
Okay, i have added blind some sanitycheck, please download the latest version.
Greetings - Thomas
The debugger doesn't show the line with division by zero?
The dir for packing is empty?
Okay, i have added blind some sanitycheck, please download the latest version.
Greetings - Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: minizip lib
Since purebasic has "lost" some important zip functionality (e.g. adding a file to a packed file), I searched for an alternative - and minizip looks really good (thank you, Thomas).
I would recommend to update the pbi file to be usable for the latest versions of Purebasic, I changed the three CRC32Fingerprint() and CRC32FileFingerprint() calls and added the following lines to the code...
I would recommend to update the pbi file to be usable for the latest versions of Purebasic, I changed the three CRC32Fingerprint() and CRC32FileFingerprint() calls and added the following lines to the code...
Code: Select all
:
CompilerIf #PB_Compiler_Version<540
Macro Fingerprint(source,size,dummy)
CRC32Fingerprint(source,size)
EndMacro
Macro FileFingerprint(file,dummy)
CRC32FileFingerprint(file)
EndMacro
CompilerElse
UseCRC32Fingerprint()
CompilerEndIf
:
result= ... #Z_DEFLATED,Compression,0,15,8,0,ZIP_Password,FileFingerprint(Filename,#PB_Cipher_CRC32))
result= ... #Z_DEFLATED,Compression,0,15,8,0,ZIP_Password,FileFingerprint(ZIP_FileList(),#PB_Cipher_CRC32))
result= ... #Z_DEFLATED,Compression,0,15,8,0,ZIP_Password,Fingerprint(*source,sourceLen,#PB_Cipher_CRC32))
: