|
| 1 | +# Building ImageMagick on Windows. |
| 2 | + |
| 3 | +This document describes the requirements and instructions to build ImageMagick for Windows on your own machine. |
| 4 | + |
| 5 | +### Requirements |
| 6 | + |
| 7 | +- Visual Studio 2013 (or newer) |
| 8 | +- Git for Windows |
| 9 | +- AMD APP SDK (optional for OpenCL support) |
| 10 | + |
| 11 | +### Install Visual Studio dependencies |
| 12 | + |
| 13 | +To build ImageMagick with Visual Studio the following components should be installed: |
| 14 | + |
| 15 | +- Desktop development with C++ (workload) |
| 16 | +- Visual C++ ATL for x86 and x64 |
| 17 | +- Visual C++ MFC for x86 and x64 |
| 18 | +- Windows XP support for C++ (optional if the output needs to run on Windows XP) |
| 19 | + |
| 20 | +Nameing of these components might differ between version of Visual Studio. The example above use the Visual Studio |
| 21 | +2017 names. |
| 22 | + |
| 23 | +### Clone the dependencies |
| 24 | + |
| 25 | +The ImageMagick library is build with a number of third party libraries. Run `CloneRepositories.cmd` to clone |
| 26 | +these libraries and the ImageMagick library. |
| 27 | + |
| 28 | +### Build configure.exe |
| 29 | + |
| 30 | +One of the folders that was created in the previous step is called `VisualMagick` and this folder contains a |
| 31 | +folder called `configure`. This folder contains a solution `configure.sln`. Open this solution with Visual Studio |
| 32 | +and start a `Release` build of the project. This will create a file called `configure.exe` in the folder. Running |
| 33 | +this program will start a Wizard that allows configuration of ImageMagick and its individual components. |
| 34 | + |
| 35 | +### Build ImageMagick |
| 36 | + |
| 37 | +Depending on which options where chosen when running `configure.exe` one of the following solutions will be created |
| 38 | +in the `VisualMagick` folder: |
| 39 | + |
| 40 | +- VisualDynamicMT.sln (Dynamic Multi-threaded DLL runtimes) |
| 41 | +- VisualStaticMTD.sln (Static Multi-threaded DLL runtimes) |
| 42 | +- VisualStaticMT.sln (Static Multi-threaded runtimes) |
| 43 | + |
| 44 | +Open the solution to start building ImageMagick. The binaries will be created in the `VisualMagick\bin` folder. |
0 commit comments