Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. error while loading shared libraries: libAbout.so.1: cannot open shared object file: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 234 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.
  • B Offline
    B Offline
    Brashen
    wrote on last edited by
    #1

    On a prog i try to use a shared lib that i created .
    From QtCreator it works well , when i try from terminal i have this error msg :
    error while loading shared libraries: libAbout.so.1: cannot open shared object file: No such file or directory

    on .pro file i try with
    unix:!macx: LIBS += -L$$PWD/../../lib/libqt/bin/ -lAbout

    INCLUDEPATH += $$PWD/../../lib/libqt/bin
    INCLUDEPATH += $$PWD/../../lib/libqt/headers
    DEPENDPATH += $$PWD/../../lib/libqt/bin

    or

    unix:!macx: LIBS += -L/home/user/path/lib/libqt/bin/ -lAbout

    INCLUDEPATH += /home/user/path/lib/libqt/bin
    INCLUDEPATH += /home/user/path/lib/libqt/headers
    DEPENDPATH += /home/user/path/lib/libqt/bin

    but nothing change.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You need to set LD_LIBRARY_PATH to point to the folder where libAbout.so is present. Or put libAbout.so in standard library search paths (/usr/lib and the like).

      Or compile with RPATH (see QMAKE_RPATH).

      Or use deployment tool like linuxdeployqt.

      Or compile your library statically.

      (Z(:^

      1 Reply Last reply
      1

      • Login

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