- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在尝试在 centos 上安装 qt mqtt 模块时,我遇到了 PCH 问题。我正在执行以下步骤。但是当我运行 make 语句时,我遇到了问题。问题是 PCH 文件。我遇到的错误输出如下。提前感谢那些提供帮助的人。
[oozturk@dev-host-06 qtmqtt]$ egrep '^(VERSION|NAME)=' /etc/os-release
NAME="CentOS Linux"
VERSION="8"
[oozturk@dev-host-06 Downloads]$ git clone -b 5.15.2 http://github.com/qt/qtmqtt.git
Cloning into 'qtmqtt'...
...
[oozturk@dev-host-06 Downloads]$ cd qtmqtt/
[oozturk@dev-host-06 qtmqtt]$ ls
dist examples LICENSE.GPL3 LICENSE.GPL3-EXCEPT qtmqtt.pro src sync.profile tests
[oozturk@dev-host-06 qtmqtt]$ /home/oozturk/Qt/5.15.2/gcc_64/bin/qmake
Info: creating stash file /home/oozturk/Downloads/qtmqtt/.qmake.stash
Info: creating cache file /home/oozturk/Downloads/qtmqtt/.qmake.cache
[oozturk@dev-host-06 qtmqtt]$
[oozturk@dev-host-06 qtmqtt]$ make
cd src/ && ( test -e Makefile || /home/oozturk/Qt/5.15.2/gcc_64/bin/qmake -o Makefile /home/oozturk/Downloads/qtmqtt/src/src.pro ) && make -f Makefile
make[1]: Entering directory '/home/oozturk/Downloads/qtmqtt/src'
cd mqtt/ && ( test -e Makefile || /home/oozturk/Qt/5.15.2/gcc_64/bin/qmake -o Makefile /home/oozturk/Downloads/qtmqtt/src/mqtt/mqtt.pro ) && make -f Makefile
Project MESSAGE: perl -w /home/oozturk/Qt/5.15.2/gcc_64/bin/syncqt.pl -module QtMqtt -version 5.15.2 -outdir /home/oozturk/Downloads/qtmqtt -builddir /home/oozturk/Downloads/qtmqtt /home/oozturk/Downloads/qtmqtt
<srcbase> = /home/oozturk/Downloads/qtmqtt
<bldbase> = /home/oozturk/Downloads/qtmqtt
<outbase> = /home/oozturk/Downloads/qtmqtt
QtMqtt: created fwd-include header(s) for <srcbase>/src/mqtt/ { qmqttauthenticationproperties.h (2), qmqttclient.h (2), qmqttclient_p.h (1), qmqttconnection_p.h (1), qmqttconnectionproperties.h (4), qmqttconnectionproperties_p.h (1), qmqttcontrolpacket_p.h (1), qmqttglobal.h (1), qmqttmessage.h (2), qmqttmessage_p.h (1), qmqttpublishproperties.h (3), qmqttpublishproperties_p.h (1), qmqttsubscription.h (2), qmqttsubscription_p.h (1), qmqttsubscriptionproperties.h (3), qmqtttopicfilter.h (2), qmqtttopicname.h (2), qmqtttype.h (3) }
QtMqtt: created version header
QtMqtt: created master header
QtMqtt: created headers.pri file
make[2]: Entering directory '/home/oozturk/Downloads/qtmqtt/src/mqtt'
perl /home/oozturk/Qt/5.15.2/gcc_64/mkspecs/features/data/unix/findclasslist.pl < QtMqtt.version.in > QtMqtt.version
g++ -pipe -O2 -g -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtMqtt -I../../include/QtMqtt/5.15.2 -I../../include/QtMqtt/5.15.2/QtMqtt -I/home/oozturk/Qt/5.15.2/gcc_64/include -I/home/oozturk/Qt/5.15.2/gcc_64/include/QtNetwork -I/home/oozturk/Qt/5.15.2/gcc_64/include/QtCore/5.15.2 -I/home/oozturk/Qt/5.15.2/gcc_64/include/QtCore/5.15.2/QtCore -I/home/oozturk/Qt/5.15.2/gcc_64/include/QtCore -I.moc -I/home/qt/openssl-1.1.1g/include -I/home/oozturk/Qt/5.15.2/gcc_64/mkspecs/linux-g++ -x c++-header -c ../../include/QtMqtt/QtMqttDepends -o .pch/Qt5Mqtt.gch/c++
g++ -c -include .pch/Qt5Mqtt -pipe -O2 -g -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_MQTT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtMqtt -I../../include/QtMqtt/5.15.2 -I../../include/QtMqtt/5.15.2/QtMqtt -I/home/oozturk/Qt/5.15.2/gcc_64/include -I/home/oozturk/Qt/5.15.2/gcc_64/include/QtNetwork -I/home/oozturk/Qt/5.15.2/gcc_64/include/QtCore/5.15.2 -I/home/oozturk/Qt/5.15.2/gcc_64/include/QtCore/5.15.2/QtCore -I/home/oozturk/Qt/5.15.2/gcc_64/include/QtCore -I.moc -I/home/qt/openssl-1.1.1g/include -I/home/oozturk/Qt/5.15.2/gcc_64/mkspecs/linux-g++ -o .obj/qmqttauthenticationproperties.o qmqttauthenticationproperties.cpp
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: .pch/Qt5Mqtt: No such file or directory
compilation terminated.
make[2]: *** [Makefile:1726: .obj/qmqttauthenticationproperties.o] Error 1
make[2]: Leaving directory '/home/oozturk/Downloads/qtmqtt/src/mqtt'
make[1]: *** [Makefile:47: sub-mqtt-make_first] Error 2
make[1]: Leaving directory '/home/oozturk/Downloads/qtmqtt/src'
make: *** [Makefile:49: sub-src-make_first] Error 2
最佳答案
解决了。问题是没有创建文件 Qt5Mqtt。我看到当我在../qtmqtt/src/mqtt/.pch路径上手动创建Qt5Mqtt文件时问题解决了。我通过运行测试代码对其进行了测试。
[oozturk@dev-host-06 .pch]# pwd
/home/oozturk/Desktop/Projects/qtmqtt/src/mqtt/.pch
[oozturk@dev-host-06 .pch]# touch Qt5Mqtt
关于QtMqtt 模块 "PCH files error"。在 Centos 上安装 QtMqtt 模块时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68571933/
我刚刚使用 Xcode 创建了一个“C++ Standard Dynamic”库项目,并使用 LLVM 2.0 进行了编译。我注意到 PCH 文件包含行 #include 但文件 Test.cp 还包
我有一个字符串:“这是一个简单的字符串” 我的目标是找到(使用strstr)“simple”并将其替换为“sample”。 代码: #include #include #include int
这行R代码 plot(1:3,4:6,pch=7:9) 生成一个包含用不同符号绘制的三个点的图。 pch 代表什么? 最佳答案 参见?点:pch:plotting'chaacter' 关于r - "p
我为我的 Mac 更改了用户名和主文件夹的名称,现在当我尝试构建一个新项目时,我在编译过程中遇到错误。我将如何纠正这一点? 我已经清理了构建文件夹 :0: 错误:PCH 是使用模块缓存路径“/User
我有包含这段代码的 pch 文件: #import "ServerModel.h" enum { SAVE = 1, REMOVE = 2, REMOVE_ALL = 3 };
尝试使用 pch 绘制图例,我的理解是这些应该被填充,但看起来并非如此。这是 Windows 图形的问题吗? legend(36, 79, legend = c(expression("a"[
如果你拿下面的代码,你怎么能改变第三个钻石的填充,所以它会是半黑半白?该解决方案应适用于任何颜色。 data <- c(1,2,3) plot(data, pch=c(23,18,23), cex=c
如果我使用 R 绘图。如何根据数据框中具有分类数据的列为属于一个类别的数据点分配特定形状(使用 pch 参数给 plot() )?将使用 as.factor()对数据进行分组,然后使用 pch帮助 ?
我有一个 ATL C++ 项目,但我的 C++ 源文件之一中没有任何包含内容。 当我尝试编译时,我收到 PCH 警告: Error (active) E2940 PCH warning: an unk
我有一张标有数字 1:200 的形状 map 。我想创建一个对这些数字进行解码的图例。所以我尝试了(保持为 20 以便于阅读)。 plot(c(1,20), c(0,3), type="n") xx
我是一个相当新手的程序员,刚刚学习了一点 c 语言,但我总是在 Linux 上使用 gcc 和 Vim 完成它,但决定尝试使用 Visual Studio,我收到了 LNK2005 和 LNK1169
我尝试通过以下方式重用 .pch 来加速构建: 在 stdafx.cpp 上使用/Yc 将 .pch 文件创建到文件夹 排除项目中的stdafx.cpp,并修改链接选项 它在我的机器上成功,但在另一台
我在 GlobalVar.h 和其他 .h 文件中定义了许多常量。我将这些文件导入到 Prefix.pch 文件中,如下所示: // // Prefix header for all source f
如何在另一个正在使用静态库的项目中使用静态库的 .pch 文件。 最佳答案 在项目build设置中,搜索“pch”。 将有一个“Prefix Header”项,您应该在其中输入 PCH 文件的名称。
抱歉新手问题,但在这个简单的iOS tutorial我无法弄清楚项目中的哪个位置(在 Info.plist 或其他地方)声明文件 HelloThere_Prefix.pch 与其他文件相关。我知道它链
我在 Xcode 5 中有一个 iOS 项目。我想在项目中使用解析。 编译工程,一切正常 添加解析框架 编译项目,pch 预编译失败。错误表明pch 文件导入被编译为 C 而不是 ObjC 删除
我刚刚了解到,如果我们在 .pch 文件中包含任何内容,我们就不必稍后在其他文件中包含。现在我正在考虑将我的所有文件添加到其中,这样我就不必将它们包含在其他文件中并在每个文件的开头造成困惑。但我在想这
我下载项目用于学习目的。但是在这个项目中,我的屏幕截图中显示了错误。我知道前缀 header 被编译并存储在缓存中,然后在编译期间自动包含在每个文件中。这可以加快编译速度,并允许您包含一个文件而无需向
.pch #ifdef __OBJC__ #import #import #import "thing.h" #endif 我有一个相当大的项目,我正在尝试调试,我怀疑问题
.pch文件的重要性和“#ifdef OBJC”的意义是什么? 此外,我们在哪里定义在 .pch 文件中检查的参数,如“#ifdef IS_PRODUCTION”。 最佳答案 .pch 文件可让您避免
我是一名优秀的程序员,十分优秀!