Windows 10上Qt的qmqtt冲突问题

时间:2018-12-05 02:46:51

标签: qt compilation mqtt mingw32

我正在尝试使用qmqtt开发一个简单的POC,但是该模块在Qt lib路径中不可用。我安装了最新的Qt版本,但仍然没有。 因此,我试图在Windows下使用mingw32对其进行编译,并且从qmqtt的源中获取 未定义的引用

Qt版本:5.11.2

下面是编译日志:

E:\Xavier\qmqtt>mingw32-make
cd src\ && ( if not exist Makefile E:\Xavier\Qt\5.11.2\mingw53_32\bin\qmake.exe -o Makefile E:\Xavier\qmqtt\src\src.pro ) && mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'E:/Xavier/qmqtt/src'
cd mqtt\ && ( if not exist Makefile E:\Xavier\Qt\5.11.2\mingw53_32\bin\qmake.exe -o Makefile E:\Xavier\qmqtt\src\mqtt\mqtt.pro ) && mingw32-make -f Makefile
mingw32-make[2]: Entering directory 'E:/Xavier/qmqtt/src/mqtt'
mingw32-make -f Makefile.Release all
mingw32-make[3]: Entering directory 'E:/Xavier/qmqtt/src/mqtt'
g++ -Wl,-s -shared -Wl,-subsystem,windows -Wl,--out-implib,E:\Xavier\qmqtt\lib\libQt5Mqtt.a -o ..\..\lib\Qt5Mqtt.dll object_script.Qt5Mqtt.Release  -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.6.11-win32\lib -LC:\Utils\postgresql\pgsql\lib -LE:\Xavier\Qt\5.11.2\mingw53_32\lib E:\Xavier\Qt\5.11.2\mingw53_32\lib\libQt5Network.a E:\Xavier\Qt\5.11.2\mingw53_32\lib\libQt5Core.a .obj\release\Qt5Mqtt_resource_res.o
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x2ba): undefined reference to `__imp__ZeqRK7QStringS1_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x2d8): undefined reference to `__imp__ZN7QStringaSERKS_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x323): undefined reference to `__imp__ZN10QArrayData10deallocateEPS_yy'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x38d): undefined reference to `__imp__ZeqRK7QStringS1_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x3a8): undefined reference to `__imp__ZN7QStringaSERKS_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x3f3): undefined reference to `__imp__ZN10QArrayData10deallocateEPS_yy'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x4fd): undefined reference to `__imp__ZeqRK7QStringS1_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x518): undefined reference to `__imp__ZN7QStringaSERKS_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x563): undefined reference to `__imp__ZN10QArrayData10deallocateEPS_yy'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x59d): undefined reference to `__imp__ZeqRK7QStringS1_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x5b8): undefined reference to `__imp__ZN7QStringaSERKS_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x603): undefined reference to `__imp__ZN10QArrayData10deallocateEPS_yy'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x66d): undefined reference to `__imp__ZeqRK7QStringS1_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x688): undefined reference to `__imp__ZN7QStringaSERKS_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x6d3): undefined reference to `__imp__ZN10QArrayData10deallocateEPS_yy'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x751): undefined reference to `__imp__ZN10QByteArrayaSERKS_'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x7ad): undefined reference to `__imp__ZN10QArrayData10deallocateEPS_yy'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x865): undefined reference to `__imp__ZN14QObjectPrivateC2Ei'
./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x86c): undefined reference to `__imp__ZN10QArrayData11shared_nullE'./.obj\release\qmqttclient.o:qmqttclient.cpp:(.text+0x906): undefined reference to `__imp__ZN5QUuid10createUuidEv'

有人可以帮助我解决此问题吗? 我想知道为什么默认情况下该库不可用?

0 个答案:

没有答案