COLMAP Build error

Hi everyone,
Does anybody tried to install colmap on a Jetson Nano?
I’m following the instructions as Build from source - Linux, but I have this error when compiling:

Scanning dependencies of target colmap
[ 54%] Building CXX object src/CMakeFiles/colmap.dir/ui/automatic_reconstruction_widget.cc.o
In file included from /home/dani/colmap/src/ui/main_window.h:51:0,
from /home/dani/colmap/src/ui/automatic_reconstruction_widget.cc:33:
/home/dani/colmap/src/ui/model_viewer_widget.h:55:63: error: expected class-name before ‘{’ token
protected QOpenGLFunctions_3_2_Core {
^
src/CMakeFiles/colmap.dir/build.make:1718: recipe for target ‘src/CMakeFiles/colmap.dir/ui/automatic_reconstruction_widget.cc.o’ failed
make[2]: *** [src/CMakeFiles/colmap.dir/ui/automatic_reconstruction_widget.cc.o] Error 1
CMakeFiles/Makefile2:1000: recipe for target ‘src/CMakeFiles/colmap.dir/all’ failed
make[1]: *** [src/CMakeFiles/colmap.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2

Does anybody know how to solve it?

Thanks in advance,
Dani.

Hi dxpolo,

We never tried colmap before, no idea where might be wrong, may other developers share their experience if they have done.

Hi… Good news!!!
I’ve been able to build colmap after compile QT5 from scratch (following Building Qt 5 from Git - Qt Wiki ).
I’m still having problems with some libraries, but now I can run colmap (only command line, no GUI).

Regards, Dani

Hi,
I also started with the installation of colmap on my Jetson Nano.
I used the “jetson-nano-sd-r32.2-2019-07-16.img” image and followed the official installation guide form here Installation — COLMAP 3.8 documentation.
I followed each step as described in the colmap guide.

But now after executing the “cmake …” command I got the following error and I am not sure what to do right now.

nano@nano:~/colmap/build$ cmake ..
CMake Error at CMakeLists.txt:87 (find_package):
  By not providing "FindCeres.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Ceres", but
  CMake did not find one.

  Could not find a package configuration file provided by "Ceres" with any of
  the following names:

    CeresConfig.cmake
    ceres-config.cmake

  Add the installation prefix of "Ceres" to CMAKE_PREFIX_PATH or set
  "Ceres_DIR" to a directory containing one of the above files.  If "Ceres"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/nano/colmap/build/CMakeFiles/CMakeOutput.log".

Maybe somebody has a hint for me how to execute the cmake … command or how to edit the “CMAKE_MODULE_PATH”…

This are the commands I executed to install everything as described.

https://colmap.github.io/install.html#linux

START with the base image:
sudo apt-get update

sudo apt-get install -y git cmake build-essential libboost-program-options-dev libboost-filesystem-dev libboost-graph-dev libboost-regex-dev libboost-system-dev libboost-test-dev libeigen3-dev libsuitesparse-dev libfreeimage-dev libgoogle-glog-dev libgflags-dev libglew-dev qtbase5-dev libqt5opengl5-dev libcgal-dev

sudo apt-get install libcgal-qt5-dev
sudo apt-get install libatlas-base-dev libsuitesparse-dev
git clone ceres-solver - Git at Google
cd ceres-solver
git checkout $(git describe --tags) # Checkout the latest release
mkdir build
cd build
cmake … -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
make
sudo make install

Next…
git clone https://github.com/colmap/colmap.git
cd colmap
git checkout dev
cd build
cmake …

→ ERROR

Best,

Ingmar

Hi, seems to be a problem with ceres-solver installation.

colmap building error: Could not find a package configuration file provided by "Ceres" · Issue #12 · ahojnnes/local-feature-evaluation · GitHub

Be sure of run all this steps one by one and check possible errors:

sudo apt-get install libatlas-base-dev libsuitesparse-dev
git clone ceres-solver - Git at Google
cd ceres-solver
git checkout $(git describe --tags) # Checkout the latest release
mkdir build
cd build
cmake … -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
make
sudo make install

Regards,
Dani