Alexander Alekhin
4b47c7dbd2
cmake(python): handle PYTHON3_LIMITED_API
...
- python-3.x => python-3
- config-3.x.py => config-3.py
5 years ago
Alexander Alekhin
a45928045a
Merge pull request #16150 from alalek:cmake_avoid_deprecated_link_private
...
* cmake: avoid deprecated LINK_PRIVATE/LINK_PUBLIC
see CMP0023 (CMake 2.8.12+)
* cmake: fix 3rdparty list
- don't include OpenCV modules
5 years ago
Maksim Shabunin
10d61a2b44
Limited API support for Python3
6 years ago
Alexander Alekhin
f5ca9d3fe1
python: visibility
6 years ago
Alexander Alekhin
470dfba96c
python: update CMake install rules
6 years ago
Alexander Alekhin
bb8c19aad3
cmake: fix python install paths
6 years ago
Alexander Alekhin
ad35b79e3f
python: update install paths
...
- don't require "OPENCV_PYTHON{2,3}_INSTALL_PATH" if OPENCV_SKIP_PYTHON_LOADER=ON
- avoid unnecessary relative paths in generated config-X.Y.py
6 years ago
Alexander Alekhin
ce6acd3ecd
python: bindings loader package
...
Configures and loads OpenCV bindings extension including 3rdparty dependencies
Based on running Python specify:
- configure PYTHON_PATH (via "sys.path")
- configure LD_LIBRARY_PATH / PATH
6 years ago
Alexander Alekhin
aa6e296236
python: eliminate DeprecationWarning: SO -> EXT_SUFFIX
...
- https://python.readthedocs.io/en/stable/whatsnew/3.4.html
- The `sysconfig` key `SO` is deprecated, it has been replaced by `EXT_SUFFIX`
6 years ago
Alexander Alekhin
dd7f88bd68
python: support standalone Python bindings build
...
- requires OpenCV source directory
- requires OpenCV binary directory with built modules and 'python_bindings_generator' target
7 years ago
Alexander Alekhin
08941b7890
cmake: avoid amending of CMAKE_COMPILER_IS_[GNUCXX|CLANGCXX|CCACHE] vars
...
- Recommended compiler checks:
- GCC: CV_GCC
- Clang: CV_CLANG
- fixed problem with CMAKE_CXX_COMPILER_ID=Clang/AppleClang mess on MacOSX
Details: cmake --help-policy CMP0025
- do not declare Clang as GCC compiler
7 years ago
Alexander Alekhin
84887d3011
cmake: use -isystem for Python/numpy include directories
7 years ago
Alexander Alekhin
768f4cb7bc
python: 'sub-module' for binding sources and documentation meta information
7 years ago
Pavel Rojtberg
6fb9d42c3f
Hid symbols in static builds, added LTO flags, removed exports from ts
7 years ago
Alexander Alekhin
aa70199ce1
build: avoid exporting of unnecessary symbols from Python bindings
7 years ago
Alexander Alekhin
572a7bf6ce
python: add special targets gen_opencv_python2(3)
7 years ago
Alexander Alekhin
ea6fe71a50
python: eliminate -Wundef warning about NPY_INTERNAL_BUILD
...
numpy 1.13.0+
7 years ago
Alexander Alekhin
b6949c5088
cmake: CMP0022 NEW
7 years ago
Alexander Alekhin
6ea6e4bceb
binding: fix headers processing
8 years ago
Alexander Alekhin
006966e629
trace: initial support for code trace
8 years ago
Alexander Alekhin
edcbc15a90
cmake: python installation
...
Also fixes issue with empty PYTHON_PACKAGES_PATH (cross-compilation mode)
8 years ago
Alexander Alekhin
5da8d65371
eliminate compiler warnings
8 years ago
Vitaliy Lyudvichenko
ab8de8f506
Adding of user-defined type conversions for python bindings inside module directories
...
Adding of destructor and placement new constructors for classes wrapped with CV_EXPORTS_W_SIMPLE macro
8 years ago
Maksim Shabunin
f698bc1cc2
Fixes header filtering for python bindings generator
8 years ago
Alexander Alekhin
c0fe374490
cmake: python, allow dynamic symbols lookup from libpython.so
9 years ago
Alexander Alekhin
d2e5f90f32
cmake: fix cv2.lib conflict for python2/3 bindings (MSVS)
9 years ago
Maksim Shabunin
84f37d352f
HAL moved back to core
9 years ago
Alexander Alekhin
0db10a3052
fixes #5019 : python and java bindings become CMake modules (loadable plugins)
9 years ago
Alexander Alekhin
caaf60ba00
remove bindings generation for DetectionBasedTracker
10 years ago
Tim D. Smith
b9b743bbe3
Don't explicitly link Python on OS X
...
Explicitly linking to a Python framework on OS X prevents modules from
being built against one Python (i.e. system python) and imported from
another (i.e. Homebrew python); the interpreter segfaults if there's a
linkage to a foreign Python. Building the module with `-undefined
dynamic_lookup` instead of an explicit link allows the symbols to be
resolved at load time from a compatible python.
10 years ago
Maksim Shabunin
37c74e38f4
Python support
10 years ago
Maksim Shabunin
553020c448
Enabled STL usage within the library
10 years ago
Maksim Shabunin
a5a510da4b
Support for compound modules, support for contrib_world
10 years ago
Maksim Shabunin
6337fd0650
Support of bioinspired contrib module wrapping
...
- added java wrapper
- disabled python wrapper
10 years ago
Alexander Mordvintsev
c1032b6232
remove structured_edge_detection.hpp from blacklist
...
don't discard pure virtual methods in hdr_parser.py (was broken anyway)
10 years ago
Alexander Mordvintsev
c23d6b67ee
blacklisted 'tracking' due to some linking problem
10 years ago
Alexander Mordvintsev
74c77d826f
base class name resolution
...
fixed find_obj.py
10 years ago
Alexander Mordvintsev
40d0f853d6
removing modules from blacklist
10 years ago
Alexander Mordvintsev
e74cddfbd1
put consts into python submodules
...
maintain set of visited namespaces in CppHeaderParser
WARNING: REMOVED const name conversion (SomeConstName -> SOME_CONST_NAME), discussion needed
10 years ago
Alexander Mordvintsev
6d1c02ffed
unified namespace population with 'init_submodule'
10 years ago
Alexander Mordvintsev
5ad7f9910f
function namespaces partially work
10 years ago
Vadim Pisarevsky
740c5234b1
fix compile problems with contributed ximgproc/xphoto
10 years ago
Vadim Pisarevsky
6f86c9f118
another mac-related fix, let's squeeze it in this PR too
10 years ago
Vadim Pisarevsky
31df47b6ea
moved nonfree and a part of features2d to opencv_contrib/xfeatures2d
10 years ago
Vadim Pisarevsky
d0137b6d2d
moved part of video to contrib/{outflow, bgsegm}; moved matlab to contrib
10 years ago
Vadim Pisarevsky
e2f24f43c9
added some basic functionality needed by the new face module (moved from the old "contrib")
10 years ago
Michael Pratt
7d41ce23a7
Build Python 3 bindings in subdirectory
...
Build the Python 3 cv2 module in lib/python3/, to avoid potential naming
conflicts with the Python 2 bindings.
The Python 2 bindings are placed directly in lib/, where they are
required for the Buildbot to successfully execute the Python tests.
10 years ago
Michael Pratt
d921cde4d2
Add opencv_matlab to Python ignored modules
...
Requested by @vpisarev in #3047 .
10 years ago
Michael Pratt
9d9411555f
Place Python library out in dedicated folder
...
Place the built Python module library in a dedicated folder inside of
lib/. This ensures that even if the Python 2 and Python 3 module names
conflict, they will not overwrite one another.
10 years ago
Michael Pratt
cac1218eef
Build both Python 2 and Python 3 bindings
...
If both Python 2 and Python 3 are found, then build bindings for both of
them during the build process. Currently, one version of Python is
detected automatically, and building for the other requires changes the
CMake config.
The largest chunk of this change generalizes OpenCVDetectPython.cmake to
find both a Python 2 and Python 3 version of Python. Secondly, the
opencv_python module is split into two modules, opencv_python2 and
opencv_python3. Both are built from the same source. but for different
versions of Python.
11 years ago