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