Diamond Editor  2.0.0
Building for Windows (MinGW)

This information pertains to building the Diamond Editor on Windows using MinGW.

Utilities

We recommend installing our distribution of MinGW-W64 which provides a C++ compiler and the majority of the POSIX utilities commonly used by developers.

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