Ubuntu Install mve-texturing and Upgrade CMake, gcc & g++

Ubuntu 12.04 Install mve-texturing and Upgrade CMake, gcc & g++


Upgrade CMake

xx:~$ chmod +x /home/linht/mvs-texturing/cmake-3.5.2-Linux-x86_64.sh
xx:~$ sudo /home/linht/mvs-texturing/cmake-3.5.2-Linux-x86_64.sh
xx:~$ sudo apt-get remove cmake
xx:~$ sudo apt-get autoremove
xx:/usr/share/cmake-3.5.2-Linux-x86_64/bin$ sudo install cmake /usr/bin

Verify the installation in a new terminal:

xx:~$ cmake --version
CMake Error: Could not find CMAKE_ROOhttps://github.com/kripken/emscripten/issues/3189T !!!
CMake has most likely not been installed correctly.
Modules directory not found in
cmake version 3.5.2

xx:~$ export CMAKE_ROOT=/usr/share/cmake-3.5.2-Linux-x86_6/share/cmake-3.5
(adding this line to ~/.bashrc still does not help)
xx:~$ echo $CMAKE_ROOT

The above method does not work! cmake only runs inside the installed folder /usr/share/cmake-3.5.2-Linux-x86_6/bin without the CMAKE_ROOT error.

Another method that worked:

Either use a PPA or compile it yourself:

  1. Installation by a PPA (Upgrade to 3.2)
    sudo apt-get install software-properties-common
    sudo add-apt-repository ppa:george-edison55/cmake-3.x
    sudo apt-get update
    • When cmake is not yet installed:
      sudo apt-get install cmake
    • When cmake is already installed:
      sudo apt-get upgrade
  2. Compile it yourself  (you need to remove the cmake first if you already have an old one installed by sudo apt-get remove cmake; sudo apt-get autoremove)Currently, the latest version is 3.2.2, the following instructions based on this version. You should therefore check this URL and adjust the file name accordingly.
    sudo apt-get install build-essential
    wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
    tar xf cmake-3.2.2.tar.gz
    cd cmake-3.2.2

    Now you can have to choose an installation type to decide, I recommend installing with checkinstall, as this creates a DEB package.

    • With checkinstall
      sudo apt-get install checkinstall
      sudo checkinstall
    • With make install
      sudo make install


install gcc-4.8 and g++-4.8


sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.8 g++-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib


Build mvs-texturing

git clone https://github.com/nmoehrle/mvs-texturing.git
cd mvs-texturing
mkdir build && cd build
cmake -DRESEARCH=ON ..


Build Qt 5

wget http://download.qt.io/official_releases/qt/5.0/5.0.2/qt-linux-opensource-5.0.2-x86_64-offline.run
chmod +x qt-linux-opensource-5.0.2-x86_64-offline.run


Build mve:

$ git clone https://github.com/simonfuhrmann/mve.git
$ cd mve
$ make -j8

and umve:

$ cd apps/umve/
$ qmake && make -j8
$ ./umve

Do some modifications:
1. Add c++11 support to Makefile:


2. Modify the original file scrollimage.cc to clear the compiling error.


Q: Function maximumVIewportSize() is abstractly declared in /usr/include/qt4/QtGui/qabstractscrollarea.h, but never defined in concrete classes.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s