Diamond Editor  1.5.0
Building for Windows

This information pertains to building Diamond to run on Windows.

Diamond was built using CMake 3.8.

Utilities

We recommend installing this version of MSYS, which provides GNU Make and other tools designed to work with the MinGW version of GCC. The same version is used for MSYS on 32-bit and 64-bit systems.

MSYS Version msys+7za+wget+svn+git+mercurial+cvs-rev13.7z MSYS

Compiler

Diamond 32-bit and 64-bit are built using GCC version 7.3.0 from MinGW.

The following link is to our web site. From there you will find links to the version of MingGW used to build CopperSpice and Diamond. MinGW Builds

Building Diamond

  • Ensure the CopperSpice libraries are installed   CopperSpice Pre-Built Binaries
  • Download Diamond source and unpack the files to [your_path]\diamond   Diamond Source
  • Download Hunspell source and unpack the files to [your_path]\hunspell   Hunspell Source

    # Hunspell is built using Autotools
    # configure step
    mkdir build
    cd build
    ../configure --prefix=`pwd`/../hunspell_lib cxxflags=-o2
    # build step
    make install
    # copy files to diamond
    path=/c
    mkdir -p $path/diamond/hunspell_lib/bin
    mkdir -p $path/diamond/hunspell_lib/include
    mkdir -p $path/diamond/hunspell_lib/lib
    cp hunspell_lib/bin/*.dll $path/diamond/hunspell_lib/bin
    cp hunspell_lib/include/hunspell/* $path/diamond/hunspell_lib/include
    cp hunspell_lib/lib/*.dll.a $path/diamond/hunspell_lib/lib
  • From a bash prompt in [your_path]\diamond run the following commands to build and install
    cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=[path_to_copperspice] .
    ninja install