Skip to content

Build on Windows

Jérémy Levallois edited this page Jun 25, 2014 · 4 revisions

In this page, we detail information for build and issues on windows.

Visual Studio:


Short (uncertain) tutorial to compile DGtal in Visual Studio 2013 on Windows 7/8 64b:

  1. Uncompress le folder (from http://sourceforge.net/projects/boost/files/boost/ ) into your API folder ( C:\Api\boost_1_53_0 for example)
  2. Execute http://boost.teeks99.com/ on this same folder, and rename lib64/ to lib/
  3. Install Cmake : http://www.cmake.org/cmake/resources/software.html (answer "Yes" when it ask to set it in the PATH for all users).
  4. Install Github for Windows (not obligatory, but it simplify) http://windows.github.com/ and configure it with your GitHub account.
  5. Add to PATH :
  6. "BOOST_INCLUDEDIRS C:\Api\boost_1_53_0\boost"
  7. "BOOST_ROOT C:\Api\boost_1_53_0"
  8. Do "cmake .." in the build/ folder of DGtal (create it if necessary)
  9. Open "DGtal.sln" generated in build/ folder of DGtal
  10. (( Add the path "$BOOST/boost" on projects DGtal and DGtalIO ))
  11. (( Check if they return some .lib (and not .dll) when compiling ))
  12. (( Check if we are in x64 and not in Win32 ))
  13. Choose in "Properties > C++ > General > Multi-processor compilation" -> "Yes (/MP)"