From: Andrey Paskal Date: Wed, 18 Oct 2017 11:55:51 +0000 (+0300) Subject: Fixed Custom widgets plugins loading path X-Git-Url: https://gitweb.ananas.su/?a=commitdiff_plain;h=99d4093b6da3232aa6d596b43b362a99ec23d2af;p=projects%2Fananas-labs-qt4.git Fixed Custom widgets plugins loading path --- diff --git a/src/designer/main.cpp b/src/designer/main.cpp index 19f1257..e93fb13 100644 --- a/src/designer/main.cpp +++ b/src/designer/main.cpp @@ -160,7 +160,8 @@ int main( int argc, char ** argv ) qApp->addLibraryPath( qApp->applicationDirPath() ); #else pixmap = QPixmap( "/usr/share/ananas/designer/locale/designer-splash-"+lang+".png" ); -// qApp->addLibraryPath( "/usr/lib/ananas/" ); + qApp->addLibraryPath( "/usr/lib/ananas/" ); + qApp->addLibraryPath( "/usr/lib/ananas/designer/" ); // qApp->setLibraryPaths( QStringList() <<"/usr/lib/ananas/" ); #endif foreach (QString path, app.libraryPaths()) diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro index 2876c66..676543b 100644 --- a/src/plugins/plugins.pro +++ b/src/plugins/plugins.pro @@ -54,7 +54,8 @@ TRANSLATIONS = \ #SLASH = / unix { - target.path = /$(LIBDIR) +# target.path = /$(LIBDIR) + target.path = /$(LIBDIR)/ananas/designer # lplugin.files = libananasplugin.so # lplugin.extra = cp -f $(DESTDIR)/libananasplugin.so $(INSTALL_ROOT)$(LIBDIR) || true lpluginheader.path = /$(INCLUDEDIR)