By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1151

Summary: Build issue: kmymoney installs QT3 plugins in wrong directory
Product: TDE Reporter: Francois Andriot <albator78>
Component: non-core programsAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: major CC: bugwatch, darrella, slavek.banko
Priority: P5    
Version: 3.5.13 [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: Proposal for plugins directory localization
tqt : add pluginsdir to pkgconfig file
kmymoney : fix plugins install directory

Description Francois Andriot 2012-08-05 12:04:23 CDT
Hello, during Kmymoney build, there are 2 QT3 plugins which are built. They should be installed to the "plugins" directory from QT3.

A problem occurs on Mageia/Mandriva, where QT3 is installed in an uncommon way:
QTDIR=/usr/lib/qt3 (both on i686 and even on x86_64)
QTLIB=/usr/lib (on i686) or QTLIB=/usr/lib64 (on x86_64)

The "plugins" directory is either /usr/lib/qt3/plugins OR /usr/lib64/qt3/plugins .


1) The "kmymoney" plugin.
See file: kmymoney/kmymoney2/widgets/Makefile.am

The "install" command installs under:
$(DESTDIR)$(qt_libraries)/../plugins/designer
where $(qt_libraries) is obviously $QTLIB. It is expected that the QT3 "lib" directory is in the same folder as "plugins", which is false on MGA/MDV.
=> The plugin in installed under /usr/plugins, which is obviously incorrect.



2) the "sqlite3" plugin:
See file: kmymoney/qt-sqlite3-0.2/sqlite3/sqlite3.pro

The target.path indicate has value $QTDIR/plugins/sqldrivers . So it always installs under /usr/lib/qt3/plugins/sqldrivers , which is incorrect on x86_64 .


I have to do dirty patches to make it install correctly, but we should find a better way to localize the QT "plugins" directory.
Comment 1 Francois Andriot 2012-08-05 12:58:45 CDT
Created attachment 763 [details]
Proposal for plugins directory localization

The attached patch allows to specify at build time the "plugins" directory path, as an environment variable.

Ex:
export QTPLUGINS=/usr/lib64/qt3/plugins
make
make install
Comment 2 Slávek Banko 2013-11-13 21:36:49 CST
Created attachment 1638 [details]
tqt : add pluginsdir to pkgconfig file

I tried to add plugins install folder into TQt pkgconfig file.
This could then be used to install plugins in KMyMoney.

Please try it.
Comment 3 Slávek Banko 2013-11-14 19:09:50 CST
Created attachment 1640 [details]
kmymoney : fix plugins install directory

I prepared a patch that uses "pluginsdir" from tqt-mt pkg-config file - see patch in attachment 1638 [details]. Please test it.

I tried to find out in which case is used qt-sqlite3. And it seems to me that it is never build => not need to deal with it now.
Comment 4 Slávek Banko 2013-12-07 11:55:38 CST
Attachment 1638 [details] pushed to GIT in hashes 3a89e057 (qt3) / 34275de (tqt3).
Attachment 1640 [details] pushed to GIT in hash 848ba262.