Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problem after compile qt-everywhere-opensource-src-4.7.4 - ./test: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object f
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Installation and Deployment
15 Posts 3 Posters 8.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Elber
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

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

      Also you can check:

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

      --
      Vasiliy

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Elber
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • E Offline
          E Offline
          Elber
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            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?

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              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.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • E Offline
                E Offline
                Elber
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vsorokin
                  wrote on last edited by
                  #8

                  without 'embedded' flag

                  --
                  Vasiliy

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    Elber
                    wrote on last edited by
                    #9

                    OK :) fast or no-fast ??

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      Elber
                      wrote on last edited by
                      #10

                      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.

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        koahnig
                        wrote on last edited by
                        #11

                        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.

                        Vote the answer(s) that helped you to solve your issue(s)

                        1 Reply Last reply
                        0
                        • E Offline
                          E Offline
                          Elber
                          wrote on last edited by
                          #12

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

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            koahnig
                            wrote on last edited by
                            #13

                            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 ;-)

                            Vote the answer(s) that helped you to solve your issue(s)

                            1 Reply Last reply
                            0
                            • V Offline
                              V Offline
                              vsorokin
                              wrote on last edited by
                              #14

                              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

                              --
                              Vasiliy

                              1 Reply Last reply
                              0
                              • E Offline
                                E Offline
                                Elber
                                wrote on last edited by
                                #15

                                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

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved