【发布时间】:2016-03-31 01:25:53
【问题描述】:
我正在尝试按照this 指南在我的 Windows 10 上安装 OpenCV。为了使用我自己构建的库安装它,我需要从源代码构建 qt。我从 qt 页面下载了最新的资源(5.6.0,我没有找到任何其他可用的资源),但是在输入之后
configure -release -no-webkit -no-phonon -no-phonon-backend -no-script - no-scripttools
-no-qt3support -no-multimedia -no-ltcg
在 VS2013/VS2015 命令提示符中,出现错误:
Unknown option -no-webkit
Unable to detect the platform from environment. Use -platform command line
argument or set the QMAKESPEC environment variable and run configure again.
我可以选择制作所有东西。但我必须指定平台。我没有找到怎么做。
谁能给我一个提示,如何正确安装qt?我有 VS 2013 和 2015。我将使用 VS2013,因为 CUDA 工具包 7.5 不支持 VS2015。
谢谢,
米哈伊尔
更新:我可以通过输入configure -platform win32-msvc2013 -mp -release 开始安装过程(虽然我有win64),但在接受许可证后,我收到一个错误:execute: File or path was not found(nmake)。截图附上
【问题讨论】:
-
这是一个hack that enables CUDA with VS2015. 它并不完美,但似乎有点实用。我希望 NVidia 能得到更新......
-
万一您没有收到通知,我已经更新了我的答案以解决您的最新问题。让我知道它是否适合你。