Guys, quite newbie stuff:
I have a .so shared library with my brand new InfoBox widget placed in a MTR namespace.
Then I have a test program:
Qt Code:
  1. #include <QApplication>
  2. #include <QtCore>
  3. #include <QtGui>
  4.  
  5. int main(int argc, char* argv[]) {
  6. QApplication app(argc, argv);
  7. MTR::InfoBox ib;
  8. ib.show();
  9. app.exec();
  10. return 0;
  11. }
To copy to clipboard, switch view to plain text mode 

its .pro:
Qt Code:
  1. TEMPLATE = app
  2. CONFIG += qt
  3. LIBS += -L/home/mtr/Programowanie/Projekty/MTRInfoBox -lMTRInfoBox
  4. SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode 

as you see I link the directory of my .so file as well as its name without "lib" prefix and .so* suffix.

I do not receive any messages that libMTRInfoBox.so.1.0.1 file hasn't been found.

Anyway I receive a message as if my test program did not know MTR::InfoBox class. Furthermore it doesn't recognize MTR namespace.

All in all I must have made some mistake somewhere...