将 QtLua 添加到 QtCreator 项目

发布于 2024-12-26 14:14:13 字数 168 浏览 0 评论 0原文

好吧,我有一个名为 libqtlua-1.4 的文件夹,其中有 libqtlua.so(qtlua 可执行文件),在 libqtlua-1.4/src/QtLua 中有标头。

我如何将它包含在 qtcreator 项目中? (我正在 ubuntu 11.10 中运行)

任何建议将不胜感激。

Well i have a folder called libqtlua-1.4 in which i have the libqtlua.so, the qtlua executable, and in libqtlua-1.4/src/QtLua i have the headers.

How can i include it in a qtcreator project?
(I am running in ubuntu 11.10)

Any suggestion would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

摘星┃星的人 2025-01-02 14:14:13

您必须在项目文件(扩展名为 .pro 的文件)中指定库,以便 qmake 在编译时能够看到它们:

LIBS += -L/path/to/your/lib/libqtlua-1.4 -lqtlua
INCLUDEPATH += /path/to/your/lib/libqtlua-1.4/src/QtLua

参考文献: LIBS包含路径

You have to specify the library in you project file (file with .pro extension) to qmake be able to see them when compile:

LIBS += -L/path/to/your/lib/libqtlua-1.4 -lqtlua
INCLUDEPATH += /path/to/your/lib/libqtlua-1.4/src/QtLua

References: LIBS, INCLUDEPATH.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文