| 
 | adm | Find | login register | 
| 本人已不在此站活動  joined: 2007-09-19 posted: 4946 promoted: 325 bookmarked: 206 歸隱山林 | 
 
 作者  descent (爽過頭)                                     站內  Edward 
 
-- 
 | |||||||
| site admin  joined: 2007-08-09 posted: 679 promoted: 16 bookmarked: 5 Taiwan | 
 | |||||||
| guest | 
 | |||||||
| guest | 
 經過測試, 編出來的 so 可以使用。 qt3 或是 qt4 的 im module。 
作業環境: qt3-im.pro TEMPLATE = lib TARGET = im-gcin #include(../../qpluginbase.pri) CONFIG += qt plugin #QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/inputmethods HEADERS += qgcininputcontext.h \ qgcininputcontextplugin.h SOURCES += qgcininputcontextplugin_my.cpp \ qgcininputcontext_x11.cpp LIBS += -L.. -L../im-client/ -lgcin-im-client -lX11 target.path += $$[QT_INSTALL_PLUGINS]/inputmethods INSTALLS += target 這版的 make install有問題, 要自己手動 copy 到 inputmehtods 目錄。 
 需要 rename 成 libqgcin.so (/usr/lib/qt3/plugins/inputmethods)。 
 qt4-im.pro TEMPLATE = lib TARGET = im-gcin #include(../../qpluginbase.pri) CONFIG += qt plugin #QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/inputmethods HEADERS += gcin-common-qt.h \ gcin-imcontext-qt.h \ gcin-qt.h SOURCES += gcin-imcontext-qt.cpp \ gcin-qt.cpp \ im-gcin-qt.cpp LIBS += -L.. -L../im-client/ -lgcin-im-client -lX11 target.path += $$[QT_INSTALL_PLUGINS]/inputmethods INSTALLS += target 
 | 
| 
 | adm | Find | login register |