Results 1 to 2 of 2

Thread: libQtWebKit.so.4: cannot open shared object file

  1. #1
    Join Date
    Mar 2009
    Posts
    116
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default libQtWebKit.so.4: cannot open shared object file

    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
    Qt Code:
    1. QWebView *view = new QWebView(parent);
    2. view->load(QUrl("http://85.199.39.240/view/view.shtml"));
    3. view->show();
    To copy to clipboard, switch view to plain text mode 

    it compiles without error but when I run exe it gives error
    Qt Code:
    1. error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory
    To copy to clipboard, switch view to plain text mode 
    I included
    Qt Code:
    1. QT += webkit
    To copy to clipboard, switch view to plain text mode 
    in my .pro file ,also I included
    Qt Code:
    1. #include <QtWebKit>
    To copy to clipboard, switch view to plain text mode 
    in my cpp file .

    why this error occures?
    Last edited by Qt Coder; 2nd June 2010 at 12:15. Reason: chnage in subjet

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: libQtWebKit.so.4: cannot open shared object file

    Perhaps you don't have the libQtWebKit version 4 installed in any directory specified by library (LD) path?

Similar Threads

  1. Replies: 2
    Last Post: 31st January 2010, 02:53
  2. Environment variables in project .includes?
    By Karmaflute in forum Qt Tools
    Replies: 4
    Last Post: 26th November 2009, 00:59
  3. adjusting GUI to different environment
    By jjbabu in forum Qt Programming
    Replies: 3
    Last Post: 16th October 2007, 17:58
  4. Accessing Environment Variables
    By mhoover in forum Qt Programming
    Replies: 6
    Last Post: 21st September 2006, 15:05
  5. Designer not adjusting size right
    By Brandybuck in forum Qt Tools
    Replies: 8
    Last Post: 29th July 2006, 10:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.