How can I add zlib to an existing installation of Qt. I m pretty new in this so please give me detailed description! Thanks for your help in advance!
+3
A:
If you want to use zlib for compression/uncompression, use qCompress/qUncompress.
Roku
2010-10-23 08:02:24
no actually i want add it so that i can use qyazip fro compressing directories, so.. :(
oDx
2010-10-24 13:58:14
+1
A:
zlib is contained in the core Qt libraries. If you want to use the zlib functions in a Qt program, you only have to include zlib.h which is in src/3rdparty/zlib. See e.g. the implementation of QByteArray in src/corelib/tools.
If you want to use qyazip, just add the library to your project. It is based on the Qt libraries. Take care to build the correct qyazip library that corresponds to your Qt installation.
hmuelner
2010-10-25 10:27:25