This installation was tested on Ubuntu 14.04 with a USB3.0 camera MQ013MG-E2 .
sudo apt-get install libgtk2.0-dev sudo apt-get install pkg-config
wget https://github.com/Itseez/opencv/archive/3.1.0.zip unzip 3.1.0.zip cd opencv-3.1.0
mkdir build cd build # on some systems "-D WITH_TIFF=NO" should be added to options cmake .. make sudo make install
How to install XIMEA Linux Software Package
There is alternative approach of using OpenCV with XIMEA cameras. This approach uses OpenCV videoio module for PYTHON and C++. You can read more details here.