Table of Contents
MicMac is a free open-source photogrammetric software for 3D reconstruction under development at the National Institute of Geographic and Forestry Information - French Mapping Agency - (IGN) and the National School of Geographic Sciences (ENSG) withing the LASTIG lab. MicMac is distributed under CECILL-B license since 2007.
Some external tools need to be present on your system for MicMac to run properly:
This section covers the compilation of MicMac source code to generate binaries. Pre-compiled binaries are available HERE.
Compilation procedure is discribed below for the 3 main operating systems:
Under Linux (Ubuntu) distribution the installation procedure is as follows:
Open a terminal
Install dependencies:
sudo apt-get install git cmake make ccache imagemagick libimage-exiftool-perl exiv2 proj-bin libx11-dev
Clone the repository:
git clone https://github.com/micmacIGN/micmac.git
Access the folder:
cd micmac
Create a directory for building intermediate files and access it:
mkdir build && cd build
Generate makefiles:
cmake ..
Compile:
make install -j N
nproc --all
Add binaries to the PATH
(adapt the path):
echo 'export PATH=/home/src/micmac/bin:$PATH' >> ~/.bashrc
Under Windows the installation procedure is as follows:
Optionnal, QT5 tools : Download and Install vcpkg in a general directory (c:\pgms, for example):
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
vcpkg.exe integrate install
git clone https://github.com/micmacIGN/micmac.git
cd micmac
mkdir build && cd build
Generate Microsoft Visual Studio Solution File MICMAC.sln:
cmake.exe ..
cmake .. -DWITH_QT5=1 -DCMAKE_TOOLCHAIN_FILE=c:/pgms/vcpkg/script/buildsystem/vcpkg.cmake
cmake.exe" --build . --config Release --target INSTALL
PATH
environment variable via Advanced system settings menu. Example of path (adapt the path):
"C:\src\micmac\bin"
Under macOS we will use Homebrew Package Manager to install dependencies.
If you don't have Homebrew, first follow the instructions HERE.
Under macOS the installation procedure is as follows:
Open a terminal
Use Homebrew to install dependencies:
brew install git
brew install cmake
brew install imagemagick
brew install exiftool
brew install exiv2
brew install proj
brew install qt5
Clone the repository:
git clone https://github.com/micmacIGN/micmac.git
Access the folder:
cd micmac
Create a directory for building intermediate files and access it:
mkdir build && cd build
Generate makefiles:
cmake ..
Compile MicMac:
make install -j N
Add binaries to the PATH
(adapt the path):
echo 'export PATH=/home/src/micmac/bin:$PATH' >> ~/.zshrc
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
.zshrc
file in the current shell session:
source ~/.zshrc
brew doctor
To use Qt GUIs, you need to adapt the cmake command as follows:
cmake ../ -DWITH_QT5=1
CMAKE_PREFIX_PATH
variable:
cmake ../ -DWITH_QT5=1 -DCMAKE_PREFIX_PATH=path/to/qt/X.XX.X/
For Linux/macOS it is sometimes necessary to append the lib
directory to LD_LIBRARY_PATH
in .bashrc
/ .zshrc
to be able to use Qt tools:
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/src/micmac/lib/' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/src/micmac/lib/' >> ~/.zshrc
You can append the full path of the bin
directory to PATH
environment variable to call MicMac commands from anywhere. However, it is not necessary to add the binaire-aux
directory to the PATH
variable.
A precompiled docker image is available and ready to use:
docker pull rupnike/micmac
or build your own image from scratch using the existing Dockerfile:
docker image build -t micmac:1.0 -f Dockerfile
sh gravillons_test.sh
./gravillons_test.bat
This project is licensed under the CECILL-B License - see the LICENSE.md file for details.