To build RagiMagick on a MacOS, follow the instructions under the below.
install with brew.
$ brew install cmake
$ brew install nasm
move to the directory which has CMakeLists.txt .
$ pwd
/${PATH_TO_RAGIMAGICK}
$ ls
CMakeLists.txt README.md ..etc
$ mkdir build
$ cd build
move to external_lib
directory
run ./setup.sh
$ pwd
/${PATH_TO_RAGIMAGICK}/external_lib
$ chmod +x setup.sh
$ ./setup.sh
run cmake
command to create Makefile
.
$ pwd
/${PATH_TO_RAGIMAGICK}/build
$ cmake ../
run make
or cmake --build . -j <jobs>
command to create a binary file.
$ ls
Makfile ...etc
$ make
$ ls
RagiMagick ...etc
To build RagiMagick on a Windows, follow the instructions under the below.
CMake
ttps://cmake.org/download/
Binary distributions
Windows win64-x64 Installer
NASM
ttps://www.nasm.us/pub/nasm/releasebuilds/2.14.02/win64/
*-installer-x64.exe
LLVM
ttp://releases.llvm.org/download.html#8.0.0
Pre-Built Binaries
Windows (64b-it)
move to the directory which has CMakeLists.txt .
$ pwd
/${PATH_TO_RAGIMAGICK}
$ ls
CMakeLists.txt README.md ..etc
$ mkdir build
$ cd build
move to external_lib
directory
run ./setup.sh
$ pwd
/${PATH_TO_RAGIMAGICK}/external_lib
$ chmod +x setup.sh
$ ./setup.sh
run cmake
command to create Visual Studio Solution and Project
files.
$ pwd
/${PATH_TO_RAGINMAGICK}/build
$ cmake ../ -T llvm
run cmake --build . -j <jobs>
command to create a binary file.
$ ls
RagiMagick.sln ...etc
$ cmake --build . -j 4
$ ls
RagiMagick ...etc