We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7604aa0 commit e3e8ce6Copy full SHA for e3e8ce6
setup.py
@@ -123,9 +123,12 @@ def main():
123
] + (["-DOPENCV_EXTRA_MODULES_PATH=" + os.path.abspath("opencv_contrib/modules")] if build_contrib else [])
124
125
# OS-specific components
126
- if (sys.platform == 'darwin' or sys.platform.startswith('linux')) and not build_headless:
+ if sys.platform.startswith('linux') and not build_headless:
127
cmake_args.append("-DWITH_QT=4")
128
129
+ if sys.platform == 'darwin' and not build_headless:
130
+ cmake_args.append("-DWITH_QT=5")
131
+
132
if build_headless:
133
# it seems that cocoa cannot be disabled so on macOS the package is not truly headless
134
cmake_args.append("-DWITH_WIN32UI=OFF")
0 commit comments