PDA

View Full Version : Can execute examples



gyre
10th December 2007, 21:19
Hi Ive compiled and installed qwt...I have compiled all examples...
But when I want to run any of the examples I got this error statement:

error while loading shared libraries: libqwt.so.5: cannot open shared object file: No such file or directory

Does anyone know what is the problem ?
THanks

jpn
10th December 2007, 21:22
Try searching the forums or Google for "LD_LIBRARY_PATH" or "ld.so.conf".

gyre
10th December 2007, 22:40
heh believe me I have googled before I made this thread...
I have set all the paths configured all these things around but still wasnt able to make it work...so...

jacek
10th December 2007, 22:48
How did you set LD_LIBRARY_PATH?

gyre
10th December 2007, 22:51
my mistake...I made a typo in my config file :(...
sorry and thanks....
shit :(

UsenetCoder
13th November 2009, 17:14
How did you set LD_LIBRARY_PATH?


How set LD_LIBRARY_PATH on Debian / Ubuntu Linux?

I was added this line to my .bashrc file :

export LD_LIBRARY_PATH="/usr/local/qwt-5.2.0/lib/libqwt.so.5"


I can compile exemple project from QWT, but when i try run it I have this error:

Starting /home/rafal/qwt-5.2.0/examples/bin/radio...
/home/rafal/qwt-5.2.0/examples/bin/radio: error while loading shared libraries: libqwt.so.5: cannot open shared object file: No such file or directory

/home/rafal/qwt-5.2.0/examples/bin/radio exited with code 127

squidge
13th November 2009, 18:16
LD_LIBRARY_PATH is exactly that, a list of paths. It shouldn't include filenames.

A better approach would be to edit /etc/ld.so.conf and then running ldconfig

UsenetCoder
13th November 2009, 19:40
LD_LIBRARY_PATH is exactly that, a list of paths. It shouldn't include filenames.

A better approach would be to edit /etc/ld.so.conf and then running ldconfig

i try this solution:

http://www.qtcentre.org/forum/f-qwt-23/t-how-can-install-qwt-integrate-with-qtcreator-on-ubuntu-linux--23683.html

my qwtconfig.pri file:


#target.path = $$INSTALLBASE/lib
target.path =/opt/qtsdk-2009.04/bin/designer

headers.path = $$INSTALLBASE/include
#doc.path = $$INSTALLBASE/doc
doc.path =/usr/local/qwt-5.2.0/doc


but I can't still run samlpe software : /

squidge
13th November 2009, 20:07
You could always just copy the library files to /lib directory. It's not the best way, but it'll work and be the least complicated, as the /lib path is automatically included.

UsenetCoder
13th November 2009, 20:59
OK. I use ldconfig and now, i can run sample apps:)

But i have one question, how add QWT widget to QTCreator?
I want drag and drop qwt widgets to apps form, but now I can't see any aidgets from qwt on qtcreator component list :/

squidge
13th November 2009, 21:23
No idea, but if you keep to the rule of one topic per topic then you'll get more response.

Uwe
14th November 2009, 00:01
export LD_LIBRARY_PATH="/usr/local/qwt-5.2.0/lib/libqwt.so.5"

export LD_LIBRARY_PATH="/usr/local/qwt-5.2.0/lib"

You have to set the path to your library - not the library itsself.

Uwe

alexisorthone
26th February 2010, 09:51
I am new to QWT. So I read about everything in the net. But I still cannot force examples work. I've done export LD_LIBRARY_PATH="/usr/local/qwt-5.2.0/lib", but there is still error while loading shared libraries: libqwt.so.5: cannot open shared object file: No such file or directory. Goodness, I don't know what I have to do. I've done ldconfig. Nothing. I don't know what should I write in /etc/ld.so.conf. Help me please!