-
Notifications
You must be signed in to change notification settings - Fork 2
How to build
ikopylov edited this page Nov 13, 2015
·
1 revision
- CMake v2.8 or newer: https://cmake.org/
- LibJpeg-turbo v1.4.0
- LibPng v1.6.17 + ZLib
- 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.
- Open generated solution in Visual Studio.
- Change a solution configuration to 'Release'.
- Build 'ALL_BUILD' target and then 'INSTALL' target.
- Binaries and header files will be in 'install' directory.
- Open terminal and go to 'src' directory
- Install dependencies: libjpeg-turbo-devel, libpng-devel.
- Run 'cmake -DCMAKE_BUILD_TYPE=Release .'
- Run 'make build_all'
- Run 'make install'
- 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