提交 e3e8ce62 编写于 作者: O Olli-Pekka Heinisuo

fix qt version for macOS

上级 7604aa09
......@@ -123,9 +123,12 @@ def main():
] + (["-DOPENCV_EXTRA_MODULES_PATH=" + os.path.abspath("opencv_contrib/modules")] if build_contrib else [])
# OS-specific components
if (sys.platform == 'darwin' or sys.platform.startswith('linux')) and not build_headless:
if sys.platform.startswith('linux') and not build_headless:
cmake_args.append("-DWITH_QT=4")
if sys.platform == 'darwin' and not build_headless:
cmake_args.append("-DWITH_QT=5")
if build_headless:
# it seems that cocoa cannot be disabled so on macOS the package is not truly headless
cmake_args.append("-DWITH_WIN32UI=OFF")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册