Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e3e8ce6

Browse filesBrowse files
committed
fix qt version for macOS
1 parent 7604aa0 commit e3e8ce6
Copy full SHA for e3e8ce6

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+4-1Lines changed: 4 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.