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

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
How To Complie Qt ?
« Reply #45 on: December 23, 2005, 09:53:49 am »
while looking for xpaint I found this:

http://wing.nagaokauniv.ac.jp/wiki/index.php?files

It seems qt compile with uim is available there.
SLC-860 cacko / senao wifi

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Complie Qt ?
« Reply #46 on: December 23, 2005, 10:20:35 am »
Thanks for the pointer!  But it's in Japanese, and I still don't qutie get it after Babelfishing it:

"uim http://uim.freedesktop.org/wiki/UimDownload
There is qt-immodule.
Because the configuration file is insufficient, uim of feed is put and the superscription.
uim_0.4.7_armv5tel.ipk"

Anyone who can read japanese explain this to the rest of us?  

Anyways I'll try that package and see what it does.  

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 #47 on: December 24, 2005, 05:13:30 pm »
Quote
while looking for xpaint I found this:

http://wing.nagaokauniv.ac.jp/wiki/index.php?files

It seems qt compile with uim is available there.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108219\"][{POST_SNAPBACK}][/a][/div]
Anyone tried this package? I keep getting the error:
Code: [Select]
error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directorywhen I try to run apps with this ipk installed?

Installed mesa3d which contains the libGL.so.1 and am trying it now to see if input works with this qt version.
« Last Edit: December 24, 2005, 05:15:54 pm by ShiroiKuma »
[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 #48 on: December 24, 2005, 05:45:37 pm »
Well, I tried these three packages, but still no luck.  

qt-mt_3.3.4_armv5tel.ipk
uim_0.4.7_armv5tel.ipk
scim-uim_0.1.3_armv5tel.ipk

I'm being kinda overwhelmed by the loads of info about locales and ways of activating the inputmethods.  
Although I managed to launch the uim-toolbar-qt screen from the terminal,  it seems to fail to do any effect; moreover uim-im-switcher seems to fail to see any table installed.  
Still need quite some time to study them as the qt-uim sites tells much more technical details than a plain user how-to.  
Tried the same way to scim-uim as I did to scim (including modifying .xinitrc) but nothing happened.  What is the proper way to call scim-uim with scim?

Also strangely qtconfig is missing, or is it what this means?
Quote
qt-mt ftp://ftp.trolltech.com/qt/source/
immodule(http://www.kde.gr.jp/~daisuke/immodule_for_qt/pukiwiki/)が入っています.
qtconfigなどが無いので,feedのqt-mt3.3.3を入れてから上書き.
qt-mt_3.3.4_armv5tel.ipk

Any hint more straightforward than those on the source sites are most appreciated.  Thanks ...

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 #49 on: December 24, 2005, 05:59:59 pm »
Quote
Well, I tried these three packages, but still no luck. 

qt-mt_3.3.4_armv5tel.ipk
uim_0.4.7_armv5tel.ipk
scim-uim_0.1.3_armv5tel.ipk
Did the same, doesn't work...

Quote
Also strangely qtconfig is missing, or is it what this means?
Quote
qt-mt ftp://ftp.trolltech.com/qt/source/
immodule(http://www.kde.gr.jp/~daisuke/immodule_for_qt/pukiwiki/)が入っています.
qtconfigなどが無いので,feedのqt-mt3.3.3を入れてから上書き.
qt-mt_3.3.4_armv5tel.ipk

Any hint more straightforward than those on the source sites are most appreciated.  Thanks ...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108416\"][{POST_SNAPBACK}][/a][/div]
Just means to overwrite the qt-mt installed first from the feed with the above ipk, that way you'll have qtconfig... That doesn't help though...
[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 #50 on: December 24, 2005, 06:28:59 pm »
Thanks for you quick reply, ShiroiKuma.  
Even the scim-uim package is not working, which is supposed to be separate from the qt things. Having it installed but no uim options are shown both in scim-setup and the input tool bar... like what is displayed here:
http://www.mrbass.org/linux/ubuntu/scim/

Perhaps the best solution is to (re)compile qt-mt with uim support.  Pity that I'm using Mac and simply can't use any of the cross SDKs.  My office WinXP machines don't allow me to install (or boot) my personal things.  So I can't help anything on compilation here but still I'd be more than happy to be one of the first testers.
« Last Edit: December 24, 2005, 06:33:36 pm 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 #51 on: January 01, 2006, 05:08:18 am »
Quote
while looking for xpaint I found this:

http://wing.nagaokauniv.ac.jp/wiki/index.php?files

It seems qt compile with uim is available there.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108219\"][{POST_SNAPBACK}][/a][/div]
I think we're close to a solution for this with this find. His qt is really compiled with the immodule patch. However the uim that's compiled there doesn't seem to work, it bombs out with a bunch of backtrace errors and then input doesn't work.

The answer is compile the newest uim, 1.0.1. I tried and succeeded, however realized that it must be configured with
Code: [Select]
--with-qt --with-qt-immoduleoptions and doing this I fail.

It bombs out with
Code: [Select]
In file included from chardict-qt.cpp:228:
chardict-qt.moc:12:2: #error "The header file 'chardict-qt.h' doesn't include
."
In file included from chardict-qt.cpp:228:
chardict-qt.moc:42: error: `const QMetaObject
KUimCharDict::staticMetaObject' is not a static member of `class
KUimCharDict'

I've searched the web to identify this error, only found out it's somehow related to using the right version of moc. I made sure to use the Qt version of moc, but can't compile this.

Can anyone help?
[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 #52 on: January 01, 2006, 05:22:07 am »
Sorry that I do want to help, but I can only do native compiling.  As for moc, I can only use pgas' zgcc-3.3.2 image and nothing else.  Do you mean that you've used it as well?
« Last Edit: January 01, 2006, 05:22: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 #53 on: January 01, 2006, 06:02:19 am »
Quote
Sorry that I do want to help, but I can only do native compiling.  As for moc, I can only use pgas' zgcc-3.3.2 image and nothing else.  Do you mean that you've used it as well?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I used 3.4.5.

Try it and see if you succeed.

Download [a href=\"http://uim.freedesktop.org/releases/uim-1.0.1.tar.gz]http://uim.freedesktop.org/releases/uim-1.0.1.tar.gz[/url]

untar it, cd to it and run:
Code: [Select]
./configure --with-qt --with-qt-immodule
and then
Code: [Select]
make
See if you get further.
[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 #54 on: January 01, 2006, 07:41:33 am »
Can't get qt-immodule configured.    
Already installed qt-headers and pgas' qt-mt-uim package.
Here is my configure result (using --with-qt --with-qt-immodule):

Code: [Select]
  Anthy           : no
   Canna           : no
   Mana            : no
   PRIME           : no
   m17n-lib        : no
   SCIM            : no
   Gtk+            : yes
   Gnome           : yes
   Gnome Applet    : no
   Qt              : yes
   Qt immodule     : cannot
   FEP             : yes
   Emacs           : yes
   XIM             : yes
   DICT            : no
   EB              : no
   libedit         : no
   Default toolkit : gtk

I found the qt plugins dir in /usr/lib/qt,
But QT_PLUGINSDIR is defined as $QTDIR/plugins in configure and configure.ac.
My QTDIR is exported as /usr/local/qt.
So I changed $QTDIR/plugins to /usr/lib/qt/plugins in lines 30539 and 30543 in configure, and in lines 700 and 703 in configure.ac.
But still got the same configure results.
I copied the two screen outputs and did a diff.  The path of QT_PLUGINSDIR did change and everything else remained the same:

Code: [Select]
checking for msgfmt... /opt/native/arm/3.3.2-xscale-softvfp/bin/msgfmt
 checking for msgmerge... /opt/native/arm/3.3.2-xscale-softvfp/bin/msgmerge
 checking for xgettext... /opt/native/arm/3.3.2-xscale-softvfp/bin/xgettext
-checking for qt-immodule plugins dir... /usr/local/qt/plugins
+checking for qt-immodule plugins dir... /usr/lib/qt/plugins
 checking for main in -lqt... no
 checking for main in -lqt-mt... yes
 checking Qt - version >= 3.2.0... "yes"
 

Attached are my screen output and the full config.log FYI.
I didn't go further to make coz there is no point of doing it without qt-immodule.  

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 #55 on: January 01, 2006, 09:41:34 am »
Quote
Can't get qt-immodule configured.   
Already installed qt-headers and pgas' qt-mt-uim package.
Here is my configure result (using --with-qt --with-qt-immodule):
I think pgas' qt-mt-uim package is problematic, it's not compiled properly with the immodule.

Use the qt-mt-3.3.4 package from the site he mentions: http://wing.nagaokauniv.ac.jp/wiki/index.php?files

It's got the qt-immodule properly compiled. It's not full, so you have to just take this package and install it on top of what you got now, it'll install into /usr/lib/qt and overwrite the necessary files.

Then run the configure again and it'll configure the qt-immodule no prob. The question is if you can run make then...
[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 #56 on: January 01, 2006, 11:22:24 am »
Quote
Quote
Can't get qt-immodule configured.    
Already installed qt-headers and pgas' qt-mt-uim package.
Here is my configure result (using --with-qt --with-qt-immodule):
I think pgas' qt-mt-uim package is problematic, it's not compiled properly with the immodule.

Use the qt-mt-3.3.4 package from the site he mentions: http://wing.nagaokauniv.ac.jp/wiki/index.php?files

It's got the qt-immodule properly compiled. It's not full, so you have to just take this package and install it on top of what you got now, it'll install into /usr/lib/qt and overwrite the necessary files.

Then run the configure again and it'll configure the qt-immodule no prob. The question is if you can run make then...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109095\"][{POST_SNAPBACK}][/a][/div]

I still failed to configure qt-immodule.  
Installed the qt-mt-3.3.4 package on top of pgas' qt-mt-uim.
Tried export QTDIR, QT_LIBRARY_PATH, and QT_PLUGINSDIR to /usr/lib/qt/... and /usr/local/qt/... in different trials, but still no luck...
Configure just kept reporting missing qt-immodule patch and gave the same configure result.
Got the patch.  But it's beyond my capacity to complie qt again...
 
« Last Edit: January 01, 2006, 11:23:25 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 #57 on: January 01, 2006, 12:31:02 pm »
Quote
I still failed to configure qt-immodule. 
Installed the qt-mt-3.3.4 package on top of pgas' qt-mt-uim.
Tried export QTDIR, QT_LIBRARY_PATH, and QT_PLUGINSDIR to /usr/lib/qt/... and /usr/local/qt/... in different trials, but still no luck...
Configure just kept reporting missing qt-immodule patch and gave the same configure result.
Got the patch.  But it's beyond my capacity to complie qt again...
 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109101\"][{POST_SNAPBACK}][/a][/div]
This is strange, QTDIR should be set to /usr/lib/qt, and /usr/lib/qt/lib should be in the LD_LIBRARY_PATH.

Did you restart X after installing the qt-mt-3.3.4?
[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 #58 on: January 01, 2006, 05:44:59 pm »
Quote
Did you restart X after installing the qt-mt-3.3.4?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109107\"][{POST_SNAPBACK}][/a][/div]

Yes, rebooting the device makes it work!  

Although not successfully made yet, at least some progress now.  
Configure okay with both qt and qt-immodule turned on.
moc is also working too with the zgcc-3.3.2 native compiler.
Here comes the real obstacle.  Make stopped here:
Code: [Select]
/bin/sh ../../libtool --tag=CXX --mode=link g++  -O2 -Wnon-virtual-dtor
-Wno-long-long -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -Wformat-security   -o uim-chardict-qt
-L/usr/lib/qt/lib -lqt-mt -lXext -lX11 uim_chardict_qt-chardict-qt.o
uim_chardict_qt-chardict-bushuviewwidget.o
uim_chardict_qt-chardict-chargridview.o uim_chardict_qt-chardict-kseparator.o
uim_chardict_qt-chardict-unicodeviewwidget.o  -ldl
mkdir .libs
libtool: link: warning: library `/usr/lib/qt/lib/libqt-mt.la' was moved.
libtool: link: warning: library `/usr/lib/qt/lib/libqt-mt.la' was moved.
libtool: link: cannot find the library `'
make[3]: *** [uim-chardict-qt] Error 1
make[3]: Leaving directory `/mnt/card/source/uim-1.0.1/qt/chardict'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/card/source/uim-1.0.1/qt/chardict'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/card/source/uim-1.0.1/qt'
make: *** [all-recursive] Error 1

Attached is my screen output of this make.  Any idea?
Could it be this:  in order to use moc and uic in the native SDK, i have to create a symbolic link from /usr/local/qt; but at the same time the qt-mt and qt-mt-uic files are installed to /usr/lib/qt/... , which is also the relevant export paths.  Hence a confusion of paths. Am I confused enough?  
« Last Edit: January 01, 2006, 05:48:40 pm 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 #59 on: January 02, 2006, 02:35:21 am »
Quote
Here comes the real obstacle.  Make stopped here:
Code: [Select]
/bin/sh ../../libtool --tag=CXX --mode=link g++  -O2 -Wnon-virtual-dtor
-Wno-long-long -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -Wformat-security   -o uim-chardict-qt
-L/usr/lib/qt/lib -lqt-mt -lXext -lX11 uim_chardict_qt-chardict-qt.o
uim_chardict_qt-chardict-bushuviewwidget.o
[div align=\"right\"][a href=\"index.php?act=findpost&pid=109137\"][{POST_SNAPBACK}][/a][/div]
Try running ./configure again with
Code: [Select]
--disable-dict --with-qt --with-qt-immodule
I have a feeling this'll work and then you're gonna get stuck in the qt directory with the KUimDict error, like I did...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze