尝试安装Qxt以发送电子邮件时出错 [英] Error trying to install Qxt for sending email

查看:182
本文介绍了尝试安装Qxt以发送电子邮件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用 QxtSMTP 模块才能通过Qt发送电子邮件。我从此处下载了该软件包。根据说明,我做了 .configure make 。在 make install 期间,它发出错误 - (OS X,10.10)

I need to use the QxtSMTP module to be able to send email through Qt. I downloaded the package from here. As per the instructions, I did .configure and make. During make install, it threw an error - (OS X, 10.10)

/Users/Cupidvogel/Desktop/mail/libqxt-master/src/core/qxtglobal.cpp:201: Undocumented parameter 'PUB' in QXT_P()
/Users/Cupidvogel/Desktop/mail/libqxt-master/src/core/qxtglobal.cpp:201: No such parameter 'QXT_DECLARE_PUBLIC' in QXT_P()
qdoc3(31442,0x7fff79948300) malloc: *** error for object 0x1109c1a40: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
/bin/sh: line 1: 31442 Abort trap: 6 ( QXT_SOURCE_TREE=/Users/Cupidvogel/Desktop/mail/libqxt-master QXT_BUILD_TREE=/Users/Cupidvogel/Desktop/mail/libqxt-master /Users/Cupidvogel/Desktop/mail/libqxt-master/tools/3rdparty/qdoc3/qdoc3 -DQXT_DOXYGEN_RUN /Users/Cupidvogel/Desktop/mail/libqxt-master/doc/src/qxt.qdocconf )
make: *** [adp_docs] Error 134

无法获取安装的库。如何解决这个问题?

As a result of which I am unable to get the libraries installed. How do I fix this?

其次,我需要发送电子邮件所需的头文件和库。我不想通过 README 文件建议 - 通过配置 Qxt CONFIG 变量。那么我需要链接哪些库?

And secondly, I need the header files and libraries required to send email. I don't want to do it the README file suggests - by configuring Qxt and CONFIG variables. So which libraries do I need to link?

推荐答案

如果你只想发送电子邮件而不想配置

If you only want to send email and don't want to configure Qxt and CONFIG variables, why not do the following.

复制 src / network / qxtsmtp.h src / network / qxtsmtp.cpp 文件添加到项目文件夹,并将它们作为现有文件添加到项目中(右键单击项目)。现在也为这两个文件依赖于qxt库的所有文件这样做。例如, src / network / qxtsmtp.h 取决于 #includeqxtglobal.h #includeqxtmailmessage.h

Copy the src/network/qxtsmtp.h and src/network/qxtsmtp.cpp files to your project folder and add them as existing files to your project (right click on your project). Now also do this for all files that these 2 files depend on for the qxt library. In example, src/network/qxtsmtp.h depends on #include "qxtglobal.h"and #include "qxtmailmessage.h".

完成此程序后,连接smtp服务器并发送短信。尝试编译这个和修复的问题。

Once you've done this program the connect to the smtp server and send a short message. Try to compile this and fix the issues.

另一种选择是使用 MailCore 。它还具有在MacOS上构建的说明: https:// github。 com / MailCore / mailcore2 / blob / master / build-mac / README.md

Another option could be to use MailCore. It also has instructions to build on MacOS: https://github.com/MailCore/mailcore2/blob/master/build-mac/README.md

这篇关于尝试安装Qxt以发送电子邮件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆