Fixed some warnings and install problems on linux
authorAndrey Kamaev <no@email>
Wed, 27 Jun 2012 12:02:31 +0000 (12:02 +0000)
committerAndrey Kamaev <no@email>
Wed, 27 Jun 2012 12:02:31 +0000 (12:02 +0000)
CMakeLists.txt
modules/highgui/src/window_gtk.cpp
modules/videostab/src/motion_stabilizing.cpp
samples/CMakeLists.txt
samples/c/CMakeLists.txt
samples/cpp/CMakeLists.txt
samples/gpu/CMakeLists.txt
samples/gpu/performance/CMakeLists.txt

index fc1c8a8..2a43c0e 100644 (file)
@@ -37,6 +37,7 @@ if(NOT CMAKE_TOOLCHAIN_FILE)
 else(NOT CMAKE_TOOLCHAIN_FILE)
   #Android: set output folder to ${CMAKE_BINARY_DIR}
   set( LIBRARY_OUTPUT_PATH_ROOT ${CMAKE_BINARY_DIR} CACHE PATH "root for library output, set this to change where android libs are compiled to" )
+  # any crosscompiling
   set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Installation Directory")
 endif(NOT CMAKE_TOOLCHAIN_FILE)
 
index 7b9169e..99b16d9 100644 (file)
@@ -851,7 +851,7 @@ namespace
         __END__;
     }
 
-    void GlFuncTab_GTK::generateBitmapFont(const std::string& family, int height, int weight, bool italic, bool underline, int start, int count, int base) const
+    void GlFuncTab_GTK::generateBitmapFont(const std::string& family, int height, int weight, bool italic, bool /*underline*/, int start, int count, int base) const
     {
         PangoFontDescription* fontDecr;
         PangoFont* pangoFont;
index be73991..c4e8c28 100644 (file)
@@ -142,7 +142,7 @@ void LpMotionStabilizer::stabilize(int, const vector<Mat>&, pair<int,int>, Mat*)
 #else
 
 void LpMotionStabilizer::stabilize(
-        int size, const vector<Mat> &motions, pair<int,int> range, Mat *stabilizationMotions)
+        int size, const vector<Mat> &motions, pair<int,int> /*range*/, Mat *stabilizationMotions)
 {
     CV_Assert(model_ <= MM_AFFINE);
 
index cf4d20d..505cd6e 100644 (file)
@@ -1,13 +1,11 @@
 # ----------------------------------------------------------------------------
-#  CMake file for samples. See root CMakeLists.txt 
+#  CMake file for samples. See root CMakeLists.txt
 #
 # ----------------------------------------------------------------------------
 
-if(NOT ANDROID)
-  add_subdirectory(c)
-  add_subdirectory(cpp)
-  add_subdirectory(gpu)
-endif()
+add_subdirectory(c)
+add_subdirectory(cpp)
+add_subdirectory(gpu)
 
 if(ANDROID AND BUILD_ANDROID_EXAMPLES)
   add_subdirectory(android)
index 13672e7..8e7f290 100644 (file)
@@ -15,7 +15,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
   if(CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS)\r
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")\r
   endif()\r
-    \r
+\r
   ocv_include_modules(${OPENCV_C_SAMPLES_REQUIRED_DEPS})\r
 \r
   # ---------------------------------------------\r
@@ -42,9 +42,9 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
               RUNTIME DESTINATION "samples/c" COMPONENT main)\r
     endif()\r
   ENDMACRO()\r
-    \r
+\r
   file(GLOB cpp_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp *.c)\r
-    \r
+\r
   foreach(sample_filename ${cpp_samples})\r
     get_filename_component(sample ${sample_filename} NAME_WE)\r
     OPENCV_DEFINE_C_EXAMPLE(${sample}  ${sample_filename})\r
@@ -54,7 +54,7 @@ endif()
 if (INSTALL_C_EXAMPLES AND NOT WIN32)\r
   file(GLOB C_SAMPLES *.c *.cpp *.jpg *.png *.data makefile.* build_all.sh *.dsp *.cmd )\r
   install(FILES ${C_SAMPLES}\r
-          DESTINATION share/opencv/samples/c\r
+          DESTINATION share/OpenCV/samples/c\r
           PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)\r
 endif ()\r
 \r
index 3f4bb6a..c2b49a7 100644 (file)
@@ -23,7 +23,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
   if(CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
   endif()
-    
+
   # ---------------------------------------------
   #      Define executable targets
   # ---------------------------------------------
@@ -39,7 +39,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
     set_target_properties(${the_target} PROPERTIES
       OUTPUT_NAME "${name}"
       PROJECT_LABEL "(EXAMPLE) ${name}")
-            
+
     if(ENABLE_SOLUTION_FOLDERS)
       set_target_properties(${the_target} PROPERTIES FOLDER "samples//cpp")
     endif()
@@ -52,9 +52,9 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
               RUNTIME DESTINATION "samples/cpp" COMPONENT main)
     endif()
   ENDMACRO()
-    
+
   file(GLOB cpp_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
-    
+
   foreach(sample_filename ${cpp_samples})
     get_filename_component(sample ${sample_filename} NAME_WE)
     OPENCV_DEFINE_CPP_EXAMPLE(${sample}  ${sample_filename})
@@ -64,7 +64,7 @@ endif()
 if (INSTALL_C_EXAMPLES AND NOT WIN32)
   file(GLOB C_SAMPLES *.c *.cpp *.jpg *.png *.data makefile.* build_all.sh *.dsp *.cmd )
   install(FILES ${C_SAMPLES}
-          DESTINATION share/opencv/samples/cpp
+          DESTINATION share/OpenCV/samples/cpp
           PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
 endif()
 
index c1bf36b..96cf949 100644 (file)
@@ -8,7 +8,7 @@ ocv_check_dependencies(${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})
 if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)\r
   set(project "gpu")\r
   string(TOUPPER "${project}" project_upper)\r
-    \r
+\r
   project("${project}_samples")\r
 \r
   ocv_include_modules(${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})\r
@@ -35,9 +35,9 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
     target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})\r
 \r
     set_target_properties(${the_target} PROPERTIES\r
-      OUTPUT_NAME "${name}_${project}"                                       \r
+      OUTPUT_NAME "${name}_${project}"\r
       PROJECT_LABEL "(EXAMPLE_${project_upper}) ${name}")\r
-        \r
+\r
     if(ENABLE_SOLUTION_FOLDERS)\r
       set_target_properties(${the_target} PROPERTIES FOLDER "samples//${project}")\r
     endif()\r
@@ -61,10 +61,10 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
   include("performance/CMakeLists.txt")\r
 endif()\r
 \r
-if (NOT WIN32)\r
+if (INSTALL_C_EXAMPLES AND NOT WIN32)\r
   file(GLOB install_list *.c *.cpp *.jpg *.png *.data makefile.* build_all.sh *.dsp *.cmd )\r
   install(FILES ${install_list}\r
-          DESTINATION share/opencv/samples/${project}\r
+          DESTINATION share/OpenCV/samples/${project}\r
           PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)\r
 endif()\r
 \r
index 6ad99a1..d775037 100644 (file)
@@ -9,18 +9,18 @@ target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_GPU_SAMPLES_R
 set_target_properties(${the_target} PROPERTIES\r
     OUTPUT_NAME "performance_gpu"\r
     PROJECT_LABEL "(EXAMPLE_GPU) performance")\r
-    \r
+\r
 if(ENABLE_SOLUTION_FOLDERS)\r
   set_target_properties(${the_target} PROPERTIES FOLDER "samples//gpu")\r
-endif()        \r
+endif()\r
 \r
 if(WIN32)\r
   install(TARGETS ${the_target} RUNTIME DESTINATION "samples/gpu" COMPONENT main)\r
 endif()\r
 \r
-if(NOT WIN32)\r
+if(INSTALL_C_EXAMPLES AND NOT WIN32)\r
   file(GLOB GPU_FILES performance/*.cpp performance/*.h)\r
   install(FILES ${GPU_FILES}\r
-          DESTINATION share/opencv/samples/gpu/performance\r
+          DESTINATION share/OpenCV/samples/gpu/performance\r
           PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)\r
 endif()\r