You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,24 @@ If some dependency is not enabled in the pre-built wheels, you can also run the
140
140
- Optional: on Linux use some of the`manylinux` images as a build hosts if maximum portability is needed and run`auditwheel` for the wheel after build
141
141
- Optional: on macOS use``delocate`` (same as``auditwheel`` but for macOS) for better portability
142
142
143
+
####Manual debug builds
144
+
145
+
In order to build`opencv-python` in an unoptimized debug build, you need to side-step the normal process a bit.
146
+
147
+
1. Install the packages`scikit-build` and`numpy` via pip.
148
+
2. Run the command`python setup.py bdist_wheel --build-type=Debug`.
149
+
3. Install the generated wheel file in the`dist/` folder with`pip install dist/wheelname.whl`.
150
+
151
+
If you would like the build produce all compiler commands, then the following combination of flags and environment variables has been tested to work on Linux:
152
+
```
153
+
export CMAKE_ARGS='-DCMAKE_VERBOSE_MAKEFILE=ON'
154
+
export VERBOSE=1
155
+
156
+
python3 setup.py bdist_wheel --build-type=Debug
157
+
```
158
+
159
+
See this issue for more discussion:https://github.com/skvark/opencv-python/issues/424
160
+
143
161
####Source distributions
144
162
145
163
Since OpenCV version 4.3.0, also source distributions are provided in PyPI. This means that if your system is not compatible with any of the wheels in PyPI,``pip`` will attempt to build OpenCV from sources. If you need a OpenCV version which is not available in PyPI as a source distribution, please follow the manual build guidance above instead of this one.