Skip to content
ikopylov edited this page Nov 13, 2015 · 1 revision

Requirements

  1. CMake v2.8 or newer: https://cmake.org/
  2. LibJpeg-turbo v1.4.0
  3. LibPng v1.6.17 + ZLib

Building on Windows

  1. Go to 'src' directory and run CMake there. Supported generators: Visual Studio 12 2013 and Visual Studio 12 2013 Win64. If you want to use newer version of Visual Studio, you should recompile dependent libraries for that version.
  2. Open generated solution in Visual Studio.
  3. Change a solution configuration to 'Release'.
  4. Build 'ALL_BUILD' target and then 'INSTALL' target.
  5. Binaries and header files will be in 'install' directory.

Building on Linux

  1. Open terminal and go to 'src' directory
  2. Install dependencies: libjpeg-turbo-devel, libpng-devel.
  3. Run 'cmake -DCMAKE_BUILD_TYPE=Release .'
  4. Run 'make build_all'
  5. Run 'make install'
  6. Binaries and header files will be in 'install' directory.

Sample script:

yum install -y libjpeg-turbo-devel libpng-devel
cmake -DCMAKE_BUILD_TYPE=Release -B./build -H./
cd build
make build_all
make install
Clone this wiki locally