Author Topic: How To Complie Qt ?  (Read 28715 times)

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
How To Complie Qt ?
« Reply #30 on: December 19, 2005, 06:37:26 am »
it's compiled with -system-libjpeg (see the configure options above).
Now I didn't test it a lot
« Last Edit: December 19, 2005, 06:37:41 am by pgas »
SLC-860 cacko / senao wifi

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Complie Qt ?
« Reply #31 on: December 19, 2005, 08:04:46 am »
Great work, pgas!

I've tried both the qt-mt-uim and scim-qtimm packages.  But I have yet to get them loaded.  Both install fine, but both inputmethods don't seem to load in/together with my QT apps.

Quote
I installed it,and it works well  
but I want to know,how you compile it,why so many warnings and errors emerge when I compiling it?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
How do you load the input method actually?  

Despite many attempts to make sense of them, I still find the inputmethod issues rather confusing.     So here are a few questions.  It would be marvelous if someone can give a clear user guide:

1. Apart from qt-mt-uim, what other inputmethod related packages are required in order to get it to work?

2. What is the proper setting in qtconfig for the inputmethods: on the spot, over the spot, root, or disabled?

3. Do I need to edit .xinitrc?  If yes, how?  How should I set the followings:

export XMODIFIERS=
export XIM=
export XIM_PROGRAM=
export GTK_IM_MODULE=
export QT_IM_MODULE=

I've tried 'scim' in these and it works for GTK apps but still not QT ones.    
And I cannot figure out how to bring up qt-mt-uim.    
Pardon my ignorance I still couldn't figure out how they work after reading the related pages:
[a href=\"http://uim.freedesktop.org/wiki/UIM_2dXIM?action=highlight&value=qt]http://uim.freedesktop.org/wiki/UIM_2dXIM?...hlight&value=qt[/url] (qt uim?)  Am I reading the right stuff?
http://immodule-qt.freedesktop.org/wiki/So...2fimmodule_2dqt (scim-qtimm)  The page says "How to use: See README.immodule included in the patch." But I fail to find that doc anywhere.

4. Also how about the locale settings (export LANG= ,export LC_ALL, export LC_TYPE).  Do they matter?

Many many many thanks to all your kind souls for your hard work.    

PS Sorry one more question:
5. Now we have scim (including scim-qtimm), qt-mt-uim, and gcin.  Can they co-exist and work side by side in the system?
« Last Edit: December 19, 2005, 08:20:09 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
How To Complie Qt ?
« Reply #32 on: December 19, 2005, 08:35:55 am »
I am testing it too,you should know the qt_mt_uim was compiled for scim-qtimm,in order to scim support input chinese and other languages in qt apps.

at first,you should setting
export XMODIFIERS="@im=SCIM" (not scim)
export XIM=SCIM
export XIM_PROGRAM=SCIM
export GTK_IM_MODULE=scim (not SCIM)
export QT_IM_MODULE=scim  (not SCIM)

qtconfig >> over the spot

that all.but I can not test it successfully too
you can go to www.scim-im.org to find it's wiki
« Last Edit: December 19, 2005, 09:36:26 am by wjping119 »

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Complie Qt ?
« Reply #33 on: December 19, 2005, 09:13:42 am »
Quote
I am testing it too,you should know the qt_mt_uim was compiled for scim-qtimm,in order to scim support input chinese and other languages in qt apps.

at first,you should setting
export XMODIFIERS="@im=SCIM (not scim)
export XIM=SCIM
export XIM_PROGRAM=SCIM
export GTK_IM_MODULE=
export QT_IM_MODULE=SCIM

qtconfig >> over the spot

that all.but I can not test it successfully too
you can go to www.scim-im.org to find it's wiki
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107592\"][{POST_SNAPBACK}][/a][/div]

Thanks for your kind reply!  I tried both 'scim' and 'SCIM' in the setting, and they seem to make no difference to me (scim runs anyway).  
But I still can't get the qt packages to work.

Ok, let me first sum up the scim story a bit.  This is the most I can do for now.  Please correct me if I'm wrong anywhere.

==============================================================
SCIM for GTK & QT apps: How-to (rough draft)
Step 1
In order to use scim in both GTK and QT apps, one has to install (at least) these four packages:

scim_1.4.0-1_armv5tel.ipk  (in the feeds)
scim-tables_0.5.3-1_armv5tel.ipk  (in the feeds)
scim_qtimm_0.93_armv5tel.ipk  (in this thread)
qt_mt_uim_3.3.4_armv5tel.ipk  (in this thread; ipkg remove qt-mt first as suggested by pgas)

Step 2
And then go to the terminal, and type this and [Enter]
Code: [Select]
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
Step 3
Launch qtconfig,
then go to the Interface tab,
set the XIM Input Style to "Over The Spot",
save and exit.

Step 4
Edit .xinitrc (under /home/root),
Add the following lines in the beginning, below "test -f $HOME/.profile && ..."
Code: [Select]
export XMODIFIERS="@im=SCIM
export XIM=SCIM
export XIM_PROGRAM=SCIM
export GTK_IM_MODULE=SCIM
export QT_IM_MODULE=SCIM
Save the file,
and then exit,
and start the window manager again to let the new settting take effect.
« Last Edit: December 19, 2005, 09:17:24 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
How To Complie Qt ?
« Reply #34 on: December 19, 2005, 09:21:13 am »
Quote
it's compiled with -system-libjpeg (see the configure options above).
Now I didn't test it a lot
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107566\"][{POST_SNAPBACK}][/a][/div]
What does this option do? What would be the diffence when compiled without it?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
How To Complie Qt ?
« Reply #35 on: December 19, 2005, 09:22:08 am »
Quote
and then exit,
and start the window manager again to let the new settting take effect.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107597\"][{POST_SNAPBACK}][/a][/div]
What is a good Qt ap in which you can test whether the input is working?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Complie Qt ?
« Reply #36 on: December 19, 2005, 09:24:24 am »
Quote
Quote
and then exit,
and start the window manager again to let the new settting take effect.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107597\"][{POST_SNAPBACK}][/a][/div]
What is a good Qt ap in which you can test whether the input is working?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107599\"][{POST_SNAPBACK}][/a][/div]

Er.... Sorry I can't tell you now, just because for the moment I don't have enough intelligence to make qt-mt-uim and scim-qtimm function on my 860.   The rough guide is supposed to work, in theory (I hope).  
« Last Edit: December 19, 2005, 09:26:19 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
How To Complie Qt ?
« Reply #37 on: December 19, 2005, 09:39:21 am »
Quote
I am testing it too,you should know the qt_mt_uim was compiled for scim-qtimm,in order to scim support input chinese and other languages in qt apps.

at first,you should setting
export XMODIFIERS="@im=SCIM" (not scim)
export XIM=SCIM
export XIM_PROGRAM=SCIM
export GTK_IM_MODULE=scim (not SCIM)
export QT_IM_MODULE=scim  (not SCIM)

qtconfig >> over the spot

that all.but I can not test it successfully too
you can go to www.scim-im.org to find it's wiki
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107592\"][{POST_SNAPBACK}][/a][/div]
please note it should be above context,I modyfied it.still in testing.....

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
How To Complie Qt ?
« Reply #38 on: December 19, 2005, 09:48:16 am »
Maybe it's not working....and was not built correctly
SLC-860 cacko / senao wifi

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
How To Complie Qt ?
« Reply #39 on: December 19, 2005, 09:55:16 am »
Quote
What is a good Qt ap in which you can test whether the input is working?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
you can install kopi_178-1_armv5tel.ipk in the RC11 feed  [a href=\"http://mail.pdaxrom.org/rc11/Zaurus-7x0-860/feed/]http://mail.pdaxrom.org/rc11/Zaurus-7x0-860/feed/[/url]

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
How To Complie Qt ?
« Reply #40 on: December 19, 2005, 10:02:32 am »
Quote
Quote
What is a good Qt ap in which you can test whether the input is working?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
you can install kopi_178-1_armv5tel.ipk in the RC11 feed  [a href=\"http://mail.pdaxrom.org/rc11/Zaurus-7x0-860/feed/]http://mail.pdaxrom.org/rc11/Zaurus-7x0-860/feed/[/url]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107605\"][{POST_SNAPBACK}][/a][/div]
You're right, I could never input Japanese there. I'll try and test it...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Complie Qt ?
« Reply #41 on: December 19, 2005, 10:03:49 am »
Quote
Maybe it's not working....and was not built correctly
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107604\"][{POST_SNAPBACK}][/a][/div]

So far I've tried snotes, tuxcards, and vym.  SCIM is not working with them.
Nevermind, pgas.  I just can't say enough thanks to you for your great effort all along the way.
It is an extremely promising project indeed, and will benefit the Chinese, Japanese, and many other non-english Z communites tremendously.  Although I can't do any coding and hardcore compiling, I'd always  be ready to test any result and give feedback here.    
« Last Edit: December 19, 2005, 10:08:24 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
How To Complie Qt ?
« Reply #42 on: December 19, 2005, 10:23:39 am »
Quote
Nevermind, pgas.  I just can't say enough thanks to you for your great effort all along the way.
yes,so do I.pgas make great effort for CJK user,all of us should thank him  a lot.
now I want to know,how to test the inputplugins in qt and the scim-qtimm compiled correctly not by though test like this?
« Last Edit: December 19, 2005, 10:24:12 am by wjping119 »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
How To Complie Qt ?
« Reply #43 on: December 19, 2005, 10:28:27 am »
Quote
I want to know,how to test the inputplugins in qt and the scim-qtimm compiled correctly not by though test like this?

recompile everything with debug, run it inside gdb...
one thing that might be wrong is that I am perhaps missing a switch in configure for the input method, though it seems compiled with support for it.

Oh btw, did you try fcitx?
SLC-860 cacko / senao wifi

wjping119

  • Newbie
  • *
  • Posts: 47
    • View Profile
How To Complie Qt ?
« Reply #44 on: December 19, 2005, 10:52:18 am »
Quote
Oh btw, did you try fcitx?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107610\"][{POST_SNAPBACK}][/a][/div]

yes,I tested it,but it only use for chinese simplified,it start well but cannot use, and I cannot setting it to make it working,I can not find anything I should do for it.I will look for some help from it's author.
« Last Edit: December 19, 2005, 11:05:48 am by wjping119 »