User Tools

Site Tools


Software installations on Precise Pangolin (Ubuntu 12.04 LTS)

Sometimes we would very much want to get directly to what we want to do rather than fiddling with software installations which at times could take a lot of time than anticipated, though this part of preparation could be very enthralling too :)

CUDA 4.2

  • NOTE: Be very careful when installing device drivers. This has to be done by disabling X Server.
    • To install device drivers, make sure you delete the nvidia software and disable nouveau (used by X Server) completely, then log into text-based login and follow the steps specified in the above documentation link.
  • To execute the installer with .run extension, there are two ways
    1. 1
      • Right click on the file and go to Properties
      • Go to Permissions tab and select “Allow executing file as program”
      • Then double click on the file and click “Run in terminal”
    2. 2
      • sudo chmod +x
      • sudo ./

VLC 2.0.1

  • When installing VLC 2.0.1, x264, ffmpeg and live555 are used to obtain VLC libraries: libvlc, libvlccore
  • The VLC libraries are installed in /usr/local/include

OpenCV 2.4.1

  For x264, use the option --enable-shared --enable-pic
  For ffmpeg, use the option --enable-shared

MySQL: mysql Ver 14.14 Distrib 5.5.24

  • sudo apt-get install mysql-server mysql-client
  • sudo apt-get install libmysqlclient-dev # to obtain mysql headers
  • mysql includes in /usr/include/mysql
  • mysql libraries in /usr/lib/i386-linux-gnu/

Qt 4.8.1

Eclipse - Indigo

  • Install Eclipse from Ubuntu Software Center
  • Install eclipse-cdt plugin

Qt Eclipse integration

  • Install qt-eclipse-integration-linux.x86-1.6.1
    • NOTE: If you installed Eclipse to e.g. /usr/local, you will find the directory /usr/local/eclipse/plugins there. PREFIX = /usr/local. If you used the package management system of your Linux distribution to install Eclipse, this directory might possibly be /usr/lib/eclipse/plugins. PREFIX = /usr/lib.
% tar xzf ~/Downloads/qt-eclipse-integration-linux.x86-<version>.tar.gz

Ruby 1.9.3 on Rails

#[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM into a shell session.
[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm"  # This loads RVM into a shell session, in my case
  • Add the following lines to /etc/bash.bashrc
# Load RVM if it is installed,
#  first try to load  user install
#  then try to load root install, if user install is not there.
if [ -s "$HOME/.rvm/scripts/rvm" ] ; then
  . "$HOME/.rvm/scripts/rvm"
elif [ -s "/usr/local/rvm/scripts/rvm" ] ; then
  . "/usr/local/rvm/scripts/rvm"

Boost 1.49

% sh
% ./b2
% sudo ./bjam install --pfix=/usr/local
  • headers installed in /usr/local/include/boost
  • libraries installed in /usr/local/lib
  • For library, boost_system should be specified in library for C++ programs using boost


Android SDK: android-sdk_r18-linux.tgz

% sh android
  • This will display an interface to download the complete SDK


Let’s start OpenCV-2.4.2 installation on Ubuntu 12.04

1. Download OpenCV2.4.2 from

2. Extract the file OpenCV-2.4.2.tar.bz2. We will get a folder OpenCV-2.4.2.

3. Move to the directory that you need. In my case, i will move it to my /home/myusername/INSTALLERS/.

NOTE: I create a folder INSTALLERS to keep the library that i download the source code and install it manually.

4. Go to your OpenCV-2.4.2 directory by using

 cd /home/myusername/INSTALLERS/OpenCV-2.4.2


 cd ~/INSTALLERS/OpenCV-2.4.2

Then, I create a folder named “release” in this directory to store our compiled library which will be copied to /usr/local/lib (for the libraries) and /usr/local/include (for the header files).

After you create a folder named “release”, you have to go to that directory by using

 cd release

5. Inside the “release” folder, we will run cmake to configure the library and setup the libraries that we would like to use for compiling OpenCV’s source code by using

 cmake-gui ..

A command “cmake-gui ..” means that you’re using cmake-gui to look for the CMakeLists.txt in the /home/myusername/INSTALLERS/OpenCV-2.4.2 directory.

NOTE: If you haven’t installed cmake-qt-gui, you will get the error message like this “The program ‘cmake-gui’ is currently not installed. You can install it by typing: sudo apt-get install cmake-qt-gui”

We just follow the suggestion by running “sudo apt-get install cmake-qt-gui”.

6. Install the required libraries which are as follows:

  • ffmpeg
  • libavcodec-dev
  • libavformat-dev
  • libxine2-dev
  • libgtk-3-dev
  • libqt4-dev
  • libqt4-opengl (optional)
  • libtiff4-dev
  • libpng12-dev
  • libboost-all-dev
  • libswscale-dev
  • libjasper-dev
  • libxine-dev
  • libeigen3-dev
  • libtbb-dev

To install these libraries, you can install by using a command

 sudo apt-get install libraryname

or using synaptic package manager.

NOTE: I installed another libraries for RTSP streaming for my project which are

  • libvlccore-dev and libvlc-dev
  • livemedia-dev and livemedia-utils

7. After running a command “cmake-gui ..”, you will see a window as shown below

You have to click at “configure” button to check the dependency libraries and then you click a “generate” button. The result of configuration on my computer is as follows:

 Detected version of GNU GCC: 46 (406)
 Extracting svn version, please wait…
 SVNVERSION: exported
 Performing Test HAVE_CXX_PG_G
 Performing Test HAVE_CXX_PG_G – Failed
 Performing Test HAVE_C_PG_G
 Performing Test HAVE_C_PG_G – Failed
 checking for module ‘libdc1394-2′
 package ‘libdc1394-2′ not found 
 checking for module ‘libdc1394′
 package ‘libdc1394′ not found
 checking for module ‘libxine’
 found libxine, version 1.2.0
 Looking for linux/videodev.h
 Looking for linux/videodev.h – not found
 Looking for linux/videodev2.h
 Looking for linux/videodev2.h – found
 Looking for libavformat/avformat.h
 Looking for libavformat/avformat.h – found
 Looking for ffmpeg/avformat.h
 Looking for ffmpeg/avformat.h – not found
 checking for module ‘tbb’
 found tbb, version 3.0+r018
 General configuration for OpenCV 2.4.2 =====================================
 Host: Linux 3.2.0-31-generic-pae i686
 CMake: 2.8.7
 CMake generator: Unix Makefiles
 CMake build tool: /usr/bin/make
 Configuration: Release
 Built as dynamic libs?: YES
 C++ Compiler: /usr/bin/c++ (ver 4.6.3)
 C++ flags (Release): -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point 
 -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith 
 -Wshadow -Wsign-promo -fdiagnostics-show-option -pthread -march=i686 -msse -msse2 -mfpmath=sse 
 C++ flags (Debug): -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat 
 -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow 
 -Wsign-promo -fdiagnostics-show-option -pthread -march=i686 -msse -msse2 -mfpmath=sse -g -O0
 -DDEBUG -D_DEBUG -ggdb3
 C Compiler: /usr/bin/gcc
 C flags (Release): -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat 
 -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef 
 -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -pthread -march=i686 -msse -msse2
 -mfpmath=sse -O3 -DNDEBUG -DNDEBUG
 C flags (Debug): -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat 
 -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef
 -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -pthread -march=i686 -msse -msse2
 -mfpmath=sse -g -O0 -DDEBUG -D_DEBUG -ggdb3
 Linker flags (Release):
 Linker flags (Debug):
 Precompiled headers: NO
 OpenCV modules:
 To be built: core imgproc flann highgui features2d calib3d ml video objdetect contrib nonfree gpu 
 legacy photo stitching ts videostab
 Disabled: -
 Disabled by dependency: -
 Unavailable: androidcamera java python world
 QT 4.x: YES (ver 4.8.1 EDITION = OpenSource)
 QT OpenGL support: YES (/usr/lib/i386-linux-gnu/
 OpenGL support: YES (/usr/lib/i386-linux-gnu/ /usr/lib/i386-linux-gnu/ 
 /usr/lib/i386-linux-gnu/ /usr/lib/i386-linux-gnu/ 
 /usr/lib/i386-linux-gnu/ /usr/lib/i386-linux-gnu/
 Media I/O:
 ZLib: /usr/lib/i386-linux-gnu/ (ver
 JPEG: build (ver 62)
 PNG: build (ver 1.5.9)
 TIFF: build (ver 42 – 4.0.1)
 JPEG 2000: build (ver 1.900.1)
 OpenEXR: NO
 Video I/O:
 DC1394 1.x: NO
 DC1394 2.x: NO
 codec: YES (ver 53.35.0)
 format: YES (ver 53.21.0)
 util: YES (ver 51.22.1)
 swscale: YES (ver 2.1.0)
 gentoo-style: YES 
 GStreamer: NO
 OpenNI: NO
 OpenNI PrimeSensor Modules: NO
 UniCap: NO
 UniCap ucil: NO
 V4L/V4L2: Using libv4l (ver 0.8.6)
 Xine: YES (ver 1.2.0)
 Other third-party libraries:
 Use IPP: NO
 Use TBB: YES (ver 4.0 interface 6000)
 Use Cuda: NO
 Use Eigen: YES (ver 3.0.5)
 Interpreter: /usr/bin/python (ver 2.7.3)
 Build Documentation: NO
 Sphinx: NO
 PdfLaTeX compiler: NO
 Tests and samples:
 Tests: YES
 Performance tests: YES
 Examples: YES
 Install path: /usr/local
 cvconfig.h is in: /home/policeeyes/INSTALLERS/OpenCV-2.4.2/release
 Configuring done

8. If configuring is done, you can close the CMake-gui window and go back to terminal. In “release” folder, you have to run a command line to compile the source code by running this command

  • make

If OpenCV’s source code and dependency libraries are compiled successfully, you can install the OpenCV-2.4.2 library to Ubuntu system by using a command

  • sudo make install

If you would like to uninstall OpenCV-2.4.2, you have to come to this directory (“/home/myusername/INSTALLERS/OpenCV-2.4.2/release”) and run the following command

  • sudo make uninstall

That’s all. Enjoy OpenCV.

Point Cloud Library installation on Ubuntu 12.04

Required libraries:

  • Boost >= 1.46
  • Eigen >= 3.0
  • FLANN >=1.7.1
  • vtk >= 5.6

FLANN installation

You can install FLANN using synaptic package manager or install it manually. I install it using a synaptic package manager. The package name is libflann-dev.

VTK Installation

You can install VTK using synaptic package manager or install it manually. I install it using a synaptic package manager. The package name is libvtk-dev.

QHull installation


QT vtk installation


USB 1.0 installation


PCL Installation

To install PCL, I download a source files from You can follow the following steps:

1. Extract a tarball file.You will get a folder PCL-1.6.0-Source.

2. Create a folder named “release” inside PCL-1.6.0-Source directory to store the compiled library files.

3. Go to “release” folder and run a command

  • cmake-gui ..

On a CMake-gui window, you have to click “configure” and then, if everything is OK, click “generate”. Compile source code by using

  • make

Install library by using

  • sudo make install

I tried to compile PCL-1.6.0 but there are some problems with linked libraries. However, the PCL-1.6rc1 checked out from can be compiled successfully.

Enjoy PCL. :)

Other software installations using "sudo apt-get install"

  • phpmyadmin
  • rapidsvn
  • subversion
  • regex
  • google chrome ( directly from web browser )
  • yEd
  • gimp
  • inkscape
ubuntu/installation.txt · Last modified: 2014/10/31 06:44 (external edit)