Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将libtorrent库链接到Qt?_Qt - Fatal编程技术网

如何将libtorrent库链接到Qt?

如何将libtorrent库链接到Qt?,qt,Qt,我想运行qBittorrent源代码。当我在Qt中运行它时,它说多个文件“无法打开include文件”。包含文件都在libtorrent目录中 错误示例: C:\Users***\Desktop\qBittorrent master\src\misc.h:46:错误:C1083:无法打开包含文件:“libtorrent/version.hpp”:没有这样的文件或目录 将其放入qmake项目文件中,然后重新运行qmake: INCLUDEPATH += C:\path\to\libtorrent\

我想运行qBittorrent源代码。当我在Qt中运行它时,它说多个文件“无法打开include文件”。包含文件都在libtorrent目录中

错误示例:

C:\Users***\Desktop\qBittorrent master\src\misc.h:46:错误:C1083:无法打开包含文件:“libtorrent/version.hpp”:没有这样的文件或目录


将其放入qmake项目文件中,然后重新运行qmake:

INCLUDEPATH += C:\path\to\libtorrent\includes
LIBS += -LC:\path\to\libtorrent\lib -ltorrent

转到项目模式选择器,修改生成环境变量列表下的“INCLUDE”变量。将路径附加到libtorrent/include文件夹。


嘿。这会很奇怪:几个月前你问了一个关于windows UX风格主题在锁定后出现问题的问题。你找到解决办法了吗?如果有,请在原始帖子中添加解决方案。很抱歉在此处发送垃圾邮件,但我无法通过其他方式与您联系。很抱歉,伙计,除了再次应用相同的主题外,我找不到解决此问题的正确方法。感谢您在此处回复。:)