Diamond Editor  2.0.0
Building

Diamond was compiled with the CopperSpice libraries using the CMake build system. To build Diamond from source you will need to ensure the reqired libraries and tools are installed on your development system.

CopperSpice Libraries

The CopperSpice binary download contains the DLLs or shared libraries needed to compile and distribute Diamond.

  • Click on the following link and then select the distribution for your target platform   CopperSpice Pre-Built Binaries
  • Install the distribution or run the installer

Hunspell Libraries

Diamond uses the Hunspell library for spell checking.

Linux

The exact version of Hunspell will vary depending on your platform and OS version. Use your platform package manager to install the appropriate Hunspell development libraries.

Platform Package
Debian libhunspell-dev
Fedora hunspell-devel
Ubuntu libhunspell-dev
Arch hunspell
Centos hunspell-devel
FreeBSD hunspell

Windows

Hunspell Version 1.7 is used on Windows.

  • 64-bit dll for Hunspell is included with the Diamond 64-bit pre-built binary installer
  • Hunspell 1.7 source files can be downloaded from our repository   Hunspell Source

Mac OS X

Use homebrew to install the Hunspell package.

brew install hunspell pkg-config

Homebrew can be downloaded and installed from Homebrew

Build Details

The following sections detail the utilities and packages required for each operating system.

Compile & Link

To configure and build Diamond using CMake use the following commands.

cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=[path_to_copperspice] .
ninja install