Skip to content

compiling_Windows

Bruno Levy edited this page Jul 27, 2023 · 5 revisions

Geogram compilation on Windows

Prerequisites

  • git here use 64-bit Git for Windows Setup.
  • Tortoise git here optionnal, adds context menus to file browser, convenient
  • CMake here use cmake-xxxx-windows-x86_64.msi IMPORTANT: select "Add CMake to system path for all users"
  • Visual C++ here use community version

Quick compilation guide

  • git clone --recurse-submodules https://github.com/BrunoLevy/geogram.git (if you installed Tortoise git, right click in current folder, git clone, enter repository address, select recursive checkbox)
  • open Geogram folder
  • double click on configure.bat it should display a message that solution was generated If it is not the case, see Troubleshooting section below.
  • open Build/Windows/Geogram.sln in VisualStudio
  • set Release mode (default is Debug)
  • build solution

This will compile the geogram library as well as demo programs. Demo programs are generated in the Build\Release\bin subdirectory.

Additional information

To get latest version of submodules, in a terminal (or using git shell here if you installed Tortoise git):

   git submodule update --recursive --remote

To compile additional exploragram library:

clone "https://github.com/BrunoLevy/exploragram.git" in geogram/src/lib/, then reconfigure and make

Troubleshooting

  • if nothing happens when you click on configure.bat, it may be because CMake was not added to the path.
  • To figure out what happens, open a shell, cd to the directory where geogram is install and start configure.bat from there, then you will be able to see error messages if any.
Clone this wiki locally