Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f7ce70f7
Commit
f7ce70f7
authored
Jul 30, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Jul 30, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1110 from SpecLad:config-cleanup
parents
c43b8965
0b4d0a81
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
212 additions
and
407 deletions
+212
-407
ffmpeg_version.cmake
3rdparty/ffmpeg/ffmpeg_version.cmake
+0
-1
CMakeLists.txt
CMakeLists.txt
+1
-5
OpenCVFindLibsGUI.cmake
cmake/OpenCVFindLibsGUI.cmake
+9
-0
OpenCVFindLibsGrfmt.cmake
cmake/OpenCVFindLibsGrfmt.cmake
+76
-66
OpenCVFindLibsVideo.cmake
cmake/OpenCVFindLibsVideo.cmake
+10
-0
OpenCVGenHeaders.cmake
cmake/OpenCVGenHeaders.cmake
+0
-10
OpenCVGenPkgconfig.cmake
cmake/OpenCVGenPkgconfig.cmake
+0
-1
cvconfig.h.cmake
cmake/templates/cvconfig.h.cmake
+90
-169
opencv-XXX.pc.cmake.in
cmake/templates/opencv-XXX.pc.cmake.in
+1
-1
precomp.hpp
modules/calib3d/src/precomp.hpp
+0
-2
precomp.hpp
modules/contrib/src/precomp.hpp
+0
-2
internal.hpp
modules/core/include/opencv2/core/internal.hpp
+0
-24
types_c.h
modules/core/include/opencv2/core/types_c.h
+1
-1
persistence.cpp
modules/core/src/persistence.cpp
+0
-1
precomp.hpp
modules/core/src/precomp.hpp
+0
-2
system.cpp
modules/core/src/system.cpp
+1
-36
precomp.hpp
modules/features2d/src/precomp.hpp
+0
-2
precomp.hpp
modules/flann/src/precomp.hpp
+0
-2
main.cpp
modules/gpu/perf4au/main.cpp
+0
-2
precomp.hpp
modules/gpu/src/precomp.hpp
+0
-2
CMakeLists.txt
modules/highgui/CMakeLists.txt
+23
-37
grfmt_jpeg2000.cpp
modules/highgui/src/grfmt_jpeg2000.cpp
+0
-6
grfmt_png.cpp
modules/highgui/src/grfmt_png.cpp
+0
-1
test_precomp.hpp
modules/highgui/test/test_precomp.hpp
+0
-2
precomp.hpp
modules/imgproc/src/precomp.hpp
+0
-2
precomp.hpp
modules/legacy/src/precomp.hpp
+0
-2
precomp.hpp
modules/ml/src/precomp.hpp
+0
-2
precomp.hpp
modules/nonfree/src/precomp.hpp
+0
-2
precomp.hpp
modules/objdetect/src/precomp.hpp
+0
-2
test_latentsvmdetector.cpp
modules/objdetect/test/test_latentsvmdetector.cpp
+0
-2
precomp.hpp
modules/ocl/src/precomp.hpp
+0
-2
precomp.hpp
modules/photo/src/precomp.hpp
+0
-2
precomp.hpp
modules/stitching/src/precomp.hpp
+0
-2
perf_precomp.hpp
modules/superres/perf/perf_precomp.hpp
+0
-2
precomp.hpp
modules/superres/src/precomp.hpp
+0
-2
test_precomp.hpp
modules/superres/test/test_precomp.hpp
+0
-2
ts.hpp
modules/ts/include/opencv2/ts/ts.hpp
+0
-2
precomp.hpp
modules/video/src/precomp.hpp
+0
-2
precomp.hpp
modules/videostab/src/precomp.hpp
+0
-2
precomp.hpp
modules/world/src/precomp.hpp
+0
-2
No files found.
3rdparty/ffmpeg/ffmpeg_version.cmake
View file @
f7ce70f7
set
(
NEW_FFMPEG 1
)
set
(
HAVE_FFMPEG_CODEC 1
)
set
(
HAVE_FFMPEG_CODEC 1
)
set
(
HAVE_FFMPEG_FORMAT 1
)
set
(
HAVE_FFMPEG_FORMAT 1
)
set
(
HAVE_FFMPEG_UTIL 1
)
set
(
HAVE_FFMPEG_UTIL 1
)
...
...
CMakeLists.txt
View file @
f7ce70f7
...
@@ -296,7 +296,6 @@ endif()
...
@@ -296,7 +296,6 @@ endif()
# Path for build/platform -specific headers
# Path for build/platform -specific headers
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
set
(
OPENCV_CONFIG_FILE_INCLUDE_DIR
"
${
CMAKE_BINARY_DIR
}
/"
CACHE PATH
"Where to create the platform-dependant cvconfig.h"
)
set
(
OPENCV_CONFIG_FILE_INCLUDE_DIR
"
${
CMAKE_BINARY_DIR
}
/"
CACHE PATH
"Where to create the platform-dependant cvconfig.h"
)
add_definitions
(
-DHAVE_CVCONFIG_H
)
ocv_include_directories
(
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
)
ocv_include_directories
(
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
)
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
...
@@ -370,9 +369,6 @@ if(UNIX)
...
@@ -370,9 +369,6 @@ if(UNIX)
include
(
CheckIncludeFile
)
include
(
CheckIncludeFile
)
if
(
NOT APPLE
)
if
(
NOT APPLE
)
CHECK_INCLUDE_FILE
(
alloca.h HAVE_ALLOCA_H
)
CHECK_FUNCTION_EXISTS
(
alloca HAVE_ALLOCA
)
CHECK_INCLUDE_FILE
(
unistd.h HAVE_UNISTD_H
)
CHECK_INCLUDE_FILE
(
pthread.h HAVE_LIBPTHREAD
)
CHECK_INCLUDE_FILE
(
pthread.h HAVE_LIBPTHREAD
)
if
(
ANDROID
)
if
(
ANDROID
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
dl m log
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
dl m log
)
...
@@ -382,7 +378,7 @@ if(UNIX)
...
@@ -382,7 +378,7 @@ if(UNIX)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
dl m pthread rt
)
set
(
OPENCV_LINKER_LIBS
${
OPENCV_LINKER_LIBS
}
dl m pthread rt
)
endif
()
endif
()
else
()
else
()
add_definitions
(
-DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H
)
set
(
HAVE_LIBPTHREAD YES
)
endif
()
endif
()
endif
()
endif
()
...
...
cmake/OpenCVFindLibsGUI.cmake
View file @
f7ce70f7
...
@@ -65,3 +65,12 @@ if(WITH_OPENGL)
...
@@ -65,3 +65,12 @@ if(WITH_OPENGL)
endif
()
endif
()
endif
()
endif
()
endif
(
WITH_OPENGL
)
endif
(
WITH_OPENGL
)
# --- Carbon & Cocoa ---
if
(
APPLE
)
if
(
WITH_CARBON
)
set
(
HAVE_CARBON YES
)
elif
(
NOT IOS
)
set
(
HAVE_COCOA YES
)
endif
()
endif
()
cmake/OpenCVFindLibsGrfmt.cmake
View file @
f7ce70f7
...
@@ -36,56 +36,58 @@ if(WITH_TIFF)
...
@@ -36,56 +36,58 @@ if(WITH_TIFF)
ocv_parse_header
(
"
${
TIFF_INCLUDE_DIR
}
/tiff.h"
TIFF_VERSION_LINES TIFF_VERSION_CLASSIC TIFF_VERSION_BIG TIFF_VERSION TIFF_BIGTIFF_VERSION
)
ocv_parse_header
(
"
${
TIFF_INCLUDE_DIR
}
/tiff.h"
TIFF_VERSION_LINES TIFF_VERSION_CLASSIC TIFF_VERSION_BIG TIFF_VERSION TIFF_BIGTIFF_VERSION
)
endif
()
endif
()
endif
()
endif
()
endif
()
if
(
WITH_TIFF AND
NOT TIFF_FOUND
)
if
(
NOT TIFF_FOUND
)
ocv_clear_vars
(
TIFF_LIBRARY TIFF_LIBRARIES TIFF_INCLUDE_DIR
)
ocv_clear_vars
(
TIFF_LIBRARY TIFF_LIBRARIES TIFF_INCLUDE_DIR
)
set
(
TIFF_LIBRARY libtiff
)
set
(
TIFF_LIBRARY libtiff
)
set
(
TIFF_LIBRARIES
${
TIFF_LIBRARY
}
)
set
(
TIFF_LIBRARIES
${
TIFF_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libtiff"
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libtiff"
)
set
(
TIFF_INCLUDE_DIR
"
${${
TIFF_LIBRARY
}
_SOURCE_DIR
}
"
"
${${
TIFF_LIBRARY
}
_BINARY_DIR
}
"
)
set
(
TIFF_INCLUDE_DIR
"
${${
TIFF_LIBRARY
}
_SOURCE_DIR
}
"
"
${${
TIFF_LIBRARY
}
_BINARY_DIR
}
"
)
ocv_parse_header
(
"
${${
TIFF_LIBRARY
}
_SOURCE_DIR
}
/tiff.h"
TIFF_VERSION_LINES TIFF_VERSION_CLASSIC TIFF_VERSION_BIG TIFF_VERSION TIFF_BIGTIFF_VERSION
)
ocv_parse_header
(
"
${${
TIFF_LIBRARY
}
_SOURCE_DIR
}
/tiff.h"
TIFF_VERSION_LINES TIFF_VERSION_CLASSIC TIFF_VERSION_BIG TIFF_VERSION TIFF_BIGTIFF_VERSION
)
endif
()
endif
()
if
(
TIFF_VERSION_CLASSIC AND NOT TIFF_VERSION
)
if
(
TIFF_VERSION_CLASSIC AND NOT TIFF_VERSION
)
set
(
TIFF_VERSION
${
TIFF_VERSION_CLASSIC
}
)
set
(
TIFF_VERSION
${
TIFF_VERSION_CLASSIC
}
)
endif
()
endif
()
if
(
TIFF_BIGTIFF_VERSION AND NOT TIFF_VERSION_BIG
)
if
(
TIFF_BIGTIFF_VERSION AND NOT TIFF_VERSION_BIG
)
set
(
TIFF_VERSION_BIG
${
TIFF_BIGTIFF_VERSION
}
)
set
(
TIFF_VERSION_BIG
${
TIFF_BIGTIFF_VERSION
}
)
endif
()
endif
()
if
(
NOT TIFF_VERSION_STRING AND TIFF_INCLUDE_DIR
)
if
(
NOT TIFF_VERSION_STRING AND TIFF_INCLUDE_DIR
)
list
(
GET TIFF_INCLUDE_DIR 0 _TIFF_INCLUDE_DIR
)
list
(
GET TIFF_INCLUDE_DIR 0 _TIFF_INCLUDE_DIR
)
if
(
EXISTS
"
${
_TIFF_INCLUDE_DIR
}
/tiffvers.h"
)
if
(
EXISTS
"
${
_TIFF_INCLUDE_DIR
}
/tiffvers.h"
)
file
(
STRINGS
"
${
_TIFF_INCLUDE_DIR
}
/tiffvers.h"
tiff_version_str REGEX
"^#define[
\t
]+TIFFLIB_VERSION_STR[
\t
]+
\"
LIBTIFF, Version .*"
)
file
(
STRINGS
"
${
_TIFF_INCLUDE_DIR
}
/tiffvers.h"
tiff_version_str REGEX
"^#define[
\t
]+TIFFLIB_VERSION_STR[
\t
]+
\"
LIBTIFF, Version .*"
)
string
(
REGEX REPLACE
"^#define[
\t
]+TIFFLIB_VERSION_STR[
\t
]+
\"
LIBTIFF, Version +([^
\\
n]*).*"
"
\\
1"
TIFF_VERSION_STRING
"
${
tiff_version_str
}
"
)
string
(
REGEX REPLACE
"^#define[
\t
]+TIFFLIB_VERSION_STR[
\t
]+
\"
LIBTIFF, Version +([^
\\
n]*).*"
"
\\
1"
TIFF_VERSION_STRING
"
${
tiff_version_str
}
"
)
unset
(
tiff_version_str
)
unset
(
tiff_version_str
)
endif
()
unset
(
_TIFF_INCLUDE_DIR
)
endif
()
endif
()
unset
(
_TIFF_INCLUDE_DIR
)
set
(
HAVE_TIFF YES
)
endif
()
endif
()
# --- libjpeg (optional) ---
# --- libjpeg (optional) ---
if
(
WITH_JPEG
AND NOT IOS
)
if
(
WITH_JPEG
)
if
(
BUILD_JPEG
)
if
(
BUILD_JPEG
)
ocv_clear_vars
(
JPEG_FOUND
)
ocv_clear_vars
(
JPEG_FOUND
)
else
()
else
()
include
(
FindJPEG
)
include
(
FindJPEG
)
endif
()
endif
()
endif
()
if
(
WITH_JPEG AND NOT JPEG_FOUND
)
if
(
NOT JPEG_FOUND
)
ocv_clear_vars
(
JPEG_LIBRARY JPEG_LIBRARIES JPEG_INCLUDE_DIR
)
ocv_clear_vars
(
JPEG_LIBRARY JPEG_LIBRARIES JPEG_INCLUDE_DIR
)
set
(
JPEG_LIBRARY libjpeg
)
set
(
JPEG_LIBRARIES
${
JPEG_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libjpeg"
)
set
(
JPEG_INCLUDE_DIR
"
${${
JPEG_LIBRARY
}
_SOURCE_DIR
}
"
)
endif
()
ocv_parse_header
(
"
${
JPEG_INCLUDE_DIR
}
/jpeglib.h"
JPEG_VERSION_LINES JPEG_LIB_VERSION
)
set
(
JPEG_LIBRARY libjpeg
)
set
(
JPEG_LIBRARIES
${
JPEG_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libjpeg"
)
set
(
JPEG_INCLUDE_DIR
"
${${
JPEG_LIBRARY
}
_SOURCE_DIR
}
"
)
endif
()
ocv_parse_header
(
"
${
JPEG_INCLUDE_DIR
}
/jpeglib.h"
JPEG_VERSION_LINES JPEG_LIB_VERSION
)
set
(
HAVE_JPEG YES
)
endif
()
# --- libjasper (optional, should be searched after libjpeg) ---
# --- libjasper (optional, should be searched after libjpeg) ---
if
(
WITH_JASPER
)
if
(
WITH_JASPER
)
...
@@ -94,19 +96,21 @@ if(WITH_JASPER)
...
@@ -94,19 +96,21 @@ if(WITH_JASPER)
else
()
else
()
include
(
FindJasper
)
include
(
FindJasper
)
endif
()
endif
()
endif
()
if
(
WITH_JASPER AND
NOT JASPER_FOUND
)
if
(
NOT JASPER_FOUND
)
ocv_clear_vars
(
JASPER_LIBRARY JASPER_LIBRARIES JASPER_INCLUDE_DIR
)
ocv_clear_vars
(
JASPER_LIBRARY JASPER_LIBRARIES JASPER_INCLUDE_DIR
)
set
(
JASPER_LIBRARY libjasper
)
set
(
JASPER_LIBRARY libjasper
)
set
(
JASPER_LIBRARIES
${
JASPER_LIBRARY
}
)
set
(
JASPER_LIBRARIES
${
JASPER_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libjasper"
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libjasper"
)
set
(
JASPER_INCLUDE_DIR
"
${${
JASPER_LIBRARY
}
_SOURCE_DIR
}
"
)
set
(
JASPER_INCLUDE_DIR
"
${${
JASPER_LIBRARY
}
_SOURCE_DIR
}
"
)
endif
()
endif
()
set
(
HAVE_JASPER YES
)
if
(
NOT JASPER_VERSION_STRING
)
if
(
NOT JASPER_VERSION_STRING
)
ocv_parse_header2
(
JASPER
"
${
JASPER_INCLUDE_DIR
}
/jasper/jas_config.h"
JAS_VERSION
""
)
ocv_parse_header2
(
JASPER
"
${
JASPER_INCLUDE_DIR
}
/jasper/jas_config.h"
JAS_VERSION
""
)
endif
()
endif
()
endif
()
# --- libpng (optional, should be searched after zlib) ---
# --- libpng (optional, should be searched after zlib) ---
...
@@ -117,29 +121,29 @@ if(WITH_PNG AND NOT IOS)
...
@@ -117,29 +121,29 @@ if(WITH_PNG AND NOT IOS)
include
(
FindPNG
)
include
(
FindPNG
)
if
(
PNG_FOUND
)
if
(
PNG_FOUND
)
include
(
CheckIncludeFile
)
include
(
CheckIncludeFile
)
check_include_file
(
"
${
PNG_PNG_INCLUDE_DIR
}
/png.h"
HAVE_PNG_H
)
check_include_file
(
"
${
PNG_PNG_INCLUDE_DIR
}
/libpng/png.h"
HAVE_LIBPNG_PNG_H
)
check_include_file
(
"
${
PNG_PNG_INCLUDE_DIR
}
/libpng/png.h"
HAVE_LIBPNG_PNG_H
)
if
(
HAVE_PNG_H
)
if
(
HAVE_LIBPNG_PNG_H
)
ocv_parse_header
(
"
${
PNG_PNG_INCLUDE_DIR
}
/png.h"
PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE
)
elseif
(
HAVE_LIBPNG_PNG_H
)
ocv_parse_header
(
"
${
PNG_PNG_INCLUDE_DIR
}
/libpng/png.h"
PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE
)
ocv_parse_header
(
"
${
PNG_PNG_INCLUDE_DIR
}
/libpng/png.h"
PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE
)
else
()
ocv_parse_header
(
"
${
PNG_PNG_INCLUDE_DIR
}
/png.h"
PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE
)
endif
()
endif
()
endif
()
endif
()
endif
()
endif
()
endif
()
if
(
WITH_PNG AND
NOT PNG_FOUND
)
if
(
NOT PNG_FOUND
)
ocv_clear_vars
(
PNG_LIBRARY PNG_LIBRARIES PNG_INCLUDE_DIR PNG_PNG_INCLUDE_DIR HAVE_PNG_H
HAVE_LIBPNG_PNG_H PNG_DEFINITIONS
)
ocv_clear_vars
(
PNG_LIBRARY PNG_LIBRARIES PNG_INCLUDE_DIR PNG_PNG_INCLUDE_DIR
HAVE_LIBPNG_PNG_H PNG_DEFINITIONS
)
set
(
PNG_LIBRARY libpng
)
set
(
PNG_LIBRARY libpng
)
set
(
PNG_LIBRARIES
${
PNG_LIBRARY
}
)
set
(
PNG_LIBRARIES
${
PNG_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libpng"
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libpng"
)
set
(
PNG_INCLUDE_DIR
"
${${
PNG_LIBRARY
}
_SOURCE_DIR
}
"
)
set
(
PNG_INCLUDE_DIR
"
${${
PNG_LIBRARY
}
_SOURCE_DIR
}
"
)
set
(
PNG_DEFINITIONS
""
)
set
(
PNG_DEFINITIONS
""
)
ocv_parse_header
(
"
${
PNG_INCLUDE_DIR
}
/png.h"
PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE
)
ocv_parse_header
(
"
${
PNG_INCLUDE_DIR
}
/png.h"
PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE
)
endif
()
endif
()
set
(
PNG_VERSION
"
${
PNG_LIBPNG_VER_MAJOR
}
.
${
PNG_LIBPNG_VER_MINOR
}
.
${
PNG_LIBPNG_VER_RELEASE
}
"
)
set
(
HAVE_PNG YES
)
set
(
PNG_VERSION
"
${
PNG_LIBPNG_VER_MAJOR
}
.
${
PNG_LIBPNG_VER_MINOR
}
.
${
PNG_LIBPNG_VER_RELEASE
}
"
)
endif
()
# --- OpenEXR (optional) ---
# --- OpenEXR (optional) ---
if
(
WITH_OPENEXR
)
if
(
WITH_OPENEXR
)
...
@@ -148,17 +152,24 @@ if(WITH_OPENEXR)
...
@@ -148,17 +152,24 @@ if(WITH_OPENEXR)
else
()
else
()
include
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/OpenCVFindOpenEXR.cmake"
)
include
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/OpenCVFindOpenEXR.cmake"
)
endif
()
endif
()
endif
()
if
(
WITH_OPENEXR AND NOT OPENEXR_FOUND
)
if
(
NOT OPENEXR_FOUND
)
ocv_clear_vars
(
OPENEXR_INCLUDE_PATHS OPENEXR_LIBRARIES OPENEXR_ILMIMF_LIBRARY OPENEXR_VERSION
)
ocv_clear_vars
(
OPENEXR_INCLUDE_PATHS OPENEXR_LIBRARIES OPENEXR_ILMIMF_LIBRARY OPENEXR_VERSION
)
set
(
OPENEXR_LIBRARIES IlmImf
)
set
(
OPENEXR_ILMIMF_LIBRARY IlmImf
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/openexr"
)
endif
()
set
(
OPENEXR_LIBRARIES IlmImf
)
set
(
HAVE_OPENEXR YES
)
set
(
OPENEXR_ILMIMF_LIBRARY IlmImf
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/openexr"
)
endif
()
endif
()
#cmake 2.8.2 bug - it fails to determine zlib version
#cmake 2.8.2 bug - it fails to determine zlib version
if
(
ZLIB_FOUND
)
if
(
ZLIB_FOUND
)
ocv_parse_header2
(
ZLIB
"
${
ZLIB_INCLUDE_DIR
}
/zlib.h"
ZLIB_VERSION
)
ocv_parse_header2
(
ZLIB
"
${
ZLIB_INCLUDE_DIR
}
/zlib.h"
ZLIB_VERSION
)
endif
()
endif
()
\ No newline at end of file
# --- Apple ImageIO ---
if
(
WITH_IMAGEIO
)
set
(
HAVE_IMAGEIO YES
)
endif
()
cmake/OpenCVFindLibsVideo.cmake
View file @
f7ce70f7
...
@@ -228,3 +228,13 @@ if(WIN32)
...
@@ -228,3 +228,13 @@ if(WIN32)
list
(
APPEND HIGHGUI_LIBRARIES winmm
)
list
(
APPEND HIGHGUI_LIBRARIES winmm
)
endif
()
endif
()
endif
(
WIN32
)
endif
(
WIN32
)
# --- Apple AV Foundation ---
if
(
WITH_AVFOUNDATION
)
set
(
HAVE_AVFOUNDATION YES
)
endif
()
# --- QuickTime ---
if
(
WITH_QUICKTIME
)
set
(
HAVE_QUICKTIME YES
)
endif
()
cmake/OpenCVGenHeaders.cmake
View file @
f7ce70f7
# ----------------------------------------------------------------------------
# Variables for cvconfig.h.cmake
# ----------------------------------------------------------------------------
set
(
PACKAGE
"opencv"
)
set
(
PACKAGE_BUGREPORT
"opencvlibrary-devel@lists.sourceforge.net"
)
set
(
PACKAGE_NAME
"opencv"
)
set
(
PACKAGE_STRING
"
${
PACKAGE
}
${
OPENCV_VERSION
}
"
)
set
(
PACKAGE_TARNAME
"
${
PACKAGE
}
"
)
set
(
PACKAGE_VERSION
"
${
OPENCV_VERSION
}
"
)
# platform-specific config file
# platform-specific config file
configure_file
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/templates/cvconfig.h.cmake"
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/cvconfig.h"
)
configure_file
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/templates/cvconfig.h.cmake"
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/cvconfig.h"
)
...
...
cmake/OpenCVGenPkgconfig.cmake
View file @
f7ce70f7
...
@@ -12,7 +12,6 @@ set(prefix "${CMAKE_INSTALL_PREFIX}")
...
@@ -12,7 +12,6 @@ set(prefix "${CMAKE_INSTALL_PREFIX}")
set
(
exec_prefix
"
\$
{prefix}"
)
set
(
exec_prefix
"
\$
{prefix}"
)
set
(
libdir
""
)
#TODO: need link paths for OpenCV_EXTRA_COMPONENTS
set
(
libdir
""
)
#TODO: need link paths for OpenCV_EXTRA_COMPONENTS
set
(
includedir
"
\$
{prefix}/
${
OPENCV_INCLUDE_INSTALL_PATH
}
"
)
set
(
includedir
"
\$
{prefix}/
${
OPENCV_INCLUDE_INSTALL_PATH
}
"
)
set
(
VERSION
${
OPENCV_VERSION
}
)
if
(
CMAKE_BUILD_TYPE MATCHES
"Release"
)
if
(
CMAKE_BUILD_TYPE MATCHES
"Release"
)
set
(
ocv_optkind OPT
)
set
(
ocv_optkind OPT
)
...
...
cmake/templates/cvconfig.h.cmake
View file @
f7ce70f7
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
/* OpenCV compiled as static or dynamic libs */
systems. This function is required for `alloca.c' support on those systems.
#cmakedefine BUILD_SHARED_LIBS
*/
#cmakedefine CRAY_STACKSEG_END
/*
Define to 1 if using `alloca.c'.
*/
/*
Compile for 'real' NVIDIA GPU architectures
*/
#
cmakedefine C_ALLOCA
#
define CUDA_ARCH_BIN "${OPENCV_CUDA_ARCH_BIN}"
/*
Define to 1 if you have `alloca', as a function or macro.
*/
/*
Create PTX or BIN for 1.0 compute capability
*/
#cmakedefine
HAVE_ALLOCA 1
#cmakedefine
CUDA_ARCH_BIN_OR_PTX_10
/* Define to 1 if you have <alloca.h> and it should be
used
(
not on Ultrix
)
.
/* NVIDIA GPU features are used */
*/
#define CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES}"
#cmakedefine HAVE_ALLOCA_H 1
/* Video for Windows support */
/* Compile for 'virtual' NVIDIA PTX architectures */
#cmakedefine HAVE_VFW
#define CUDA_ARCH_PTX "${OPENCV_CUDA_ARCH_PTX}"
/* AVFoundation video libraries */
#cmakedefine HAVE_AVFOUNDATION
/* V4L capturing support */
/* V4L capturing support */
#cmakedefine HAVE_CAMV4L
#cmakedefine HAVE_CAMV4L
...
@@ -22,15 +22,30 @@
...
@@ -22,15 +22,30 @@
/* V4L2 capturing support */
/* V4L2 capturing support */
#cmakedefine HAVE_CAMV4L2
#cmakedefine HAVE_CAMV4L2
/* V4L2 capturing support in videoio.h */
#cmakedefine HAVE_VIDEOIO
/* V4L/V4L2 capturing support via libv4l */
#cmakedefine HAVE_LIBV4L
/* Carbon windowing environment */
/* Carbon windowing environment */
#cmakedefine HAVE_CARBON
#cmakedefine HAVE_CARBON
/* AMD's Basic Linear Algebra Subprograms Library*/
#cmakedefine HAVE_CLAMDBLAS
/* AMD's OpenCL Fast Fourier Transform Library*/
#cmakedefine HAVE_CLAMDFFT
/* Cocoa API */
#cmakedefine HAVE_COCOA
/* C= */
#cmakedefine HAVE_CSTRIPES
/* NVidia Cuda Basic Linear Algebra
Subprograms
(
BLAS
)
API*/
#cmakedefine HAVE_CUBLAS
/* NVidia Cuda Runtime API*/
#cmakedefine HAVE_CUDA
/* NVidia Cuda Fast Fourier
Transform
(
FFT
)
API*/
#cmakedefine HAVE_CUFFT
/* IEEE1394 capturing support */
/* IEEE1394 capturing support */
#cmakedefine HAVE_DC1394
#cmakedefine HAVE_DC1394
...
@@ -40,197 +55,103 @@
...
@@ -40,197 +55,103 @@
/* IEEE1394 capturing support - libdc1394 v2.x */
/* IEEE1394 capturing support - libdc1394 v2.x */
#cmakedefine HAVE_DC1394_2
#cmakedefine HAVE_DC1394_2
/*
ffmpeg in Gentoo
*/
/*
DirectShow Video Capture library
*/
#cmakedefine HAVE_
GENTOO_FFMPEG
#cmakedefine HAVE_
DSHOW
/*
FFMpeg video l
ibrary */
/*
Eigen Matrix & Linear Algebra L
ibrary */
#cmakedefine
HAVE_FFMPEG
#cmakedefine
HAVE_EIGEN
/* FFMpeg v
ersion flag
*/
/* FFMpeg v
ideo library
*/
#cmakedefine
NEW
_FFMPEG
#cmakedefine
HAVE
_FFMPEG
/* ffmpeg's libswscale */
/* ffmpeg's libswscale */
#cmakedefine HAVE_FFMPEG_SWSCALE
#cmakedefine HAVE_FFMPEG_SWSCALE
/* ffmpeg in Gentoo */
#cmakedefine HAVE_GENTOO_FFMPEG
/* GStreamer multimedia framework */
/* GStreamer multimedia framework */
#cmakedefine
HAVE_GSTREAMER
#cmakedefine HAVE_GSTREAMER
/* GTK+ 2.0 Thread support */
/* GTK+ 2.0 Thread support */
#cmakedefine HAVE_GTHREAD
#cmakedefine HAVE_GTHREAD
/* Win32 UI */
#cmakedefine HAVE_WIN32UI
/* GTK+ 2.x toolkit */
/* GTK+ 2.x toolkit */
#cmakedefine HAVE_GTK
#cmakedefine HAVE_GTK
/* OpenEXR codec */
#cmakedefine HAVE_ILMIMF
/* Apple ImageIO Framework */
/* Apple ImageIO Framework */
#cmakedefine
HAVE_IMAGEIO
#cmakedefine HAVE_IMAGEIO
/*
Define to 1 if you have the <inttypes.h> header file.
*/
/*
Intel Integrated Performance Primitives
*/
#cmakedefine
HAVE_INTTYPES_H 1
#cmakedefine
HAVE_IPP
/* JPEG-2000 codec */
/* JPEG-2000 codec */
#cmakedefine
HAVE_JASPER
#cmakedefine HAVE_JASPER
/* IJG JPEG codec */
/* IJG JPEG codec */
#cmakedefine HAVE_JPEG
#cmakedefine HAVE_JPEG
/* Define to 1 if you have the `dl'
library
(
-ldl
)
. */
#cmakedefine HAVE_LIBDL 1
/* Define to 1 if you have the `gomp'
library
(
-lgomp
)
. */
#cmakedefine HAVE_LIBGOMP 1
/* Define to 1 if you have the `m'
library
(
-lm
)
. */
#cmakedefine HAVE_LIBM 1
/* libpng/png.h needs to be included */
/* libpng/png.h needs to be included */
#cmakedefine HAVE_LIBPNG_PNG_H
#cmakedefine HAVE_LIBPNG_PNG_H
/* Define to 1 if you have the `pthread'
library
(
-lpthread
)
. */
#cmakedefine HAVE_LIBPTHREAD 1
/* Define to 1 if you have the `lrint' function. */
#cmakedefine HAVE_LRINT 1
/* PNG codec */
/* V4L/V4L2 capturing support via libv4l */
#cmakedefine HAVE_PNG
#cmakedefine HAVE_LIBV4L
/* Define to 1 if you have the `png_get_valid' function. */
#cmakedefine HAVE_PNG_GET_VALID 1
/* png.h needs to be included */
#cmakedefine HAVE_PNG_H
/* Define to 1 if you have the `png_set_tRNS_to_alpha' function. */
#cmakedefine HAVE_PNG_SET_TRNS_TO_ALPHA 1
/* QuickTime video libraries */
#cmakedefine HAVE_QUICKTIME
/*
AVFoundation video libraries
*/
/*
Microsoft Media Foundation Capture library
*/
#cmakedefine
HAVE_AVFOUNDATION
#cmakedefine
HAVE_MSMF
/*
TIFF codec
*/
/*
NVidia Video Decoding API
*/
#cmakedefine
HAVE_TIFF
#cmakedefine
HAVE_NVCUVID
/*
Unicap video capture library
*/
/*
OpenCL Support
*/
#cmakedefine
HAVE_UNICAP
#cmakedefine
HAVE_OPENCL
/*
Define to 1 if you have the <unistd.h> header file.
*/
/*
OpenEXR codec
*/
#cmakedefine
HAVE_UNISTD_H 1
#cmakedefine
HAVE_OPENEXR
/*
Xine video library
*/
/*
OpenGL support
*/
#cmakedefine
HAVE_XINE
#cmakedefine
HAVE_OPENGL
/* OpenNI library */
/* OpenNI library */
#cmakedefine HAVE_OPENNI
#cmakedefine HAVE_OPENNI
/* LZ77 compression/decompression
library
(
used for PNG
)
*/
#cmakedefine HAVE_ZLIB
/* Intel Integrated Performance Primitives */
#cmakedefine HAVE_IPP
/* OpenCV compiled as static or dynamic libs */
#cmakedefine BUILD_SHARED_LIBS
/* Name of package */
#define PACKAGE "${PACKAGE}"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "${PACKAGE_BUGREPORT}"
/* Define to the full name of this package. */
#define PACKAGE_NAME "${PACKAGE_NAME}"
/* Define to the full name and version of this package. */
/* PNG codec */
#define PACKAGE_STRING "${PACKAGE_STRING}"
#cmakedefine HAVE_PNG
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "${PACKAGE_TARNAME}"
/* Define to the version of this package. */
#define PACKAGE_VERSION "${PACKAGE_VERSION}"
/* If using the C implementation of alloca, define if you know the
/* Qt support */
direction of stack growth for your system; otherwise it will be
#cmakedefine HAVE_QT
automatically deduced at runtime.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
#cmakedefine STACK_DIRECTION
/*
Version number of package
*/
/*
Qt OpenGL support
*/
#
define VERSION "${PACKAGE_VERSION}"
#
cmakedefine HAVE_QT_OPENGL
/* Define to 1 if your processor stores words with the most significant byte
/* QuickTime video libraries */
first
(
like Motorola and SPARC, unlike Intel and VAX
)
. */
#cmakedefine HAVE_QUICKTIME
#cmakedefine WORDS_BIGENDIAN
/* Intel Threading Building Blocks */
/* Intel Threading Building Blocks */
#cmakedefine HAVE_TBB
#cmakedefine HAVE_TBB
/* C= */
#cmakedefine HAVE_CSTRIPES
/* Eigen Matrix & Linear Algebra Library */
#cmakedefine HAVE_EIGEN
/* NVidia Cuda Runtime API*/
#cmakedefine HAVE_CUDA
/* NVidia Cuda Fast Fourier
Transform
(
FFT
)
API*/
#cmakedefine HAVE_CUFFT
/* NVidia Cuda Basic Linear Algebra
Subprograms
(
BLAS
)
API*/
#cmakedefine HAVE_CUBLAS
/* NVidia Video Decoding API*/
#cmakedefine HAVE_NVCUVID
/* Compile for 'real' NVIDIA GPU architectures */
#define CUDA_ARCH_BIN "${OPENCV_CUDA_ARCH_BIN}"
/* Compile for 'virtual' NVIDIA PTX architectures */
#define CUDA_ARCH_PTX "${OPENCV_CUDA_ARCH_PTX}"
/* NVIDIA GPU features are used */
#define CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES}"
/* Create PTX or BIN for 1.0 compute capability */
#cmakedefine CUDA_ARCH_BIN_OR_PTX_10
/*
OpenCL Support
*/
/*
TIFF codec
*/
#cmakedefine HAVE_
OPENCL
#cmakedefine HAVE_
TIFF
/*
AMD's OpenCL Fast Fourier Transform Library
*/
/*
Unicap video capture library
*/
#cmakedefine HAVE_
CLAMDFFT
#cmakedefine HAVE_
UNICAP
/*
AMD's Basic Linear Algebra Subprograms Library
*/
/*
Video for Windows support
*/
#cmakedefine HAVE_
CLAMDBLAS
#cmakedefine HAVE_
VFW
/*
DirectShow Video Capture library
*/
/*
V4L2 capturing support in videoio.h
*/
#cmakedefine HAVE_
DSHOW
#cmakedefine HAVE_
VIDEOIO
/*
Microsoft Media Foundation Capture library
*/
/*
Win32 UI
*/
#cmakedefine HAVE_
MSMF
#cmakedefine HAVE_
WIN32UI
/* XIMEA camera support */
/* XIMEA camera support */
#cmakedefine HAVE_XIMEA
#cmakedefine HAVE_XIMEA
/* OpenGL support*/
/* Xine video library */
#cmakedefine HAVE_OPENGL
#cmakedefine HAVE_XINE
/* Clp support */
#cmakedefine HAVE_CLP
/* Qt support */
/* Define to 1 if your processor stores words with the most significant byte
#cmakedefine HAVE_QT
first
(
like Motorola and SPARC, unlike Intel and VAX
)
. */
#cmakedefine WORDS_BIGENDIAN
/* Qt OpenGL support */
#cmakedefine HAVE_QT_OPENGL
cmake/templates/opencv-XXX.pc.cmake.in
View file @
f7ce70f7
...
@@ -8,6 +8,6 @@ includedir_new=@includedir@
...
@@ -8,6 +8,6 @@ includedir_new=@includedir@
Name: OpenCV
Name: OpenCV
Description: Open Source Computer Vision Library
Description: Open Source Computer Vision Library
Version: @VERSION@
Version: @
OPENCV_
VERSION@
Libs: @OpenCV_LIB_COMPONENTS@
Libs: @OpenCV_LIB_COMPONENTS@
Cflags: -I${includedir_old} -I${includedir_new}
Cflags: -I${includedir_old} -I${includedir_new}
modules/calib3d/src/precomp.hpp
View file @
f7ce70f7
...
@@ -42,9 +42,7 @@
...
@@ -42,9 +42,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc.hpp"
...
...
modules/contrib/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/features2d/features2d.hpp"
...
...
modules/core/include/opencv2/core/internal.hpp
View file @
f7ce70f7
...
@@ -340,25 +340,6 @@ namespace cv
...
@@ -340,25 +340,6 @@ namespace cv
* Common declarations *
* Common declarations *
\****************************************************************************************/
\****************************************************************************************/
/* get alloca declaration */
#ifdef __GNUC__
# undef alloca
# define alloca __builtin_alloca
# define CV_HAVE_ALLOCA 1
#elif defined WIN32 || defined _WIN32 || \
defined WINCE || defined _MSC_VER || defined __BORLANDC__
# include <malloc.h>
# define CV_HAVE_ALLOCA 1
#elif defined HAVE_ALLOCA_H
# include <alloca.h>
# define CV_HAVE_ALLOCA 1
#elif defined HAVE_ALLOCA
# include <stdlib.h>
# define CV_HAVE_ALLOCA 1
#else
# undef CV_HAVE_ALLOCA
#endif
#ifdef __GNUC__
#ifdef __GNUC__
# define CV_DECL_ALIGNED(x) __attribute__ ((aligned (x)))
# define CV_DECL_ALIGNED(x) __attribute__ ((aligned (x)))
#elif defined _MSC_VER
#elif defined _MSC_VER
...
@@ -367,11 +348,6 @@ namespace cv
...
@@ -367,11 +348,6 @@ namespace cv
# define CV_DECL_ALIGNED(x)
# define CV_DECL_ALIGNED(x)
#endif
#endif
#if CV_HAVE_ALLOCA
/* ! DO NOT make it an inline function */
# define cvStackAlloc(size) cvAlignPtr( alloca((size) + CV_MALLOC_ALIGN), CV_MALLOC_ALIGN )
#endif
#ifndef CV_IMPL
#ifndef CV_IMPL
# define CV_IMPL CV_EXTERN_C
# define CV_IMPL CV_EXTERN_C
#endif
#endif
...
...
modules/core/include/opencv2/core/types_c.h
View file @
f7ce70f7
...
@@ -317,7 +317,7 @@ CV_INLINE int cvRound( double value )
...
@@ -317,7 +317,7 @@ CV_INLINE int cvRound( double value )
return
t
;
return
t
;
#elif defined _MSC_VER && defined _M_ARM && defined HAVE_TEGRA_OPTIMIZATION
#elif defined _MSC_VER && defined _M_ARM && defined HAVE_TEGRA_OPTIMIZATION
TEGRA_ROUND
(
value
);
TEGRA_ROUND
(
value
);
#elif defined
HAVE_LRINT || defined
CV_ICC || defined __GNUC__
#elif defined CV_ICC || defined __GNUC__
# ifdef HAVE_TEGRA_OPTIMIZATION
# ifdef HAVE_TEGRA_OPTIMIZATION
TEGRA_ROUND
(
value
);
TEGRA_ROUND
(
value
);
# else
# else
...
...
modules/core/src/persistence.cpp
View file @
f7ce70f7
...
@@ -59,7 +59,6 @@
...
@@ -59,7 +59,6 @@
#endif
#endif
#if USE_ZLIB
#if USE_ZLIB
# undef HAVE_UNISTD_H //to avoid redefinition
# ifndef _LFS64_LARGEFILE
# ifndef _LFS64_LARGEFILE
# define _LFS64_LARGEFILE 0
# define _LFS64_LARGEFILE 0
# endif
# endif
...
...
modules/core/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/core/core.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/core/core_c.h"
#include "opencv2/core/core_c.h"
...
...
modules/core/src/system.cpp
View file @
f7ce70f7
...
@@ -469,40 +469,6 @@ redirectError( CvErrorCallback errCallback, void* userdata, void** prevUserdata)
...
@@ -469,40 +469,6 @@ redirectError( CvErrorCallback errCallback, void* userdata, void** prevUserdata)
}
}
/*CV_IMPL int
cvGuiBoxReport( int code, const char *func_name, const char *err_msg,
const char *file, int line, void* )
{
#if (!defined WIN32 && !defined _WIN32) || defined WINCE
return cvStdErrReport( code, func_name, err_msg, file, line, 0 );
#else
if( code != CV_StsBackTrace && code != CV_StsAutoTrace )
{
size_t msg_len = strlen(err_msg ? err_msg : "") + 1024;
char* message = (char*)alloca(msg_len);
char title[100];
wsprintf( message, "%s (%s)\nin function %s, %s(%d)\n\n"
"Press \"Abort\" to terminate application.\n"
"Press \"Retry\" to debug (if the app is running under debugger).\n"
"Press \"Ignore\" to continue (this is not safe).\n",
cvErrorStr(code), err_msg ? err_msg : "no description",
func_name, file, line );
wsprintf( title, "OpenCV GUI Error Handler" );
int answer = MessageBox( NULL, message, title, MB_ICONERROR|MB_ABORTRETRYIGNORE|MB_SYSTEMMODAL );
if( answer == IDRETRY )
{
CV_DBG_BREAK();
}
return answer != IDIGNORE;
}
return 0;
#endif
}*/
CV_IMPL
int
cvCheckHardwareSupport
(
int
feature
)
CV_IMPL
int
cvCheckHardwareSupport
(
int
feature
)
{
{
CV_DbgAssert
(
0
<=
feature
&&
feature
<=
CV_HARDWARE_MAX_FEATURE
);
CV_DbgAssert
(
0
<=
feature
&&
feature
<=
CV_HARDWARE_MAX_FEATURE
);
...
@@ -904,4 +870,4 @@ bool Mutex::trylock() { return impl->trylock(); }
...
@@ -904,4 +870,4 @@ bool Mutex::trylock() { return impl->trylock(); }
}
}
/* End of file. */
/* End of file. */
\ No newline at end of file
modules/features2d/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc.hpp"
...
...
modules/flann/src/precomp.hpp
View file @
f7ce70f7
...
@@ -5,9 +5,7 @@
...
@@ -5,9 +5,7 @@
#include <cstdarg>
#include <cstdarg>
#include <sstream>
#include <sstream>
#ifdef HAVE_CVCONFIG_H
# include "cvconfig.h"
# include "cvconfig.h"
#endif
#include "opencv2/core/core.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/core/internal.hpp"
#include "opencv2/core/internal.hpp"
...
...
modules/gpu/perf4au/main.cpp
View file @
f7ce70f7
...
@@ -42,9 +42,7 @@
...
@@ -42,9 +42,7 @@
#include <cstdio>
#include <cstdio>
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/ts/ts.hpp"
#include "opencv2/ts/ts.hpp"
#include "opencv2/ts/gpu_perf.hpp"
#include "opencv2/ts/gpu_perf.hpp"
...
...
modules/gpu/src/precomp.hpp
View file @
f7ce70f7
...
@@ -47,9 +47,7 @@
...
@@ -47,9 +47,7 @@
#pragma warning( disable: 4251 4710 4711 4514 4996 )
#pragma warning( disable: 4251 4710 4711 4514 4996 )
#endif
#endif
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include <cstring>
#include <cstring>
#include <iostream>
#include <iostream>
...
...
modules/highgui/CMakeLists.txt
View file @
f7ce70f7
...
@@ -9,38 +9,33 @@ ocv_add_module(highgui opencv_imgproc OPTIONAL opencv_androidcamera)
...
@@ -9,38 +9,33 @@ ocv_add_module(highgui opencv_imgproc OPTIONAL opencv_androidcamera)
ocv_clear_vars
(
GRFMT_LIBS
)
ocv_clear_vars
(
GRFMT_LIBS
)
if
(
WITH_PNG OR WITH_TIFF OR WITH
_OPENEXR
)
if
(
HAVE_PNG OR HAVE_TIFF OR HAVE
_OPENEXR
)
ocv_include_directories
(
${
ZLIB_INCLUDE_DIR
}
)
ocv_include_directories
(
${
ZLIB_INCLUDE_DIR
}
)
list
(
APPEND GRFMT_LIBS
${
ZLIB_LIBRARIES
}
)
list
(
APPEND GRFMT_LIBS
${
ZLIB_LIBRARIES
}
)
endif
()
endif
()
if
(
WITH_JPEG
)
if
(
HAVE_JPEG
)
add_definitions
(
-DHAVE_JPEG
)
ocv_include_directories
(
${
JPEG_INCLUDE_DIR
}
)
ocv_include_directories
(
${
JPEG_INCLUDE_DIR
}
)
list
(
APPEND GRFMT_LIBS
${
JPEG_LIBRARIES
}
)
list
(
APPEND GRFMT_LIBS
${
JPEG_LIBRARIES
}
)
endif
()
endif
()
if
(
WITH_PNG
)
if
(
HAVE_PNG
)
add_definitions
(
-DHAVE_PNG
)
add_definitions
(
${
PNG_DEFINITIONS
}
)
add_definitions
(
${
PNG_DEFINITIONS
}
)
ocv_include_directories
(
${
PNG_INCLUDE_DIR
}
)
ocv_include_directories
(
${
PNG_INCLUDE_DIR
}
)
list
(
APPEND GRFMT_LIBS
${
PNG_LIBRARIES
}
)
list
(
APPEND GRFMT_LIBS
${
PNG_LIBRARIES
}
)
endif
()
endif
()
if
(
WITH_TIFF
)
if
(
HAVE_TIFF
)
add_definitions
(
-DHAVE_TIFF
)
ocv_include_directories
(
${
TIFF_INCLUDE_DIR
}
)
ocv_include_directories
(
${
TIFF_INCLUDE_DIR
}
)
list
(
APPEND GRFMT_LIBS
${
TIFF_LIBRARIES
}
)
list
(
APPEND GRFMT_LIBS
${
TIFF_LIBRARIES
}
)
endif
()
endif
()
if
(
WITH_JASPER
)
if
(
HAVE_JASPER
)
add_definitions
(
-DHAVE_JASPER
)
ocv_include_directories
(
${
JASPER_INCLUDE_DIR
}
)
ocv_include_directories
(
${
JASPER_INCLUDE_DIR
}
)
list
(
APPEND GRFMT_LIBS
${
JASPER_LIBRARIES
}
)
list
(
APPEND GRFMT_LIBS
${
JASPER_LIBRARIES
}
)
endif
()
endif
()
if
(
WITH_OPENEXR
)
if
(
HAVE_OPENEXR
)
add_definitions
(
-DHAVE_OPENEXR
)
include_directories
(
SYSTEM
${
OPENEXR_INCLUDE_PATHS
}
)
include_directories
(
SYSTEM
${
OPENEXR_INCLUDE_PATHS
}
)
list
(
APPEND GRFMT_LIBS
${
OPENEXR_LIBRARIES
}
)
list
(
APPEND GRFMT_LIBS
${
OPENEXR_LIBRARIES
}
)
endif
()
endif
()
...
@@ -108,16 +103,12 @@ elseif(HAVE_WIN32UI)
...
@@ -108,16 +103,12 @@ elseif(HAVE_WIN32UI)
list
(
APPEND highgui_srcs src/window_w32.cpp
)
list
(
APPEND highgui_srcs src/window_w32.cpp
)
elseif
(
HAVE_GTK
)
elseif
(
HAVE_GTK
)
list
(
APPEND highgui_srcs src/window_gtk.cpp
)
list
(
APPEND highgui_srcs src/window_gtk.cpp
)
elseif
(
APPLE
)
elseif
(
HAVE_CARBON
)
if
(
WITH_CARBON
)
list
(
APPEND highgui_srcs src/window_carbon.cpp
)
add_definitions
(
-DHAVE_CARBON=1
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Carbon"
"-framework QuickTime"
)
list
(
APPEND highgui_srcs src/window_carbon.cpp
)
elseif
(
HAVE_COCOA
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Carbon"
"-framework QuickTime"
)
list
(
APPEND highgui_srcs src/window_cocoa.mm
)
elseif
(
NOT IOS
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Cocoa"
)
add_definitions
(
-DHAVE_COCOA=1
)
list
(
APPEND highgui_srcs src/window_cocoa.mm
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Cocoa"
)
endif
()
endif
()
endif
()
if
(
WIN32 AND NOT ARM
)
if
(
WIN32 AND NOT ARM
)
...
@@ -210,26 +201,21 @@ if(HAVE_GIGE_API)
...
@@ -210,26 +201,21 @@ if(HAVE_GIGE_API)
list
(
APPEND highgui_srcs src/cap_giganetix.cpp
)
list
(
APPEND highgui_srcs src/cap_giganetix.cpp
)
endif
(
HAVE_GIGE_API
)
endif
(
HAVE_GIGE_API
)
if
(
WITH_IMAGEIO
)
if
(
HAVE_IMAGEIO AND IOS
)
add_definitions
(
-DHAVE_IMAGEIO=1
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework ImageIO"
)
if
(
IOS
)
endif
()
list
(
APPEND HIGHGUI_LIBRARIES
"-framework ImageIO"
)
endif
()
endif
(
WITH_IMAGEIO
)
if
(
WITH_AVFOUNDATION
)
if
(
HAVE_AVFOUNDATION
)
add_definitions
(
-DHAVE_AVFOUNDATION=1
)
list
(
APPEND highgui_srcs src/cap_avfoundation.mm
)
list
(
APPEND highgui_srcs src/cap_avfoundation.mm
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework AVFoundation"
"-framework QuartzCore"
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework AVFoundation"
"-framework QuartzCore"
)
endif
()
if
(
HAVE_QUICKTIME
)
list
(
APPEND highgui_srcs src/cap_qt.cpp
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Carbon"
"-framework QuickTime"
"-framework CoreFoundation"
"-framework QuartzCore"
)
elseif
(
APPLE
)
elseif
(
APPLE
)
add_definitions
(
-DHAVE_QUICKTIME=1
)
list
(
APPEND highgui_srcs src/cap_qtkit.mm
)
if
(
WITH_QUICKTIME
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework QTKit"
"-framework QuartzCore"
"-framework AppKit"
)
list
(
APPEND highgui_srcs src/cap_qt.cpp
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Carbon"
"-framework QuickTime"
"-framework CoreFoundation"
"-framework QuartzCore"
)
else
()
list
(
APPEND highgui_srcs src/cap_qtkit.mm
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework QTKit"
"-framework QuartzCore"
"-framework AppKit"
)
endif
()
endif
()
endif
()
if
(
IOS
)
if
(
IOS
)
...
...
modules/highgui/src/grfmt_jpeg2000.cpp
View file @
f7ce70f7
...
@@ -53,12 +53,6 @@
...
@@ -53,12 +53,6 @@
#endif
#endif
#endif
#endif
#undef PACKAGE
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#undef VERSION
#undef VERSION
#include <jasper/jasper.h>
#include <jasper/jasper.h>
...
...
modules/highgui/src/grfmt_png.cpp
View file @
f7ce70f7
...
@@ -51,7 +51,6 @@
...
@@ -51,7 +51,6 @@
and png2bmp sample from libpng distribution (Copyright (C) 1999-2001 MIYASAKA Masaru)
and png2bmp sample from libpng distribution (Copyright (C) 1999-2001 MIYASAKA Masaru)
\****************************************************************************************/
\****************************************************************************************/
#undef HAVE_UNISTD_H //to avoid redefinition
#ifndef _LFS64_LARGEFILE
#ifndef _LFS64_LARGEFILE
# define _LFS64_LARGEFILE 0
# define _LFS64_LARGEFILE 0
#endif
#endif
...
...
modules/highgui/test/test_precomp.hpp
View file @
f7ce70f7
...
@@ -9,9 +9,7 @@
...
@@ -9,9 +9,7 @@
#ifndef __OPENCV_TEST_PRECOMP_HPP__
#ifndef __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#ifdef HAVE_CVCONFIG_H
# include "cvconfig.h"
# include "cvconfig.h"
#endif
#include "opencv2/ts/ts.hpp"
#include "opencv2/ts/ts.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc.hpp"
...
...
modules/imgproc/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/imgproc/imgproc_c.h"
...
...
modules/legacy/src/precomp.hpp
View file @
f7ce70f7
...
@@ -41,9 +41,7 @@
...
@@ -41,9 +41,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/legacy/legacy.hpp"
#include "opencv2/legacy/legacy.hpp"
...
...
modules/ml/src/precomp.hpp
View file @
f7ce70f7
...
@@ -41,9 +41,7 @@
...
@@ -41,9 +41,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/ml/ml.hpp"
#include "opencv2/ml/ml.hpp"
#include "opencv2/core/core_c.h"
#include "opencv2/core/core_c.h"
...
...
modules/nonfree/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/opencv_modules.hpp"
#include "opencv2/opencv_modules.hpp"
...
...
modules/objdetect/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/imgproc/imgproc.hpp"
...
...
modules/objdetect/test/test_latentsvmdetector.cpp
View file @
f7ce70f7
...
@@ -44,9 +44,7 @@
...
@@ -44,9 +44,7 @@
#include <string>
#include <string>
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#ifdef HAVE_TBB
#ifdef HAVE_TBB
#include "tbb/task_scheduler_init.h"
#include "tbb/task_scheduler_init.h"
...
...
modules/ocl/src/precomp.hpp
View file @
f7ce70f7
...
@@ -52,9 +52,7 @@
...
@@ -52,9 +52,7 @@
#pragma warning( disable: 4267 4324 4244 4251 4710 4711 4514 4996 )
#pragma warning( disable: 4267 4324 4244 4251 4710 4711 4514 4996 )
#endif
#endif
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include <map>
#include <map>
#include <iostream>
#include <iostream>
...
...
modules/photo/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/photo/photo.hpp"
#include "opencv2/photo/photo.hpp"
...
...
modules/stitching/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_STITCHING_PRECOMP_H__
#ifndef __OPENCV_STITCHING_PRECOMP_H__
#define __OPENCV_STITCHING_PRECOMP_H__
#define __OPENCV_STITCHING_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/opencv_modules.hpp"
#include "opencv2/opencv_modules.hpp"
#include <vector>
#include <vector>
...
...
modules/superres/perf/perf_precomp.hpp
View file @
f7ce70f7
...
@@ -51,9 +51,7 @@
...
@@ -51,9 +51,7 @@
#ifndef __OPENCV_PERF_PRECOMP_HPP__
#ifndef __OPENCV_PERF_PRECOMP_HPP__
#define __OPENCV_PERF_PRECOMP_HPP__
#define __OPENCV_PERF_PRECOMP_HPP__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/ts/ts.hpp"
#include "opencv2/ts/ts.hpp"
#include "opencv2/ts/gpu_perf.hpp"
#include "opencv2/ts/gpu_perf.hpp"
...
...
modules/superres/src/precomp.hpp
View file @
f7ce70f7
...
@@ -46,9 +46,7 @@
...
@@ -46,9 +46,7 @@
#include <vector>
#include <vector>
#include <limits>
#include <limits>
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/opencv_modules.hpp"
#include "opencv2/opencv_modules.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/core/core.hpp"
...
...
modules/superres/test/test_precomp.hpp
View file @
f7ce70f7
...
@@ -51,9 +51,7 @@
...
@@ -51,9 +51,7 @@
#ifndef __OPENCV_TEST_PRECOMP_HPP__
#ifndef __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#define __OPENCV_TEST_PRECOMP_HPP__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/opencv_modules.hpp"
#include "opencv2/opencv_modules.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/core/core.hpp"
...
...
modules/ts/include/opencv2/ts/ts.hpp
View file @
f7ce70f7
#ifndef __OPENCV_GTESTCV_HPP__
#ifndef __OPENCV_GTESTCV_HPP__
#define __OPENCV_GTESTCV_HPP__
#define __OPENCV_GTESTCV_HPP__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#ifndef GTEST_CREATE_SHARED_LIBRARY
#ifndef GTEST_CREATE_SHARED_LIBRARY
#ifdef BUILD_SHARED_LIBS
#ifdef BUILD_SHARED_LIBS
#define GTEST_LINKED_AS_SHARED_LIBRARY 1
#define GTEST_LINKED_AS_SHARED_LIBRARY 1
...
...
modules/video/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/video/tracking.hpp"
#include "opencv2/video/tracking.hpp"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/video/background_segm.hpp"
...
...
modules/videostab/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_HPP__
#ifndef __OPENCV_PRECOMP_HPP__
#define __OPENCV_PRECOMP_HPP__
#define __OPENCV_PRECOMP_HPP__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include <stdexcept>
#include <stdexcept>
#include <iostream>
#include <iostream>
...
...
modules/world/src/precomp.hpp
View file @
f7ce70f7
...
@@ -43,9 +43,7 @@
...
@@ -43,9 +43,7 @@
#ifndef __OPENCV_PRECOMP_H__
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef HAVE_CVCONFIG_H
#include "cvconfig.h"
#include "cvconfig.h"
#endif
#include "opencv2/opencv_modules.hpp"
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_VIDEO
#ifdef HAVE_OPENCV_VIDEO
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment