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 Creator: error while loading shared libraries...
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: error while loading shared libraries...

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 2.3k 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.
  • S Offline
    S Offline
    sitesv
    wrote on 11 Dec 2020, 19:45 last edited by sitesv 12 Nov 2020, 19:48
    #1

    Hi!

    • I have a problem while starting the app from qt-creator.

    File structure:
    Test App: /home/user/test/
    SO: /home/user/project/cpp/dll/mylib/

    Shadow build switched off in each project.

    SO was added to the test project from QtCreator (right-click and add lib).

    LD_LIBRARY_PATH changed and the app successfully starts from the console, not from the qt-creator.

    This is my first time working with shared libraries. Guys, could you explain what I doing wrong?

    • Is it possible to debug SO code?
    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 11 Dec 2020, 19:50 last edited by
      #2

      Go to Projects->Run and uncheck "Add build library search path to LD_LIBRARY_PATH".

      Or, of course, you can use rpath to compile your library path into your application.

      (Z(:^

      S 1 Reply Last reply 11 Dec 2020, 19:56
      1
      • S sierdzio
        11 Dec 2020, 19:50

        Go to Projects->Run and uncheck "Add build library search path to LD_LIBRARY_PATH".

        Or, of course, you can use rpath to compile your library path into your application.

        S Offline
        S Offline
        sitesv
        wrote on 11 Dec 2020, 19:56 last edited by
        #3

        @sierdzio said in Qt Creator: error while loading shared libraries...:

        Go to Projects->Run and uncheck "Add build library search path to LD_LIBRARY_PATH".

        The result is the same. :(

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 11 Dec 2020, 19:57 last edited by
          #4

          Hm, so maybe also clear it in "Environment" section below.

          (Z(:^

          S 1 Reply Last reply 11 Dec 2020, 20:07
          0
          • S sierdzio
            11 Dec 2020, 19:57

            Hm, so maybe also clear it in "Environment" section below.

            S Offline
            S Offline
            sitesv
            wrote on 11 Dec 2020, 20:07 last edited by
            #5

            @sierdzio I checked 'Add library search path to LD_...' after rebooting OS.
            The problem was fixed.
            Thank you!

            S 1 Reply Last reply 11 Dec 2020, 20:24
            0
            • S sitesv
              11 Dec 2020, 20:07

              @sierdzio I checked 'Add library search path to LD_...' after rebooting OS.
              The problem was fixed.
              Thank you!

              S Offline
              S Offline
              sitesv
              wrote on 11 Dec 2020, 20:24 last edited by sitesv 12 Nov 2020, 20:25
              #6

              But what about the static libraries debugging?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sierdzio
                Moderators
                wrote on 12 Dec 2020, 09:28 last edited by
                #7

                Static libraries are compiled into your application.

                (Z(:^

                1 Reply Last reply
                2

                1/7

                11 Dec 2020, 19:45

                • Login

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