![]() Note that the test suite looks for the quazip library in the “quazip” folder of the project (“./quazip”), but you may wish to use LIBS for some systems (Windows often puts the library in the separate “debug” or “release” directory). $ cd /wherever/quazip/source/is/quazip-x.y.z/qztest On other platforms it's essentially the same process, maybe with some qmake adjustments not specific to QuaZIP itself. Sometimes you can get away with using zlib library bundled into Qt, but usually you need at least its headers.īuilding, testing and installing Note: Instructions given in this section assume that you are using some UNIX dialect, but the build process should be very similar on win32-g++ platform too. See the NEWS.txt file supplied with the distribution. In theory, older versions might work as well, but aren't guaranteed to. ![]() It should work fine on any platform supported by Qt 4.6.2 or later. QuaZIP is regularly tested on the following platforms: Older downloads are available from QuaZIP project's page at. “quazip/doc” is where Doxygen input is, along with the header files.“doc” in the project's root is where Doxygen output is.If you don't have Doxygen installed, you can still read offline docs in the “quazip/doc” subdir and in the header files. Just run it from the project directory and it will create the “doc” directory for you. The documentation you're reading right now can be build with the “doxygen” tool if you have one installed. The latest downloads are available from the GitHub page. You can even write ZIP files to a sequential devices like TCP sockets, although some limitations apply in this case. With QuaZIP, both ZIP files and files inside ZIP archives can be accessed with QIODevice API. Or you could call it an implementation of the Adapter pattern. Technically speaking, QuaZIP is a simple C++ wrapper around Minizip. ![]() Therefore, wouldn't it be useful if you could open a QIODevice that would write directly to a file in a ZIP archive? Or read from one? That's exactly where QuaZIP comes into the picture. There are a lot of classes that accept QIODevice to write some useful things to it-you could serialize XML to a QIODevice, for example. Namely, in Qt there is an abstract class called QIODevice, which is Qt-speak for “input/output stream”. Of course, you can do it with Minizip, but Minizip has its own interface which isn't exactly compatible with Qt. One thing Qt can't do out-of-the-box is write and read ZIP archives. If Java is “write once, run everywhere”, Qt is “write once, compile everywhere” which is not that bad either. With Qt, you can create rich GUIs, perform networking activities, accessing databases and much much more. Qt is a very powerful cross-platform C++ library with a lot of useful modules and classes. Minizip, or Gilles Vollant's ZIP/UNZIP package is a simple C library for creating, appending and reading ZIP archives.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |