Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT 5.2 cannot find libraries ending with e.g. *.so.0
Qt 6.11 is out! See what's new in the release blog

QT 5.2 cannot find libraries ending with e.g. *.so.0

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 5.1k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    pm.schroeder
    wrote on last edited by
    #1

    Hi,
    I've just installed Qt 5.2 and tried out to compile and link a desktop application (own development), which has done fine on Qt 5.1 and Qt 4.8. I'm working on Linux Mint 15 (64bit).
    The linking process ends up with a list of system libraries that it cannot find, e.g. -lxslt -lgio-2.0 -lgstapp-0.10 and so on. All these libraries are present on my system with a different extension not "libgio-2.0.so" but "libgio-2.0.so.0". I can rename them and the linker finds it. This is a different behaviour in Qt 5.2, and very annoying because i really don't want to change the name of all these libraries manually.
    Is there a chance to revoke this change from Qt 5.1 to Qt 5.2?
    Yours pm

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MarianMMX
      wrote on last edited by
      #2

      Make sure you installed the development package for those libraries.
      Don't rename runtime libraries, make symbolic links, ex.
      @
      ln -s /usr/lib/lib.so.0 /usr/lib/lib.so
      @

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pm.schroeder
        wrote on last edited by
        #3

        Thanks, you are right! To be precise, I didn't rename the libraries, but made symbolic links as you've supposed. I also found some missing development packages of e.g. gstreamer. My program has meanwhile compiled.
        But all this makes me really unhappy, since I would expect Qt to check for missing dependencies during the installation. (I've installed the offline script qt-linux-opensource-5.2.0-x86_64-offline.run). Furthermore, there were no similar problems with older versions of Qt.
        pm.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MarianMMX
          wrote on last edited by
          #4

          For linux is recommended to compile Qt yourself. The configure script will enable the existing libs, or disable what is not present.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi and welcome to devnet,

            It's very difficult to make such a detection for linux as several distributions uses different package managers with different package naming etc.

            The best place to look for a dependency list is the "build Qt 5 from Git":http://qt-project.org/wiki/Building-Qt-5-from-Git page

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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