forked from lagadic/visp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tutorial-install-opensuse.doc
225 lines (190 loc) · 8.63 KB
/
tutorial-install-opensuse.doc
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/**
\page tutorial-install-opensuse Tutorial: Installation from source on Linux openSUSE
\tableofcontents
In this tutorial you will learn how to install ViSP from source on openSUSE. These steps have been tested for openSUSE 13.2 (x86_64) distribution, but should work with any other distribution as well.
Concerning ViSP installation, we provide also other tutorials that explain how to install ViSP from source:
- \ref tutorial-install-ubuntu
- \ref tutorial-install-fedora
- \ref tutorial-install-centos
- \ref tutorial-install-raspberry
- \ref tutorial-install-win7
- \ref tutorial-install-win81-msvc
- \ref tutorial-install-win81-mingw64
- \ref tutorial-install-iOS
ViSP can also be installed from source on other platforms including OSX (see <a href="http:https://www.irisa.fr/lagadic/visp/install.html">Install from source page</a>).
\section install_opensuse_required Required packages
- gcc 4.4.x or later. This can be installed with:
\code
sudo zypper install gcc-c++
\endcode
- CMake 2.6 or higher that could be installed with:
\code
sudo zypper install cmake
\endcode
ViSP is interfaced with several optional <a href="http:https://www.irisa.fr/lagadic/visp/libraries.html">third-party libraries</a>. The installation of the corresponding packages is described in \ref install_opensuse_3rdparty section.
\section install_opensuse_get_source Getting ViSP source code
There are different ways to get ViSP source code:
- You can download the <a href="http:https://www.irisa.fr/lagadic/visp/download.html#latest">latest stable release</a> as a zip or a tarball. Once downloaded, uncompress the file using either
\code
tar xvzf ViSP-2.10.0.tar.gz
\endcode
or
\code
unzip ViSP-2.10.0.zip
\endcode
- You can also download a more <a href="http:https://www.irisa.fr/lagadic/visp/download.html#snapshot">recent snapshot</a>. Once downloaded, uncompress the file using
\code
unzip ViSP-2.y.z-snapshot-2015.mm.dd.zip
\endcode
- Or you get the cutting-edge ViSP from Subversion repository. To this end you have first to install subversion
\code
sudo zypper install subversion
\endcode
and then use the following command
\code
svn checkout svn:https://scm.gforge.inria.fr/svn/visp/trunk/ViSP ViSP-trunk
\endcode
We suppose now that ViSP source is in a directory denoted \<source_dir\>, for example \c $HOME/ViSP-2.10.0
\section install_opensuse_config Configuring ViSP from source
- Create first a directory denoted \<binary_dir\> where you want to build ViSP. This directory will contain generated Makefiles, object files, and output libraries and binaries.
\code
cd $HOME; mkdir ViSP-build-release
\endcode
- Enter the \<binary_dir\> and to configure the build type:
\code
cmake [<optional parameters>] <source_dir>
\endcode
For example:
\code
cd $HOME/ViSP-build-release
cmake -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=ON ../ViSP-2.10.0
\endcode
A more versatile way to configure the build is to use \c ccmake, the CMake GUI:
\code
ccmake ../ViSP-2.10.0
\endcode
The following image shows that this command allows to configure (just by pressing [c] key) the build in a more advanced way where some options could be easily turned On/Off. It allows also to see which are the 3rd parties that will be used.
\image html img-ccmake-opensuse.png Snapshot of the ccmake \c ../ViSP-2.10.0 command used to configure ViSP.
- There is an other way to see which are the 3rd parties that are found during the configuration stage and that will be used by ViSP during the build. To this end you can have a look to the text file named ViSP-third-party.txt and located in \<binary_dir\>. We provide hereafter an example of a possible content of this file:
\code
ViSP third-party libraries
Below you will find the list of third party libraries used to
build ViSP on your computer.
Mathematics:
Gnu Scientific Library : no
Lapack/blas : no
Simulator:
Ogre simulator : no
\- Ogre3D : no
\- OIS : no
Coin simulator :
\- Coin3D : no
\- SoWin : no
\- SoXt : no
\- SoQt : no
\- Qt4 : no
\- Qt3 : no
Robots
Afma6 : no
Afma4 : no
Biclops : no
Ptu46 : no
Pioneer : no
Viper S650 : no
Viper S850 : no
Video devices (display)
X11 : no
GTK : no
OpenCV : no
GDI : no
Direct3D : no
Framegrabbers
Firewire libdc1394-1.x : no
Firewire libdc1394-2.x : no
Video For Linux Two : no
DirectShow : no
CMU 1394 Digital Camera SDK : no
OpenCV : no
Specific devices
Yarp : no
Kinect : no
\-libfreenect : no
\-libusb-1.0 : no
\-pthread : yes
Video and image Read/Write:
FFMPEG : no
libjpeg : no
libpng : no
Misc:
XML2 : no
pthread : yes
OpenMP : yes
zbar : no
dmtx : no
Documentation:
Doxygen : no
Graphviz dot : no
ViSP built with C++11 features: no
\endcode
In our case, only \c pthread an OpenMP 3rd parties are detected.
\subsection install_opensuse_3rdparty Optional 3rd party packages
As mentioned previously, ViSP is interfaced with some 3rd party libraries. The <a href="http:https://www.irisa.fr/lagadic/visp/libraries.html">complete list is provided here</a>. We recommend to install the following:
- OpenCV
\code
sudo zypper install opencv-devel
\endcode
- libX11 to be able to open a window to display images
\code
sudo zypper install libX11-devel
\endcode
- lapack and gsl to benefit from optimized mathematical capabilities
\code
sudo zypper install lapack-devel gsl-devel
\endcode
- libv4l to grab images from usb or analogic cameras
\code
sudo zypper install libv4l-devel
\endcode
- libxml2 to be able to configure the model-based trackers from xml files
\code
sudo zypper install libxml2-devel
\endcode
- libjpeg and libpng to support jpeg and png images
\code
sudo zypper install libjpeg8-devel libpng-devel
\endcode
Once installed, if you want that ViSP exploit the new 3rd parties, you have to configure ViSP again.
\code
ccmake ../ViSP-2.10.0
\endcode
The following image shows now that all the previous optional 3rd parties are detected.
\image html img-ccmake-opensuse-all.png Snapshot of the ccmake \c ../ViSP-2.10.0 command used to configure ViSP after installation of optional 3rd party libraries.
\note Other <a href="http:https://www.irisa.fr/lagadic/visp/libraries.html">3rd party libraries</a> are interfaced with ViSP. This is for example the case of <a href="http:https://www.irisa.fr/lagadic/visp/librarieslist.html#Ogre">Ogre</a> that can be used to enhance the visibility computation of the faces that are tracked with the model-based tracker (see \ref tutorial-tracking-mb), or <a href="http:https://www.irisa.fr/lagadic/visp/librarieslist.html#Coin">Coin</a> that can be used to parse vrml files that describe the 3D model of the object to track using the same model-based tracker. It seems that these 3rd parties are not packaged on openSUSE. If you want to use these 3rd parties, you have to install them from source code.
\subsection install_opensuse_generate Generating Makefiles
To generate the makefiles, just press [g] key in the ccmake gui.
Now we can build ViSP.
\subsection install_opensuse_issues Known issues
- Note that with openSUSE 12.04 but also with 13.02, libjpeg-devel package lead to libjpeg62.so installation, that may conflict with libjpeg8.so that is also installed. That's why we recommend to not install libjpeg-devel, but rather install libjpeg8-devel.
\code
Linking CXX executable HelloWorld
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libjpeg.so.8, needed by /usr/lib64/libopencv_highgui.so.2.4.9, may conflict with libjpeg.so.62
\endcode
\section install_opensuse_build Building ViSP from source
- To build ViSP proceed with:
\code
make -j4
\endcode
- To install ViSP proceed with:
\code
sudo make install
\endcode
- To build ViSP documentation, you have first to install Doxygen package:
\code
sudo zypper install doxygen graphviz
\endcode
Then you can proceed with:
\code
make visp_doc
\endcode
You are now ready to see the next \ref tutorial-getting-started that will show you how to use ViSP as a 3rd party to build your own project.
*/