Configure ElastiFusion on ubuntu16-failed attempt

Write catalog title here

1. Preparation

1.1 Hardware configuration

CPU 8GB
Nvidia gerforce 940M

Win10+ubuntu16 dual system, cuda10.2 has been installed
1.2 basic library dependencies,
refer to read.me and build.sh in elasticfusion's GitHub.
Other references: Reference 1
Reference 2

sudo apt-get install -y cmake-qt-gui git build-essential libusb-1.0-0-dev libudev-dev freeglut3-dev openjdk-8-jdk libglew-dev libsuitesparse-dev libeigen3-dev zlib1g-dev libjpeg-dev

Even if cmake or other software packages have been installed before, you can run the above commands directly, because the existing packages will not be installed again.
Note that openjdk-7-jdk cannot be installed, use openjdk-8-jdk in the above command instead.

  • Install OpenNI2

Note, you may need to manually tell CMake where OpenNI2 is since Occipital’s fork does not have an install option.

git clone https://github.com/occipital/OpenNI2.git
cd OpenNI2
make -j8

ERROR1
Make[1] appears when I make make: leaving directory'xxx/OpenNI2/Samples/SimpleViewer.java'

There is information that this is not a critical error of make, so it is ignored. . .
The official website is gone at this step, but other reference tutorials also carried out the following steps:
OpenNI2

# Creating OpenNI2 packages
cd Packaging
chmod +x ReleaseVersion.py
./ReleaseVersion.py

Check if the installation is successful

pkg-config --modversion libopenni2
  • Install Pangolin
    I have already installed pangolin on my original computer. I entered its build folder and recompiled.

Pangolin must be installed AFTER all the other libraries to make use of optional dependencies.

git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ../ -DAVFORMAT_INCLUDE_DIR="" -DCPP11_NO_BOOST=ON
make -j8
sudo make install

2. Install ElasticFusion

First download the source code, you need to compile three folders, namely core, GPUTest, GUI.

#编译core
cd Core
mkdir build && cd build
cmake ../src
make
#编译GPUTest
cd GPUTest
mkdir build && cd build
cmake ../src
make
#编译GUI
cd GUI
mkdir build && build
cmake ../src
make

After the compilation is successful, test it and download dyson_lab.kpl first

cd ElasticFusion
cd GUI/build
./ElasticFusion -l dyson_lab.klg

Finally, I encountered a problem in the issue on GitHub

GLSL 3.30 is not supported. Supported versions are 1.10, 1.20, 1.30, 1.00 ES and 3.00 ES

It seems that the discrete graphics card is not working, but I don't want to toss my laptop for fear of crashing. . .
A failed attempt

Guess you like

Origin blog.csdn.net/qq_43265072/article/details/108800951