-
Notifications
You must be signed in to change notification settings - Fork 5
/
maqui_install_opencv.txt
52 lines (39 loc) · 1.68 KB
/
maqui_install_opencv.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
############ PEPPER OPENCV INSTALLATION ############
##### DEPENDENCIES INSTALLATION #####
cd ${ROBOT_ROOT}/src
wget http://http.debian.net/debian/pool/main/libj/libjpeg8/libjpeg8_8d.orig.tar.gz
tar -xvzf libjpeg8_8d.orig.tar.gz
cd jpeg-8d/
./configure --prefix=${ROBOT_ROOT}/usr
make
make install
cd ${ROBOT_ROOT}/src
wget http://download.osgeo.org/libtiff/tiff-3.9.7.tar.gz
tar -xvzf tiff-3.9.7.tar.gz
cd tiff-3.9.7/
./configure --prefix=${ROBOT_ROOT}/usr
make
make install
#La libreria ffmpeg no se instala
#cd ${ROBOT_ROOT}/src
#wget https://launchpad.net/ubuntu/+archive/primary/+files/ffmpeg_0.6.1.orig.tar.gz
#tar -xvzf ffmpeg_0.6.1.orig.tar.gz
#cd ffmpeg-0.6.1/
#./configure --prefix=${ROBOT_ROOT}/usr --enable-shared
#make
#make install
#### al instalar la libreria ffmpeg se obtiene el siguiente error al complilar maqui_ws:
# /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../lib/libopencv_highgui.so: undefined reference to `avformat_write_header@LIBAVFORMAT_52'
# /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../lib/libopencv_highgui.so: undefined reference to `avio_close@LIBAVFORMAT_52'
# /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../lib/libopencv_highgui.so: undefined reference to `avformat_open_input@LIBAVFORMAT_52'
##### OPENCV-2.4.8 INSTALLATION #####
cd maqui_root/src/
wget https://github.com/opencv/opencv/archive/2.4.8.tar.gz -O opencv-2.4.8.tar.gz
tar -xvzf opencv-2.4.8.tar.gz
cd opencv-2.4.8
mkdir build
cd build
#con el siguiente comando se eliminan librerias de opencv que requieren ffmpeg y/o usan interfaz grafica
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/nao/maqui_root/usr -DBUILD_opencv_highgui=OFF -DBUILD_opencv_superres=OFF ..
make
make install