Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
app-i18n/uim-1.6.0: compile error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bpoint
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 81
Location: Japan

PostPosted: Wed Nov 24, 2010 12:43 pm    Post subject: app-i18n/uim-1.6.0: compile error Reply with quote

Hello all,

I'm trying (and so far failing) to get a Japanese IME working in Gentoo. I first started out with ibus which partially worked -- but had problems interfacing with KDE and Opera, and it wouldn't respond to the hangaku/zenkaku toggle key even though I specifically set it in the preferences.

I decided to try a different IME, and next chose uim. I first got a sandbox error as described here, and after applying the workaround, I managed to get past that part, but now have a different compile error:

Code:
common-quimhelpertoolbar.cpp: In function 'void launchHelperApplication(const QString&)':
common-quimhelpertoolbar.cpp:56:40: error: request for member 'arg' in '(const char*)("Cannot launch \'%1\'.")', which is of non-class type 'const char*'


The actual function where this error occurs is (comment added by me):

Code:
static void launchHelperApplication( const QString &command )
{
    if ( !command.isEmpty() && !QProcess::startDetached( command ) ) {
        QMessageBox::warning( 0, "uim",
            _( "Cannot launch '%1'." ).arg( command ) );         // <- line 56
    }
}


Incidentally, there are also a lot of warnings coming from the QT header files, which is leading me to think that uim might not be the best choice. I've also tried compiling with both gcc-4.4.5 and gcc-4.5.1 -- same error. For what it's worth, uim is being compiled with the following USE flags:
Code:
[ebuild  N    ] app-i18n/uim-1.6.0  USE="X anthy curl gtk kde libnotify ncurses qt4 sqlite ssl unicode -canna -eb -emacs -ffi -gnome -libedit -m17n-lib -nls -prime -skk -test -xft" LINGUAS="ja -ko -zh_CN -zh_TW" 0 kB


Does anyone have any suggestions on what I could do here, or should I just give up and try scim? Or is there any other IME that works well with KDE that I'm not aware of?

Here's my emerge --info by the way:
Code:
Portage 2.1.9.24 (default/linux/amd64/10.0/no-multilib, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r1-x86_64-AMD_Phenom-tm-_9650_Quad-Core_Processor-with-gentoo-1.12.14
Timestamp of tree: Mon, 22 Nov 2010 13:45:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2, 4.4.5, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ja"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X alsa amd64 anthy bash-completion bzip2 cjk cli cracklib crypt cups curl cxx dbus dri exif ffmpeg flac gdbm gif glibc-omitfp gpm gtk iconv inotify jpeg jpeg2k kde lame libnotify lzma mmx mng modules mp3 mpeg mudflap multislot ncurses network nptl nptlonly ogg opengl openmp pam pch pcre perl png pppd python qt3support qt4 readline samba session sql sqlite sqlite3 sse sse2 ssl svg sysfs tcpd threads threadsafe tiff truetype unicode usb vorbis webkit x264 xml xorg xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Thanks for any help or suggestions ahead of time!
Back to top
View user's profile Send private message
bpoint
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 81
Location: Japan

PostPosted: Wed Nov 24, 2010 4:40 pm    Post subject: Reply with quote

For what it's worth, I don't have any issues compiling uim-1.5.7-r1:
Code:
>>> Recording app-i18n/uim in "world" favorites file...

 * Messages for package app-i18n/uim-1.5.7-r1:

 *
 * To use uim-skk you should emerge app-i18n/skk-jisyo.
...
Back to top
View user's profile Send private message
bpoint
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 81
Location: Japan

PostPosted: Wed Nov 24, 2010 5:47 pm    Post subject: Reply with quote

uim-1.5.7 seems to work pretty nicely with KDE so far, but I'm still unable to get it to work at all in Opera. I've tried running the xim bridge daemon and forcing Opera to use it by changing QT_IM_MODULE, but none of the input keys are even being picked up by uim. Basically, the zenkaku/hangaku toggle doesn't respond at all when Opera is in focus, and even if I toggle the input mode to hiragana using the toolbar, I still just get romaji in Opera.

I found some patches to uim-1.5.7 that deal with getting it to work with Opera that are likely already fixed in uim-1.6.0, so I'd still like to get 1.6.0 working somehow.

Any suggestions?
Back to top
View user's profile Send private message
mnogu
n00b
n00b


Joined: 19 Dec 2010
Posts: 1

PostPosted: Sun Dec 19, 2010 3:38 am    Post subject: Re: app-i18n/uim-1.6.0: compile error Reply with quote

How about replacing "_()" with "mygettext()" in the code or enabling the nls USE flag?
For the former solution, see http://code.google.com/p/uim/source/detail?r=6833

bpoint wrote:

Code:
common-quimhelpertoolbar.cpp: In function 'void launchHelperApplication(const QString&)':
common-quimhelpertoolbar.cpp:56:40: error: request for member 'arg' in '(const char*)("Cannot launch \'%1\'.")', which is of non-class type 'const char*'


The actual function where this error occurs is (comment added by me):

Code:
static void launchHelperApplication( const QString &command )
{
    if ( !command.isEmpty() && !QProcess::startDetached( command ) ) {
        QMessageBox::warning( 0, "uim",
            _( "Cannot launch '%1'." ).arg( command ) );         // <- line 56
    }
}


Incidentally, there are also a lot of warnings coming from the QT header files, which is leading me to think that uim might not be the best choice. I've also tried compiling with both gcc-4.4.5 and gcc-4.5.1 -- same error. For what it's worth, uim is being compiled with the following USE flags:
Code:
[ebuild  N    ] app-i18n/uim-1.6.0  USE="X anthy curl gtk kde libnotify ncurses qt4 sqlite ssl unicode -canna -eb -emacs -ffi -gnome -libedit -m17n-lib -nls -prime -skk -test -xft" LINGUAS="ja -ko -zh_CN -zh_TW" 0 kB

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum