Build aBridge with wxGTK 2.6.1

Gentoo January 30th, 2006

aBridge is one of open-source bridge applications based upon wxWindows 2.4.1, no longer maintained. Hope somebody would pick up the work.

Well, it looks like several users have problem to compile abridge. It takes me a little while to locate the problem, until I read this post, wxWidgets with unicode is flaky. My wxGTK is compiled with unicode and gtk2 support:

[ebuild U ] x11-libs/wxGTK-2.6.2-r1 [2.6.1] +X -debug +doc -gnome -joystick -odbc +opengl +sdl +unicode 14,160 kB

And I tested the setting with this. Yes, we can tell it is the unicode support. OK, just disable it in aclocal.m4.

Compile … several obsolete functions are used, replace them with alternatives… Compile … Redo the previous … Compile … Link …
Oops, another link error:

undefined reference to `pango_x_get_context

Google, and find this, add pango setting to aclocal.m4:

WX_LIBS_ONLY=”`$WX_CONFIG_WITH_ARGS –libs –unicode=no`”
PANGO_LIBS=”`pkg-config –libs pangox`”
WX_LIBS=”$PANGO_LIBS $WX_LIBS_ONLY “

Is this a bug for wxGTK? I don’t know. Make… Run…, it works.

Time to put every pieces together, download abridge-0.4.0-wxGTK-2.6.1.diff, and apply it to the original source code:

$ cd abridge-0.4.0
$ patch -p1 < ../abridge-0.4.0-wxGTK-2.6.1.diff
$ ./configure
$ make

Feel free to develop the ebuild based upon my work.

HOWTO import Outlook contacts to KAddressBook

Desktop, Gentoo January 28th, 2006

Outlook was once the central application to manage my emails, TODOs, appointments and contacts. Now I have migrated to Linux, and KDE Kontact would fulfill the responsibility of PIM. I googled around to figure out how to import legacy Outlook PST to KAddressbook.

Export contacts as vCard from Outlook, then import
Sorry, no Windows, no Outlook.

Export contacts via Outport
Outport is an open-source utility to export Outlook items. It accesses PST file via MAPI, the native Outlook component. It is useless without Outlook installed.

Read PST via libpst
libpst is the open-source utility to convert the Outlook PST to standard Unix mbox and vCard format.

$ readpst Outlook.pst

Since GBK is used as the built-in text encoding in Outlook, the file names and contents of the generated files by readpst were mess in my UTF-8 encoded linux box.

$ ls -la | iconv -f gbk -t utf8

Check the size of Contacts, in my case, it is 26542

$ cat `fine  ./ -size 26542c` | iconv -f gbk -t utf8 > lianxiren.vcf

Then just import the lianxiren.vcf from KAddressBook. Done.

Touchpad outage in Dell 700m

Gentoo January 10th, 2006

I’ve met this problem again. The touchpad stopped working suddenly, the dmesg is filled with:

psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1

Reboot would bring it back.The USB mouse works well regardless whether psmouse working or not. I searched the forum, and found several open issues, like this. The touchpad does not generate any messages to the /dev/input/event1. Currently, one quick-and-dirty solution is presented by one of Gentoo users:
compile the psmouse as the module instead of putting into the kernel. Whenever the previous situation happens,

# rmmod psmouse && modprobe psmouse