Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    qt5.5 qt installer fr
    4
    6
    21922
    Loading More Posts
    • 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.
    • Ratzz
      Ratzz last edited by aha_1980

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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

        Ratzz 1 Reply Last reply Reply Quote 2
        • Ratzz
          Ratzz @SGaist last edited by

          @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 Reply Quote 2
          • A
            Asha @Ratzz last edited by

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

            Ratzz 1 Reply Last reply Reply Quote 0
            • Ratzz
              Ratzz @Asha last edited by

              @asha
              Did you read the link present above ?

              --Alles ist gut.

              1 Reply Last reply Reply Quote 0
              • X
                xubaer last edited by

                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 Reply Quote 0
                • First post
                  Last post