Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 1.95 KB

WindowsUsage.md

File metadata and controls

76 lines (57 loc) · 1.95 KB
  1. Install DMD

  2. Install implib. It's contained in the basic utilities

  3. Install Qt 5.5 and from the installer components select

Qt -> Qt5.5 -> MinGW 4.9.2 32bit
Qt -> Tools -> MinGW 4.9.2
  1. Install CMake 3

  2. Modify your PATH system variable and check that you don't have any reference to any build tool in your system. So no path to DMD, Tools, Qt, previous MinGW installation or whatever

  3. Create a new file on your desktop and call it env.bat

  4. Open it with notepad, add the following text and save

@echo off
REM COLOR 0A
SET QT_PATH=C:\Tools\Qt\5.5\mingw492_32\bin
SET MINGW_PATH=C:\Tools\Qt\Tools\mingw492_32\bin
SET IMPLIB_PATH=C:\Tools\D\dm
SET DMD_PATH=C:\Tools\D\dmd2\windows\bin
SET DUB_PATH=C:\Tools\dub
SET CMAKE_PATH=C:\Tools\CMake\bin
SET DOTHERSIDE_LIB_PATH=C:\Tools\DOtherSideLib
SET PATH=%QT_PATH%;%MINGW_PATH%;%IMPLIB_PATH%;%DMD_PATH%;%DUB_PATH%;%CMAKE_PATH%;%DOTHERSIDE_LIB_PATH%;%PATH%
cmd
  1. Adapt the previous content with your system paths for the tools

  2. Double click on the .bat file. A cmd prompt should open

  3. Clone the DOtherSide project from git and navigate to its directory

  4. From the DOtherSide directory type the following command

$) mkdir build
$) cd build
$) cmake -G "MinGW Makefiles" ..
$) mingw32-make
$) cd src
  1. You should have builded the libDOtherSide.dll

  2. Rename it to DOtherSide.dll

$) mv libDOtherSide.dll DOtherSide.dll
  1. Invoke implib for generating a .lib file compatible with the DMD linker:
$) implib /s DOtherSide.lib DOtherSide.dll
  1. You should now have a DOtherSide.lib file

  2. Move the DOtherSide.dll %DOTHERSIDE_LIB_PATH% you set at point (7)

  3. Move the DOtherSide.lib inside your dmd compiler directory. In my case is "C:\Tools\D\dmd2\windows\lib"

  4. Clone the dqml repository

  5. Navigate to dqml root directory and type:

$) cd examples
$) cd contactapp
$) dub
  1. Profit!! :D