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:
#include <QApplication>
#include <QtCore>
#include <QtGui>
int main(int argc, char* argv[]) {
MTR::InfoBox ib;
ib.show();
app.exec();
return 0;
}
#include <QApplication>
#include <QtCore>
#include <QtGui>
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
MTR::InfoBox ib;
ib.show();
app.exec();
return 0;
}
To copy to clipboard, switch view to plain text mode
its .pro:
TEMPLATE = app
CONFIG += qt
LIBS += -L/home/mtr/Programowanie/Projekty/MTRInfoBox -lMTRInfoBox
SOURCES += main.cpp
TEMPLATE = app
CONFIG += qt
LIBS += -L/home/mtr/Programowanie/Projekty/MTRInfoBox -lMTRInfoBox
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...
Bookmarks