Bug 18190 - uim-1.5.3 can't compile with qt4-immodule
Summary: uim-1.5.3 can't compile with qt4-immodule
Status: RESOLVED FIXED
Alias: None
Product: UIM
Classification: Unclassified
Component: bridge: Qt (show other bugs)
Version: unspecified
Hardware: Other NetBSD
: medium normal
Assignee: uim-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 11:13 UTC by Yamashiro, Jun
Modified: 2008-10-23 18:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch for compile with Qt4 immodule. (536 bytes, patch)
2008-10-23 11:13 UTC, Yamashiro, Jun
Details | Splinter Review

Description Yamashiro, Jun 2008-10-23 11:13:08 UTC
Created attachment 19829 [details] [review]
Patch for compile with Qt4 immodule.

I compiled uim-1.5.3 with --with-qt4-immodule option.  But it failed at uim-1.5.3/qt4/immodule.
Because, g++ can't find uim-1.5.3/replace/.libs/libreplace.a .

Build sample at NetBSD:
# ./configure --with-qt4-immodule QMAKE4=/usr/pkg/qt4/bin/qmake
(snip)
# gmake QTDIR=/usr/pkg/qt4
(snip)
/usr/pkg/bin/gmake  -f Makefile.qmake all
gmake[1]: Entering directory `/path/to/uim-1.5.3/qt4/immodule'
(snip)

libtool --silent --mode=link c++ -avoid-version -rpath /usr/pkg/qt4/plugins/inputmethods -module -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib -shared -o libuiminputcontextplugin.la plugin.lo qhelpermanager.lo quiminputcontext.lo quiminputcontext_compose.lo candidatewindow.lo subwindow.lo quiminfomanager.lo qtextutil.lo moc_qhelpermanager.lo moc_quiminputcontext.lo moc_plugin.lo moc_candidatewindow.lo moc_subwindow.lo moc_qtextutil.lo    -L/usr/pkg/lib -L/usr/pkgsrc/wip-jp/uim-qt4-immodule/work/uim-1.5.3/uim -L/path/to/uim-1.5.3/replace/.libs -L/path/to/uim-1.5.3/uim/.libs -L/usr/pkg/qt4/lib -lreplace -luim -luim-scm -luim-x-util -pthread -lQt3Support -lQtGui -lQtCore
g++: /path/to/uim-1.5.3/replace/.libs/.libs/libreplace.a: No such file or directory

How to fix:
Add library search path to qt4/immodule/quiminputcontextplugin.pro.in.
Comment 1 Etsushi Kato 2008-10-23 18:42:21 UTC
Oh, we assume that libtool is not used for QMAKE_LINK_SHLIB for all platforms.  But it turn out the assumption is not true, at least with NetBSD pkg's Qt4.  Thank you for reporting the problem and the patch.

I've just committed your patch into the repository.  Next release of uim 1.5.4 will contain this fix.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.