linux opencv and vlc and gloox配置

system environment:linux:16.04
1.opencv
(1) install the required packages:
[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev

(2)gettiing the opencv source code:
(here using opencv2.4.11)
unzip the opencv-2.4.11.zip
rename the folder name as "opencv"

then
cd ~/opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install

2.gloox(gloox-1.0.17)
unzip the gloox-1.0.17.tar.bz2
cd ~gloox-1.0.17
./configure --prefix="your install path"/gloox
make
make install

3.VLC
sudo apt-get install vlc
copy "old project path"/vlc/include to "now project path"/vlc/include
copy usr/lib/vlc to "now project path"/vlc/include
copy usr/lib/libvlc.so.5 libvlc.so.5.5.0 libvlccore.so libvlccore.so.8 libvlccore.so.8.0.0 to "now project path"/vlc/lib

run the order:ln -s libvlc.so.5 libvlc.so


你可能感兴趣的:(linux opencv and vlc and gloox配置)