Installation of various software and libraries under ubuntu (personal records)

Posted by ibanez270dx on Wed, 09 Mar 2022 08:06:44 +0100

Environment: Ubuntu 20 04

This paper records the installation of various libraries and common software, as well as the problems encountered in the installation and solutions during SLAM learning. It is only for reference. If there are problems, please point them out.

Five ways to install software for Ubuntu:

  1. Ubuntu store installation
    Relatively simple, no record

  2. apt command installation
    Note: after Ubuntu 16, apt replaces apt get

Update software list: apt update -y
 Search software: apt search keyword
 Display package details: apt show Package name
 Install software: apt install Package name
 Upgrade specified software: apt upgrade Package name
 Upgrade all software that can be upgraded: apt upgrade
 Uninstall software: apt remove
 Package name uninstall software and remove software dependencies: apt autoremove Package name
 Uninstall the software and delete the configuration file: apt remove Package name --purge
  1. snap command installation
Search package: snap find keyword
 Display package details: snap info Package name
 Install package: snap install Package name
 Upgrade specified software: snap refresh Package name
 Upgrade all software that can be upgraded: snap refresh
 Uninstall software: snap remove Package name
  1. dpkg command installation
    Download the deb package from the official website and double-click to install or
sudo dpkg -i file name.deb
  1. Source installation
//Installation dependency
//Enter the source code, compile and install as follows, and the source code can be deleted after installation
mkdir build && cd build
cmake 
make -j
sudo make install

Software installation

wps2019

Download address: https://www.wps.cn/product/wpslinux#.
Click download now, select deb (x86) download, and double-click install or

sudo dpkg -i file name.deb

Other methods:
1.snap command installation

sudo snap install wps-2019-snap

Problems and solutions:
Missing font:
https://blog.csdn.net/sunmengke1101/article/details/103436997

3. A key step
Open each file in turn and click Install
mtextra.ttf symbol.ttf WEBDINGS.TTF wingding.ttf WINGDNG2.ttf WINGDNG3.ttf

Clion

Download address: https://www.jetbrains.com/clion/download/#section=linux.
The official installation steps are detailed, which can be installed by snap
Problems and solutions:
Valid for 30 days, apply for student certification or find solutions by yourself

grub-customizer

Dual system and multi system boot boot interface beautification tool

sudo add-apt-repository ppa:danielrichter2007/grub-customizer 
sudo apt-get update 
sudo apt-get install grub-customizer

disk usage analyzer

Disk analysis tools, software store installation

Installation of various libraries

opencv 3.2.0 and opencv_contrib 3.2.0 module installation

Installation process
Install the dependent package of opencv:

sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

Download opencv and opencv_contrib:

git clone -b 3.2.0 https://github.com/opencv/opencv.git
git clone -b 3.2.0 https://github.com/opencv/opencv_contrib.git
cd opencv
git checkout 3.2.0
cd ..
cd opencv_contrib
git checkout  3.2.0
cd ..

Compiling and installing opencv and opencv_contrib module

cd opencv 
mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
      -D CMAKE_INSTALL_PREFIX=/usr/local \
      -D INSTALL_C_EXAMPLES=ON \
      -D INSTALL_PYTHON_EXAMPLES=ON \
      -D WITH_TBB=ON \
      -D WITH_V4L=ON \
      -D WITH_QT=ON \
      -D WITH_OPENGL=ON \
      -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
      -D BUILD_EXAMPLES=ON ..
make -j
sudo make install
sudo sh -c 'echo "/usr/local/lib" >> /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig

Problems and solutions:

Installation dependency, libjasper dev package not found

sudo apt-add-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev

cmake: Connot found OpenJPEG

 git clone https://github.com/uclouvain/openjpeg
// Enter the extracted directory openjpeg master and execute the following commands in sequence
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
sudo make install

cmake: No package 'gtk±3.0' found:

sudo apt-get install libgtk-3-dev

cmake: Could NOT find PythonLibs

sudo apt-get install python-dev 		//Only install 2 X
sudo apt-get install python3-dev 

cmake: No package 'libavresample' found

 sudo apt-get install libavresample-dev

cmake: No package 'gstreamer-base-1.0' found

sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

– Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
– Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
– Could NOT find Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY)
– A library with BLAS API not found. Please specify library location.
– LAPACK requires BLAS
– A library with LAPACK API not found. Please specify library location.
– Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
– VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file

sudo apt-get install libopenblas-dev

Pangolin installation

Installation process
pangolin's latest v0 Version 6 compilation ORB_SLAM2,ORB_ Problems will occur in slam3, DSO, LDSO and other slam frameworks. We install v0 Version 5.
Install the dependent package of Pangolin:

sudo apt-get install libpython2.7-dev
sudo apt-get install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev
sudo apt-get install libdc1394-22-dev libraw1394-dev
sudo apt-get install libjpeg-dev libpng12-dev libtiff5-dev libopenexr-dev

Compile and install Pangolin:

git clone -b v0.5 https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build && cd build
cmake ..
make -j
sudo make install

Problems and solutions:
dpkg: Processing archives / var / cache / apt / Archives / libpng12-0_ 1.2.54-1ubuntu1. 1_ amd64. Error DEB (– unpack):
Unable to install / lib / x86_ 64-linux-gnu/libpng12. so. New version of 0: there is no error message about that file or directory, which shows that there are some problems in the local system, so app is not written

sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt update
sudo apt install libpng12-0

cmake: Could not find GLEW

sudo apt-get install libglew-dev glew-utils

cmake: Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

sudo apt-get install doxygen

Eigen3 installation

Download the source code for installation.

#github clone source code
git clone https://github.com/eigenteam/eigen-git-mirror
 
#install
cd eigen-git-mirror
mkdir build && cd build
cmake ..
sudo make install

#After installation
cd /usr/local/include/
sudo cp -r eigen3/Eigen/ Eigen

Boota installation

#Install boost library
sudo apt-get install libboost-all-dev
#View boost version
dpkg -S /usr/include/boost/version.hpp

Topics: Ubuntu