January 21, 2016

Linux installation of OpenCV, Qt, VTK, PCL, avahi, PointGrey, gcc, Boost, Ximea with dependencies

  • Tested on Ubuntu 14.04 64-bit
  • One of comfortable Linux IDEs is CLion.
  • CLion 1.2 IDE
https://www.jetbrains.com/clion/help/installation-and-launching.html
In addition to CLion is perfect IDE with many built-in functionality, Clion uses cmake files as solution files. 
  • essential tools
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
  • opencv
  • qt
mkdir qt5.5.1-install && cd qt5.5.1-install
wget http://download.qt-project.org/official_releases/qt/5.5/5.5.1/qt-opensource-linux-x64-5.5.1.run
chmod +x qt-opensource-linux-x64-5.5.1.run
./qt-opensource-linux-x64-5.5.1.run
  • vtk
http://www.vtk.org/Wiki/VTK/Tutorials/QtSetup

mkdir ~/VTK-Release-qt5.5.1-build && ~/VTK-Release-qt5.5.1-build
cmake -DVTK_QT_VERSION:STRING=5 -DQT_QMAKE_EXECUTABLE:PATH=~/qt5.5.1-install/5.5.1/gcc_64/bin/qmake -DVTK_Group_Qt:BOOL=ON -DCMAKE_PREFIX_PATH:PATH=~/qt.5.5.1-install/5.5.1/gcc_64/lib/cmake -DBUILD_SHARED_LIBS:BOOL=ON ~/VTK-6.3.0
make -j8
make install
x11_xt_lib could not be found when you run ccmake,
try
sudo apt-get install libxt-dev 
  • pcl
use setup, apart from OpenNI/2 and installation libflann1

cmake -DCMAKE_BUILD_TYPE=None -DBUILD_GPU=ON -DBUILD_SHARED_LIBS:BOOL=On ..
make -j 8
make install
Question: How to distinguish among boost, flann, pcl configurations on linux.
  • avahi
sudo apt-get install avahi-daemon (should be already installed)
apt-get install libavahi-client-dev
  • ximea
https://www.ximea.com/support/documents/4
to be compatible with our CMake, please copy result to ~/XIMEA_Linux_SP
  • pointgrey
sudo apt-get install libraw1394-11 libgtkmm-2.4-1c2a libglademm-2.4-1c2a libgtkglextmm-x11-1.2-dev libgtkglextmm-x11-1.2 libusb-1.0-0
cd flycapture2-2.8.3.1-amd64/
sudo sh install_flycapture.sh
  • need > gcc.4.9.0, because of variadic templates
http://stackoverflow.com/questions/22568642/parameter-packs-not-expanded-with-another-variadic-template-bug-with-gc

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
  • some links to be followed in troubles
http://stackoverflow.com/questions/16257564/linker-error-undefined-reference-to-symbol-pthread-rwlock-trywrlockglibc-2-2
http://stackoverflow.com/questions/1620918/cmake-and-libpthread


No comments:

Post a Comment