运行qwt程序时出错
大家好,我已经安装了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了使用共享库执行任何程序,您必须指定它们的位置。
在您的情况下,您使用位于 /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.