Skip to content

Building bit7z

Riccardo edited this page Apr 23, 2016 · 6 revisions

Building Requirements

  • OS: Windows
  • Compiler: MSVC 2012/2013/2015
  • Build Automation: qmake (used only to maintain the project, bit7z does not depend on Qt libraries!)
  • Third-party libraries: 7z SDK (at least version 9.20)

Note: the 7z SDK must be placed in the path "%PROJECT_ROOT%/lib/7zSDK/".

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