Skip to content

Commit 0bc30d3

Browse files
smileface123alalek
authored andcommitted
Merge pull request opencv#8752 from vskarlsruhe:patch-7
Update windows_install.markdown (opencv#8752)
1 parent 2186ec7 commit 0bc30d3

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

doc/tutorials/introduction/windows_install/windows_install.markdown

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ best to help you out.
88

99
@note To use the OpenCV library you have two options: @ref tutorial_windows_install_prebuilt or
1010
@ref tutorial_windows_install_build. While the first one is easier to complete, it only works if you are coding
11-
with the latest Microsoft Visual Studio IDE and doesn't take advantage of the most advanced
11+
with the latest Microsoft Visual Studio IDE and do not take advantage of the most advanced
1212
technologies we integrate into our library. .. _Windows_Install_Prebuild:
1313

1414
Installation by Using the Pre-built Libraries {#tutorial_windows_install_prebuilt}
@@ -70,7 +70,7 @@ of them, you need to download and install them on your system.
7070
you have in your system's CPU.
7171
- [Intel Integrated Performance Primitives (*IPP*)](http://software.intel.com/en-us/articles/intel-ipp/) may be used to improve the performance
7272
of color conversion, Haar training and DFT functions of the OpenCV library. Watch out, since
73-
this isn't a free service.
73+
this is not a free service.
7474
- [Intel IPP Asynchronous C/C++](http://software.intel.com/en-us/intel-ipp-preview) is currently focused delivering Intel Graphics
7575
support for advanced image processing and computer vision functions.
7676
- OpenCV offers a somewhat fancier and more useful graphical user interface, than the default one
@@ -89,7 +89,7 @@ of them, you need to download and install them on your system.
8989
*OpenCV documentation*.
9090

9191
Now we will describe the steps to follow for a full build (using all the above frameworks, tools and
92-
libraries). If you do not need the support for some of these you can just freely skip this section.
92+
libraries). If you do not need the support for some of these, you can just freely skip this section.
9393

9494
### Building the library
9595

@@ -102,19 +102,19 @@ libraries). If you do not need the support for some of these you can just freely
102102
which you need only to unpack to get access to the console version of Git. Supposing that for
103103
some of us it could be quite enough.
104104
-# Install [TortoiseGit](http://code.google.com/p/tortoisegit/wiki/Download). Choose the 32 or 64 bit version according to the type of OS you work in.
105-
While installing, locate your msysgit (if it doesn't do that automatically). Follow the
105+
While installing, locate your msysgit (if it does not do that automatically). Follow the
106106
wizard -- the default options are OK for the most part.
107107
-# Choose a directory in your file system, where you will download the OpenCV libraries to. I
108-
recommend creating a new one that has short path and no special charachters in it, for example
109-
`D:/OpenCV`. For this tutorial I'll suggest you do so. If you use your own path and know, what
110-
you're doing -- it's OK.
108+
recommend creating a new one that has short path and no special characters in it, for example
109+
`D:/OpenCV`. For this tutorial, I will suggest you do so. If you use your own path and know, what
110+
you are doing -- it is OK.
111111
-# Clone the repository to the selected directory. After clicking *Clone* button, a window will
112112
appear where you can select from what repository you want to download source files
113113
(<https://github.com/opencv/opencv.git>) and to what directory (`D:/OpenCV`).
114114
-# Push the OK button and be patient as the repository is quite a heavy download. It will take
115115
some time depending on your Internet connection.
116116

117-
-# In this section I will cover installing the 3rd party libraries.
117+
-# In this section, I will cover installing the 3rd party libraries.
118118
-# Download the [Python libraries](http://www.python.org/downloads/) and install it with the default options. You will need a
119119
couple other python extensions. Luckily installing all these may be automated by a nice tool
120120
called [Setuptools](http://pypi.python.org/pypi/setuptools#downloads). Download and install
@@ -129,7 +129,7 @@ libraries). If you do not need the support for some of these you can just freely
129129
it inside a directory on your system. For example let there be `D:/OpenCV/dep`. For installing
130130
the [Intel Integrated Performance Primitives (*IPP*)](http://software.intel.com/en-us/articles/intel-ipp/)
131131
the story is the same. For
132-
exctracting the archives I recommend using the [7-Zip](http://www.7-zip.org/) application.
132+
extracting the archives, I recommend using the [7-Zip](http://www.7-zip.org/) application.
133133

134134
![](images/IntelTBB.png)
135135

@@ -209,8 +209,8 @@ libraries). If you do not need the support for some of these you can just freely
209209
Select all the packages you want to use and press again the *Configure* button. For an easier
210210
overview of the build options make sure the *Grouped* option under the binary directory
211211
selection is turned on. For some of the packages CMake may not find all of the required files or
212-
directories. In case of these CMake will throw an error in its output window (located at the
213-
bottom of the GUI) and set its field values, to not found constants. For example:
212+
directories. In case of these, CMake will throw an error in its output window (located at the
213+
bottom of the GUI) and set its field values to not found constants. For example:
214214

215215
![](images/CMakePackageNotFoundWindows.jpg)
216216

@@ -229,14 +229,14 @@ libraries). If you do not need the support for some of these you can just freely
229229
Furthermore, you need to select what part of OpenCV you want to build.
230230

231231
- *BUILD_DOCS* -\> It creates two projects for building the documentation of OpenCV (there
232-
will be a separate project for building the HTML and the PDF files). Note that these aren't
232+
will be a separate project for building the HTML and the PDF files). Note that these are not
233233
built together with the solution. You need to make an explicit build project command on
234234
these to do so.
235235
- *BUILD_EXAMPLES* -\> OpenCV comes with many example applications from which you may learn
236236
most of the libraries capabilities. This will also come handy to easily try out if OpenCV is
237237
fully functional on your computer.
238238
- *BUILD_PACKAGE* -\> Prior to version 2.3 with this you could build a project that will
239-
build an OpenCV installer. With this you can easily install your OpenCV flavor on other
239+
build an OpenCV installer. With this, you can easily install your OpenCV flavor on other
240240
systems. For the latest source files of OpenCV, it generates a new project that simply
241241
creates a zip archive with OpenCV sources.
242242
- *BUILD_SHARED_LIBS* -\> With this you can control to build DLL files (when turned on) or
@@ -245,11 +245,11 @@ libraries). If you do not need the support for some of these you can just freely
245245
test projects is also a good way to try out, that the modules work just as expected on your
246246
system too.
247247
- *BUILD_PERF_TESTS* -\> There are also performance tests for many OpenCV functions. If
248-
you're concerned about performance, build them and run.
248+
you are concerned about performance, build them and run.
249249
- *BUILD_opencv_python* -\> Self-explanatory. Create the binaries to use OpenCV from the
250250
Python language.
251251

252-
Press again the *Configure* button and ensure no errors are reported. If this is the case you
252+
Press again the *Configure* button and ensure no errors are reported. If this is the case, you
253253
can tell CMake to create the project files by pushing the *Generate* button. Go to the build
254254
directory and open the created **OpenCV** solution. Depending on just how much of the above
255255
options you have selected the solution may contain quite a lot of projects so be tolerant on the
@@ -258,16 +258,16 @@ libraries). If you do not need the support for some of these you can just freely
258258

259259
![](images/ChangeBuildVisualStudio.jpg)
260260

261-
In the end you can observe the built binary files inside the bin directory:
261+
In the end, you can observe the built binary files inside the bin directory:
262262

263263
![](images/OpenCVBuildResultWindows.jpg)
264264

265265
For the documentation, you need to explicitly issue the build commands on the *doxygen* project for
266-
the HTML docuementation. It will call *Doxygen* to do
266+
the HTML documentation. It will call *Doxygen* to do
267267
all the hard work. You can find the generated documentation inside the `build/doc/doxygen/html`.
268268

269269
To collect the header and the binary files, that you will use during your own projects, into a
270-
separate directory (simillary to how the pre-built binaries ship) you need to explicitly build
270+
separate directory (similarly to how the pre-built binaries ship) you need to explicitly build
271271
the *Install* project.
272272

273273
![](images/WindowsBuildInstall.png)
@@ -278,13 +278,13 @@ libraries). If you do not need the support for some of these you can just freely
278278
To test your build just go into the `Build/bin/Debug` or `Build/bin/Release` directory and start
279279
a couple of applications like the *contours.exe*. If they run, you are done. Otherwise,
280280
something definitely went awfully wrong. In this case you should contact us at our [Q&A forum](http://answers.opencv.org/).
281-
If everything is okay the *contours.exe* output should resemble the following image (if
281+
If everything is okay, the *contours.exe* output should resemble the following image (if
282282
built with Qt support):
283283

284284
![](images/WindowsQtContoursOutput.png)
285285

286286
@note
287-
If you use the GPU module (CUDA libraries) make sure you also upgrade to the latest drivers of
287+
If you use the GPU module (CUDA libraries), make sure you also upgrade to the latest drivers of
288288
your GPU. Error messages containing invalid entries in (or cannot find) the nvcuda.dll are
289289
caused mostly by old video card drivers. For testing the GPU (if built) run the
290290
*performance_gpu.exe* sample application.
@@ -295,15 +295,17 @@ Set the OpenCV environment variable and add it to the systems path {#tutorial_wi
295295
First we set an environment variable to make easier our work. This will hold the build directory of
296296
our OpenCV library that we use in our projects. Start up a command window and enter:
297297
@code
298-
setx -m OPENCV_DIR D:\OpenCV\Build\x86\vc10 (suggested for Visual Studio 2010 - 32 bit Windows)
299-
setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc10 (suggested for Visual Studio 2010 - 64 bit Windows)
300-
301298
setx -m OPENCV_DIR D:\OpenCV\Build\x86\vc11 (suggested for Visual Studio 2012 - 32 bit Windows)
302299
setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc11 (suggested for Visual Studio 2012 - 64 bit Windows)
300+
301+
setx -m OPENCV_DIR D:\OpenCV\Build\x86\vc12 (suggested for Visual Studio 2013 - 32 bit Windows)
302+
setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc12 (suggested for Visual Studio 2013 - 64 bit Windows)
303+
304+
setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc14 (suggested for Visual Studio 2015 - 64 bit Windows)
303305
@endcode
304306
Here the directory is where you have your OpenCV binaries (*extracted* or *built*). You can have
305307
different platform (e.g. x64 instead of x86) or compiler type, so substitute appropriate value.
306-
Inside this you should have two folders called *lib* and *bin*. The -m should be added if you wish
308+
Inside this, you should have two folders called *lib* and *bin*. The -m should be added if you wish
307309
to make the settings computer wise, instead of user wise.
308310

309311
If you built static libraries then you are done. Otherwise, you need to add the *bin* folders path
@@ -314,7 +316,7 @@ However, to do this the operating system needs to know where they are. The syste
314316
a list of folders where DLLs can be found. Add the OpenCV library path to this and the OS will know
315317
where to look if he ever needs the OpenCV binaries. Otherwise, you will need to copy the used DLLs
316318
right beside the applications executable file (*exe*) for the OS to find it, which is highly
317-
unpleasent if you work on many projects. To do this start up again the [PathEditor](http://www.redfernplace.com/software-projects/patheditor/) and add the
319+
unpleasant if you work on many projects. To do this start up again the [PathEditor](http://www.redfernplace.com/software-projects/patheditor/) and add the
318320
following new entry (right click in the application to bring up the menu):
319321
@code
320322
%OPENCV_DIR%\bin
@@ -325,7 +327,7 @@ following new entry (right click in the application to bring up the menu):
325327
![](images/PathEditorOpenCVSetPath.png)
326328

327329
Save it to the registry and you are done. If you ever change the location of your build directories
328-
or want to try out your applicaton with a different build all you will need to do is to update the
330+
or want to try out your application with a different build, all you will need to do is to update the
329331
OPENCV_DIR variable via the *setx* command inside a command window.
330332

331333
Now you can continue reading the tutorials with the @ref tutorial_windows_visual_studio_Opencv section.

0 commit comments

Comments
 (0)