Skip to content

Commit e3e8ce6

Browse files
committed
fix qt version for macOS
1 parent 7604aa0 commit e3e8ce6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,12 @@ def main():
123123
] + (["-DOPENCV_EXTRA_MODULES_PATH=" + os.path.abspath("opencv_contrib/modules")] if build_contrib else [])
124124

125125
# OS-specific components
126-
if (sys.platform == 'darwin' or sys.platform.startswith('linux')) and not build_headless:
126+
if sys.platform.startswith('linux') and not build_headless:
127127
cmake_args.append("-DWITH_QT=4")
128128

129+
if sys.platform == 'darwin' and not build_headless:
130+
cmake_args.append("-DWITH_QT=5")
131+
129132
if build_headless:
130133
# it seems that cocoa cannot be disabled so on macOS the package is not truly headless
131134
cmake_args.append("-DWITH_WIN32UI=OFF")

0 commit comments

Comments
 (0)