error in running qwt program
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: cann开发者_运维问答ot 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
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.
精彩评论