Diamond Editor  1.5.0
Building

Diamond was compiled with the CopperSpice libraries using the CMake build system. To build Diamond from source all of the appropriate libraries and tools must be 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 will vary from 1.3 to 1.7 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

Version 1.7 is used for both 32-bit and 64-bit.

  • 32-bit dll for Hunspell is included with the Diamond 32-bit pre-built binary installer
  • 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 1.7 package.

Compiler Specifics

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