If you would like to compile Regard3D by yourself, you can, since it is an open-source project. However, some experience with C/C++ and CMake is required.

I will only describe here how to compile Regard3D itself, not the third-party executables or libraries. Please see their respective homepages.


Please note: The following guide is outdated. Unfortunately I don't have time to keep it up to date, this text can still be used as a guideline. The most notable difference to recent versions of Regard3D is that you need to compile OpenMVG as a library, and the parameter -DOPENMVG_SRC_DIR=... is not required anymore. PCL is not a used in Regard3D anymore.


For Windows, the scripts in my repository build-scripts might give you a easier start into compiling Regard3D:

They might also be interesting to other platforms as well.


Compiling on Linux

Compiling Regard3D shouldn't be too hard, as all third-party libraries with the exception of ceres are available as packages. I am using Ubuntu 14.04, with other distributions the commands and package names might be different.

Installing third-party libraries (maybe incomplete):

sudo apt-get install build-essential cmake libboost-all-dev libeigen3-dev libwxgtk3.0-dev libopencv-dev libopenscenegraph-dev libpcl-all libsuitesparse-dev

Download and install the ceres solver (see homepage on how to compile).

Donwload and extract my slightly adjusted version of OpenMVG from the download section of the Regard3D project (the file is called openMVG-xx-regard3d.7z). Download the Regard3D source code either from the download section of the Regard3D project or from the Regard3D github project page.

Issue the commands:

mkdir build
cd build

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCERES_DIR=/ceres/install/dir -DOPENMVG_SRC_DIR=/path/to/openmvg/src -DUSE_SSE2=TRUE ../src

Adjust the paths as necessary.


Compiling on Windows and OS X

Compiling on these platforms is very similar to compiling on Linux, with the exception that all third-party libraries must be compiled, which is a big undertaking. Please don't try it if you have not at least 1-2 days to spare and some perseverance. To give you an idea, this is my cmake command for compilation on Windows with MinGW (the shell variables are set in a script beforehand):



Some tips concerning third-party libraries

  • Please use a new version of wxWidgets (>= 2.9). Version 2.8 might also work, but I recommed to use 3.0 and up
  • PCL 1.7.1 has a bug in writing PLY surfaces, and it will lead to crashes in Regard3D, for example during colorizing vertices of a surface. Please use PCL 1.7.2 (which is the newest at the time of writing)