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
f5ca9d3f
Commit
f5ca9d3f
authored
Jun 04, 2019
by
Alexander Alekhin
Committed by
Alexander Alekhin
Jun 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python: visibility
parent
4a8fd71a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
common.cmake
modules/python/common.cmake
+0
-1
cv2.cpp
modules/python/src2/cv2.cpp
+6
-2
No files found.
modules/python/common.cmake
View file @
f5ca9d3f
...
...
@@ -61,7 +61,6 @@ ocv_update(OPENCV_PYTHON_EXTENSION_BUILD_PATH "${LIBRARY_OUTPUT_PATH}/${MODULE_I
set_target_properties
(
${
the_module
}
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
"
${
OPENCV_PYTHON_EXTENSION_BUILD_PATH
}
"
ARCHIVE_OUTPUT_NAME
${
the_module
}
# prevent name conflict for python2/3 outputs
DEFINE_SYMBOL CVAPI_EXPORTS
PREFIX
""
OUTPUT_NAME cv2
SUFFIX
${
CVPY_SUFFIX
}
)
...
...
modules/python/src2/cv2.cpp
View file @
f5ca9d3f
...
...
@@ -1769,8 +1769,12 @@ static int to_ok(PyTypeObject *to)
}
#if defined(__GNUC__)
#pragma GCC visibility push(default)
#endif
#if PY_MAJOR_VERSION >= 3
extern
"C"
CV_EXPORTS
PyObject
*
PyInit_cv2
();
PyMODINIT_FUNC
PyInit_cv2
();
static
struct
PyModuleDef
cv2_moduledef
=
{
PyModuleDef_HEAD_INIT
,
...
...
@@ -1783,7 +1787,7 @@ static struct PyModuleDef cv2_moduledef =
PyObject
*
PyInit_cv2
()
#else
extern
"C"
CV_EXPORTS
void
initcv2
();
PyMODINIT_FUNC
initcv2
();
void
initcv2
()
#endif
...
...
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