Skip to content

Commit 0682e7c

Browse files
committed
Disable other classes that use MS Media Foundation in headless builds.
1 parent fa742a4 commit 0682e7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ def main():
214214
cmake_args.append("-DWITH_WIN32UI=OFF")
215215
cmake_args.append("-DWITH_QT=OFF")
216216
cmake_args.append("-DWITH_GTK=OFF")
217-
if is_CI_build:
218-
cmake_args.append(
219-
"-DWITH_MSMF=OFF"
220-
) # see: https://github.com/skvark/opencv-python/issues/263
217+
# see: https://github.com/skvark/opencv-python/issues/263, https://github.com/opencv/opencv-python/issues/771
218+
cmake_args.append("-DWITH_MSMF=OFF")
219+
cmake_args.append("-DHAVE_MSMF=OFF")
220+
cmake_args.append("-DHAVE_OBSENSOR_MSMF=OFF")
221221

222222
if sys.platform.startswith("linux") and not is64 and "bdist_wheel" in sys.argv:
223223
subprocess.check_call("patch -p0 < patches/patchOpenEXR", shell=True)

0 commit comments

Comments
 (0)