Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 2.89 KB

windowsDGtalInstall.md

File metadata and controls

53 lines (41 loc) · 2.89 KB

Installation of Dgtal on Windows

These main steps are based on Visual Studio 2022, and the overall workflow is to generate first a .sln project from cmake command line and then open and build the project under VS 2022. These steps were tested on Windows 10.

Dependancies installation

Install Git:

  • Download and install git if not already present.

Install Cmake:

  • Download cmake
  • During the installation select the installation be sure to select the option to have it the system path:

Zlib installation:

  • Get ZLib source: http://zlib.net/zlib1213.zip (copy past link in new windows since the url is not in https) or here.

  • Unzip the library in the directory of your choice.

  • Open PowerShell.

  • Go to the directory from the unziped library.

  • Do a classical: mkdir build; cd build; cmake..

  • The previous command should have generated the VS project zlib.sln that you can open.

  • Generate the solution and locate from the log the location of the dll library path:

  • Copy the file zconf.h located in zlib1213\zlib-1.2.13\build into the source directory: zlib1213\zlib-1.2.13

Boost installation:

DGtal build

From a powershell:

  • Clone the DGtal project: git clone https://github.com/DGtal-team/DGtal.git
  • Go to the DGtal dir and make the classical: cd DGtal; mkdir build; cd build;
  • Then from the path of the previous steps: cmake .. -DZLIB_LIBRARY="C:\yourChosenPath\zlib1213\zlib-1.2.13\build\Debug\" -DZLIB_INCLUDE_DIR="C:\yourChosenPath\zlib1213\zlib-1.2.13
    This command will generate the VS DGtal project DGtal.sln

From visual studio code:

  • Open the DGtal.sln VS project generated from the previous step.
  • Generate the solution from VS code interface. Capture d’écran 2022-10-21 182709
  • If no error you can now exploit the generated library 🎉.