Hi,

I have a question about shared libraries in Linux.

When create my application in Windows, I can add the libraries I want to use simply in the .pro file:
Qt Code:
  1. win32:release {
  2. LIBS += release/frist.dll \
  3. release/second.dll
  4. }
  5.  
  6. win32:debug {
  7. LIBS += debug/frist.dll \
  8. debug/second.dll
  9. }
To copy to clipboard, switch view to plain text mode 

The same code doesn't work in Linux:
Qt Code:
  1. unix {
  2. LIBS += release/libfrist.so.1.0.0 \
  3. release/libsecond.so.1.0.0
  4. }
To copy to clipboard, switch view to plain text mode 

I'm able to compile the executable, but when I try to execute it, just nothing happens.
I used ldd (terminal command) to list all libraries which are used by my executable. It lists my *.so-file, but it says "not found". The Qt libraries are also listed, but that can be found. Why isn't Linux able to find my libraries? I put them in the same directory as the executable. I also tried to put them to /usr/lib and to put them to /lib but that didn't work, too. Do I need to register the libraries first or did I do something wrong when I compiled the executable?