Skip to content

Building bit7z

Riccardo edited this page Mar 31, 2017 · 6 revisions

Building Requirements

  • OS: Windows
  • Compiler: MSVC 2010/2012/2013/2015
  • Build Automation: qmake (used only to maintain the project, bit7z does not depend on Qt libraries!)
  • Third-party libraries: 7-zip SDK (v16.04) (http://7-zip.org/a/7z1604-src.7z)

Note: the 7-zip SDK must be placed in the path "%PROJECT_ROOT%/lib/7zSDK/". If you use the git repository, the SDK can be downloaded as a git submodule.

The 7zSDK folder should look like this:

How to Build

In order to build this library, you can choose one of the following methods:

  • build the project bit7z.pro using Qt Creator
  • run the build.cmd script in the project root folder
  • run qmake bit7z.pro and then nmake

Note: before using the build.cmd script, you should have the paths of Qt 5 (to use qmake) and MSVC in the PATH environment variable.

Example (x64):

set PATH=%PATH%;C:\path\to\x64\qt5\bin
vcvarsall amd64
build x64

Example (x86):

set PATH=%PATH%;C:\path\to\x86\qt5\bin
vcvarsall x86
build x86
Clone this wiki locally