Skip to content

compiling_Linux

Bruno edited this page May 9, 2024 · 8 revisions

Geogram compilation on Linux

Prerequisites

  • CMake
  • g++ compiler
  • X11 development libraries

On a Debian system, dependancies can be installed as follows:

$ sudo apt-get install cmake build-essential libx11-dev libxcb1-dev libxau-dev libxdmcp-dev 

You may need also (thank you @rflamary):

$ sudo apt-get install libxi-dev libxcursor-dev libxinerama-dev libxrandr-dev

Quick compilation guide (x86 Linux)

$ git clone --recurse-submodules https://github.com/BrunoLevy/geogram.git
$ cd geogram
$ ./configure.sh
$ cd build/Linux64-gcc-dynamic-Release
$ make -j 8

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

Quick compilation guide (non-x86 Linux with gcc, e.g. riscV)

$ git clone --recurse-submodules https://github.com/BrunoLevy/geogram.git
$ cd geogram
$ ./configure.sh Linux64-nonx86-gcc-dynamic
$ cd build/Linux64-nonx86-gcc-dynamic-Release
$ make -j 8

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

Quick compilation guide (non-x86 Linux with clang, e.g. riscV)

$ git clone --recurse-submodules https://github.com/BrunoLevy/geogram.git
$ cd geogram
$ ./configure.sh Linux64-nonx86-clang-dynamic
$ cd build/Linux64-nonx86-clang-dynamic-Release
$ make -j 8

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

Additional information

To get latest version of submodules:

   git submodule update --recursive --remote

To compile additional exploragram library:

$ cd geogram/src/lib
$ git clone https://github.com/BrunoLevy/exploragram.git

(then reconfigure and make)

Clone this wiki locally