Monthly Archives: June 2016

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
/usr/share/cmake-3.5
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:
http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04

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
    ./configure
    make
    

    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

http://askubuntu.com/questions/271388/how-to-install-gcc-4-8
https://github.com/kripken/emscripten/issues/3189


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 ..
make

===================================================================

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
./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

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

umve_makefile

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

umve_scrollimage.png

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

Advertisements