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. error while loading shared libraries: cannot open shared object file: No such file or directory
QtWS25 Last Chance

error while loading shared libraries: cannot open shared object file: No such file or directory

Scheduled Pinned Locked Moved Solved General and Desktop
qt5.5qt installer fr
6 Posts 4 Posters 26.0k 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.
  • RatzzR Offline
    RatzzR Offline
    Ratzz
    wrote on last edited by aha_1980
    #1

    I am using Qt5.5 . In my project i am using Qled as a custom widget. my project is working fine with Qled in windows and linux. I am using Qt Installer Framework for creating installer in linux . The final output from the Qt Installer Framework dos not run on double click when i run from the terminal i get error.

    error while loading shared libraries: libqledplugin.so: cannot open shared object file: No such file or directory
    

    So i found out that adding libqledplugin.so to the path /usr/local/lib works fine. I wanted to know is there other method to solve this error? Even if i place the .so file in the same folder as the output doesn't work . Should i add path to the .pro file? If so how to do it ?

    --Alles ist gut.

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

      Hi,

      See this article about using path for that

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

      RatzzR 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        See this article about using path for that

        RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by
        #3

        @SGaist
        Thanks for the reply
        Your link helped me.
        I just added QMAKE_LFLAGS += -Wl,-rpath,"'$$ORIGIN'" to my .pro file and it takes .so file from the same directory

        --Alles ist gut.

        A 1 Reply Last reply
        2
        • RatzzR Ratzz

          @SGaist
          Thanks for the reply
          Your link helped me.
          I just added QMAKE_LFLAGS += -Wl,-rpath,"'$$ORIGIN'" to my .pro file and it takes .so file from the same directory

          A Offline
          A Offline
          Asha
          wrote on last edited by
          #4

          @ratzz ,Hi can you elaborate,

          how too add this line on,which .pro file?

          how you fixed this problem,I am also facing the same problem.

          RatzzR 1 Reply Last reply
          0
          • A Asha

            @ratzz ,Hi can you elaborate,

            how too add this line on,which .pro file?

            how you fixed this problem,I am also facing the same problem.

            RatzzR Offline
            RatzzR Offline
            Ratzz
            wrote on last edited by
            #5

            @asha
            Did you read the link present above ?

            --Alles ist gut.

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xubaer
              wrote on last edited by
              #6

              hello..
              I solved the problem by installing dependencies as described in below link.
              https://web.stanford.edu/dept/cs_edu/resources/qt/install-linux
              my OS is Xubuntu 20.04

              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