Problem after compile qt-everywhere-opensource-src-4.7.4 - ./test: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object f



  • Hi, my QT libraries do not work. QT compiled with the option @./configure -embedded -opensource -openssl@ and afrter make and make install as root, I get the message at startup my program
    @./test: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory@

    My system is Ubuntu 10.04 x64

    How to fix it ?



  • You build it for your Ubuntu? Then why did you set embedded flag?

    Also you can check:

    bq. ls -la /usr/lib | grep libQtWebKit



  • xray147:~# ls -la /usr/lib | grep libQtWebKit
    xray147:~#



  • What do I do now? make uninstall and repeat ./configure ?? ./configure of what options ?


  • Moderators

    As Vass noted already a couple of things are not clear from your post.

    You are working on Ubuntu, but you compiled Qt for an embedded device. If you want to work and test also on Ubuntu, than you have to compile Qt for for host platform Ubuntu as well.
    Where are you starting your test application?


  • Moderators

    You can install different versions of Qt on your system. So, you can compile it for embedded devices and also for your host. However, you have to make sure that the installations are not mixed up.



  • :) How to set ubuntu x64 flag in ./configure ?



  • without 'embedded' flag



  • OK :) fast or no-fast ??



  • i try with -fast flag and i hav'e error:

    bq. Basic XLib functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /opt/qt-everywhere-opensource-src-4.7.4/mkspecs/linux-g++-64.


  • Moderators

    It looks that you have not installed all prequisites.
    There are a couple of addtional libs you have to install under linux. Add xlib support to your installation. There may be more missing.



  • ok i install xlib ;) i have a last question - fast or no-fast ? What is the difference ?


  • Moderators

    This is the explanation from confgure script:
    [quote]
    @

    • -no-fast ........... Configure Qt normally by generating Makefiles for all
      project files.
      -fast .............. Configure Qt quickly by generating Makefiles only for
      library and subdirectory targets. All other Makefiles
      are created as wrappers, which will in turn run qmake.
      @
      [/quote]
      It might be a matter of taste. I prefer the defaults, so -no-fast .

    BTW there are explanations in the script ;-)



  • bq.

    • -no-fast ........... Configure Qt normally by generating Makefiles for all
      project files.
      -fast .............. Configure Qt quickly by generating Makefiles only for
      library and subdirectory targets. All other Makefiles
      are created as wrappers, which will in turn run qmake.

    recommend no-fast



  • Ok after make and make install again i have comunicat:

    bq. ./test: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.