PDA

View Full Version : Quazip Installation Issues



frankiefrank
19th April 2011, 14:07
Has anyone tired installing Quazip (0.3)?

http://sourceforge.net/projects/quazip/

I'm using QT 4.7.2, and zlib (which is a requirement for Quazip) is in my 3dparty folder. I'm opening the project with VS 2008 and I've added the the zlib path to the Additional Include folders in the project's properties.

I'm getting all kinds of syntax errors, which means obviously I'm doing something wrong.

Anyone done it in the same method and can tell me if it works?

wysota
19th April 2011, 14:15
Post the first error you get. Note that Win32/MSVC is not listed as a supported platform for QuaZIP so it might not work at all.

frankiefrank
19th April 2011, 16:16
This page, also sourceforge, has win32 listed:
http://quazip.sourceforge.net/

I'm opening the project file for quazip - adding the <my qt version>\src\3rdparty\zlib to the additional includes.

First error:
qazip\quazip-0.3\quazip\crypt.h(38) : error C2143: syntax error : missing ';' before 'type'

wysota
19th April 2011, 21:40
This page, also sourceforge, has win32 listed:
http://quazip.sourceforge.net/
Yes, but win32-g++ and not win32-msvc.



First error:
qazip\quazip-0.3\quazip\crypt.h(38) : error C2143: syntax error : missing ';' before 'type'
And what's the contents of crypt.h:38?

frankiefrank
20th April 2011, 09:21
unsigned temp;

A collegue is maybe making some progress - I'll update if this is resolved.

wysota
20th April 2011, 09:54
And the previous line?

frankiefrank
20th April 2011, 09:57
(void) pcrc_32_tab;

falconium
21st April 2011, 23:42
I'm also using the same QuaZIP under Qt and MinGW, but works:


/************************************************** *********************
* Return the next byte in the pseudo-random sequence
*/
static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab)
{
(void) pcrc_32_tab; /* avoid "unused parameter" warning */
unsigned temp; /* POTENTIAL BUG: temp*(temp^1) may overflow in an
* unpredictable manner on 16-bit systems; not a problem
* with any known compiler so far, though */

temp = ((unsigned)(*(pkeys+2)) & 0xffff) | 2;
return (int)(((temp * (temp ^ 1)) >> 8) & 0xff);
}

frankiefrank
22nd April 2011, 09:45
Thanks for your message. For some reason we couldn't get it working.

I've decided to run 7-zip using QProcess - suits my needs.