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

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.1k 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.
  • R Offline
    R Offline
    Ratzz
    wrote on 18 Sept 2015, 09:56 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Sept 2015, 22:29 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

      R 1 Reply Last reply 19 Sept 2015, 05:29
      2
      • S SGaist
        18 Sept 2015, 22:29

        Hi,

        See this article about using path for that

        R Offline
        R Offline
        Ratzz
        wrote on 19 Sept 2015, 05:29 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 13 Sept 2019, 07:49
        2
        • R Ratzz
          19 Sept 2015, 05:29

          @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 13 Sept 2019, 07:49 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.

          R 1 Reply Last reply 13 Sept 2019, 17:03
          0
          • A Asha
            13 Sept 2019, 07:49

            @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.

            R Offline
            R Offline
            Ratzz
            wrote on 13 Sept 2019, 17:03 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 25 Mar 2022, 17:08 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