View Full Version : libQtWebKit.so.4: cannot open shared object file

Qt Coder
2nd June 2010, 13:03
I was using Qt 4.4.3 ,on linux but now I have downloaded and installed Qt 4.6.2 on Linux to access web.

when I run code
QWebView *view = new QWebView(parent);

it compiles without error but when I run exe it gives error
error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

I included
QT += webkit in my .pro file ,also I included
#include <QtWebKit>
in my cpp file .

why this error occures?

2nd June 2010, 14:27
Perhaps you don't have the libQtWebKit version 4 installed in any directory specified by library (LD) path?