![](/img/trans.png)
[英]What is the meaning of these commands when you add in a qmake file(.pro)
[英]What's the meaning of this line in a Qt .pro file?
我从https://github.com/ialhashim/GeoTopo下载了一些代码,并希望在我的QtCreator
运行它。 在.pro
文件中,有以下行:
Warningswin32{QMAKE_CXXFLAGS *= /wd4800 /wd4244 /wd4267}
似乎是关于警告。 后来程序失败并显示:
no such file or directory /wd4800 /wd4244 /wd4267
我删除了以下几行,发现还有一些关于Parallelism的行:
win32{
QMAKE_CXXFLAGS *= /openmp
QMAKE_CXXFLAGS *= /MP
}
而且我遇到了同样的错误“没有这样的文件或目录/ openmp”,我想知道如何处理该错误?
此Qt项目声明无效。 Qt Creator解析.pro文件时,您不会得到任何错误?
肯定是应该激活或抑制WIN32上某些警告的代码。 该行应类似于(未经测试):
win32 {
# Then use QMAKE_CXXFLAGS_WARN_ON or QMAKE_CXXFLAGS_WARN_OFF depending on what's intended
}
我建议您注释该行并进行编译。 如果可行,那就没问题了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.