-
-
Notifications
You must be signed in to change notification settings - Fork 113
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:
- Boost: ok with precompiled libs: http://www.boostpro.com/download/
- GMP: Ok with precompiled libs (cf CGAL) but no GMPXX support (to investigate)
Short (uncertain) tutorial to compile DGtal in Visual Studio 2013 on Windows 7/8 64b:
- Uncompress le folder (from http://sourceforge.net/projects/boost/files/boost/ ) into your API folder ( C:\Api\boost_1_53_0 for example)
- Execute http://boost.teeks99.com/ on this same folder, and rename lib64/ to lib/
- Install Cmake : http://www.cmake.org/cmake/resources/software.html (answer "Yes" when it ask to set it in the PATH for all users).
- Install Github for Windows (not obligatory, but it simplify) http://windows.github.com/ and configure it with your GitHub account.
- Add to PATH :
- "BOOST_INCLUDEDIRS C:\Api\boost_1_53_0\boost"
- "BOOST_ROOT C:\Api\boost_1_53_0"
- Do "cmake .." in the build/ folder of DGtal (create it if necessary)
- Open "DGtal.sln" generated in build/ folder of DGtal
- (( Add the path "$BOOST/boost" on projects DGtal and DGtalIO ))
- (( Check if they return some .lib (and not .dll) when compiling ))
- (( Check if we are in x64 and not in Win32 ))
- Choose in "Properties > C++ > General > Multi-processor compilation" -> "Yes (/MP)"