Skip to content

Commit 1451f7d

Browse files
committed
Merge pull request opencv#7848 from rjray-nvidia:cuda_tegra_tutorial_update_1
2 parents 19c8cc8 + dd99b7c commit 1451f7d

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

doc/tutorials/introduction/building_tegra_cuda/building_tegra_cuda.markdown

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ There are two (2) ways to get the OpenCV source code:
3232
* Direct download from the [OpenCV downloads](http://opencv.org/downloads.html) page
3333
* Cloning the git repositories hosted on [GitHub](https://github.com/opencv)
3434

35-
For this guide, the focus is on using the git repositories. This is because the 3.1.0 version of OpenCV will not build with CUDA 8.0 without applying a small upstream change from the git repository.
35+
For this guide, the focus is on using the git repositories. This is because the 3.1.0 version of OpenCV will not build with CUDA 8.0 without applying a few small upstream changes from the git repository.
3636

3737
OpenCV
3838
------
@@ -49,7 +49,7 @@ To build the 3.1.0 version (as opposed to building the most-recent source), you
4949

5050
__Note:__ This operation creates a new local branch in your clone's repository.
5151

52-
If you are building OpenCV with CUDA 8.0, you must execute one additional git command. This is to apply a fix for building specifically with the 8.0 version of CUDA that was not part of the 3.1.0 release. To do this, use the "git cherry-pick" command:
52+
There are some upstream changes that must be applied via the `git cherry-pick` command. The first of these is to apply a fix for building specifically with the 8.0 version of CUDA that was not part of the 3.1.0 release:
5353

5454
# While still in the opencv directory:
5555
$ git cherry-pick 10896
@@ -60,7 +60,27 @@ You will see the following output from the command:
6060
Author: Vladislav Vinogradov <vlad.vinogradov@itseez.com>
6161
1 file changed, 2 insertions(+), 1 deletion(-)
6262

63-
This step is not needed if you are building with CUDA 7.0 or 7.5.
63+
Secondly, there is a fix for a CMake macro call that is problematic on some systems:
64+
65+
$ git cherry pick cdb9c
66+
67+
You should see output similar to:
68+
69+
[v3.1.0-28613 e5ac2e4] gpu samples: fix REMOVE_ITEM error
70+
Author: Alexander Alekhin <alexander.alekhin@itseez.com>
71+
1 file changed, 1 insertion(+), 1 deletion(-)
72+
73+
The last upstream fix that is needed deals with the `pkg-config` configuration file that is bundled with the developer package (`libopencv-dev`):
74+
75+
$ git cherry-pick 24dbb
76+
77+
You should see output similar to:
78+
79+
[v3.1.0 3a6d7ab] pkg-config: modules list contains only OpenCV modules (fixes #5852)
80+
Author: Alexander Alekhin <alexander.alekhin@itseez.com>
81+
1 file changed, 7 insertions(+), 4 deletions(-)
82+
83+
At this point, the `opencv` repository is ready for building.
6484

6585
OpenCV Extra
6686
------------

0 commit comments

Comments
 (0)