[opencv] 17/19: Fixed samples build with nonfree.

Mattia Rizzolo mattia at debian.org
Tue Oct 4 17:51:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to annotated tag 2.4.12.3
in repository opencv.

commit 2e78a3e5e94f21f6488734bc992cf5a8a7a5a27a
Author: Alexander Smorkalov <alexander.smorkalov at itseez.com>
Date:   Wed Oct 14 16:19:37 2015 +0300

    Fixed samples build with nonfree.
    
    (cherry picked from commit 341e7b3be24f921cdf0a63793afc2e694b4e98b6)
---
 samples/c/CMakeLists.txt                                 | 2 +-
 samples/cpp/CMakeLists.txt                               | 2 +-
 samples/cpp/tutorial_code/features2D/SURF_descriptor.cpp | 2 +-
 samples/ocl/CMakeLists.txt                               | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/samples/c/CMakeLists.txt b/samples/c/CMakeLists.txt
index b26e4ab..bd82ba2 100644
--- a/samples/c/CMakeLists.txt
+++ b/samples/c/CMakeLists.txt
@@ -16,7 +16,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
   endif()
 
-  ocv_include_modules(${OPENCV_C_SAMPLES_REQUIRED_DEPS})
+  ocv_include_modules(${OPENCV_C_SAMPLES_REQUIRED_DEPS} opencv_nonfree)
 
   # ---------------------------------------------
   #      Define executable targets
diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt
index 5eff52a..6433d1f 100644
--- a/samples/cpp/CMakeLists.txt
+++ b/samples/cpp/CMakeLists.txt
@@ -15,7 +15,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
   project(cpp_samples)
 
   ocv_include_directories("${OpenCV_SOURCE_DIR}/include")#for opencv.hpp
-  ocv_include_modules(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS})
+  ocv_include_modules(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS} opencv_nonfree)
 
   if(HAVE_opencv_gpu)
     ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/gpu/include")
diff --git a/samples/cpp/tutorial_code/features2D/SURF_descriptor.cpp b/samples/cpp/tutorial_code/features2D/SURF_descriptor.cpp
index 2fcd884..aeabd8e 100644
--- a/samples/cpp/tutorial_code/features2D/SURF_descriptor.cpp
+++ b/samples/cpp/tutorial_code/features2D/SURF_descriptor.cpp
@@ -80,6 +80,6 @@ int main( int argc, char** argv )
  * @function readme
  */
 void readme()
-{ std::cout << " Usage: ./SURF_descriptor <img1> <img2>" << std::endl; }
+{ printf(" Usage: ./SURF_descriptor <img1> <img2>\n"); }
 
 #endif
\ No newline at end of file
diff --git a/samples/ocl/CMakeLists.txt b/samples/ocl/CMakeLists.txt
index 90856f7..ee6d4f6 100644
--- a/samples/ocl/CMakeLists.txt
+++ b/samples/ocl/CMakeLists.txt
@@ -10,7 +10,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
 
   project("${project}_samples")
 
-  ocv_include_modules(${OPENCV_OCL_SAMPLES_REQUIRED_DEPS})
+  ocv_include_modules(${OPENCV_OCL_SAMPLES_REQUIRED_DEPS} opencv_nonfree)
 
   if(HAVE_OPENCL)
     ocv_include_directories(${OPENCL_INCLUDE_DIR})

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list