运行qwt程序时出错

发布于 2024-10-23 20:26:02 字数 370 浏览 6 评论 0原文

大家好,我已经安装了 qwt 并包含路径

+= /usr/local/qwt-6.0.0-rc5/include

LIBS += -L/usr/local/qwt-6.0.0-rc5/lib -lqwt

INCLUDEPATH 我的 pro 文件,

但是当我运行程序时

,加载共享库时出现错误 error: libqwt.so.6: 无法打开共享对象文件: 没有这样的文件或目录 /home/cv/abc/abc 退出时代码为 127

即使我删除了路径,即 INCLUDE 和 LIBS 以及所有与 qwt 相关的东西,我仍然收到错误,我是否缺少一些东西,请帮助我,

我正在使用 ubuntu 10.04 谢谢

hi every one i have installed qwt and include the path

INCLUDEPATH += /usr/local/qwt-6.0.0-rc5/include

LIBS += -L/usr/local/qwt-6.0.0-rc5/lib -lqwt

in my pro file

but when i run my program i get the error

error while loading shared libraries: libqwt.so.6: cannot open shared object file: No such file or directory
/home/cv/abc/abc exited with code 127

even i remove the paths i.e INCLUDE and LIBS and all qwt related thing i am still getting an error am i missing some thing kingly help me

i am using ubuntu 10.04
thanks

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

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

发布评论

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

评论(1

厌倦 2024-10-30 20:26:02

为了使用共享库执行任何程序,您必须指定它们的位置。

在您的情况下,您使用位于 /usr/local/gwt-6.0.0-rc5/lib 的共享库,并且您必须告诉 Linux“ld”该路径是库路径。

为此,您可以将此路径包含在 LD_LIBRARY_PATH 环境变量中或将其添加到 /etc/ld.so.conf(或者甚至作为 /etc/ld.so.conf.d 中的文件)。之后,请确保运行“ldconfig”以使系统意识到此更改并重试。

In order to execute any program using a shared library, you have to specify where they are.

In your case, you are using shared libraries located at /usr/local/gwt-6.0.0-rc5/lib and you have to tell Linux "ld" that this path is a library path.

To do that, you can include this path at the LD_LIBRARY_PATH environment variable or add it to the /etc/ld.so.conf (or even as a file inside /etc/ld.so.conf.d). After that, ensure you run "ldconfig" make the system aware of this change and try again.

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