Tuesday, November 18, 2008

Build A11y

1.creat evn:
#!/bin/bash
MONO_PREFIX=/opt/mono
GNOME_PREFIX=/usr
export DYLD_LIBRARY_PATH=$MONO_PREFIX/lib:$DYLD_LIBRARY_PATH
export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=$MONO_PREFIX/include:$GNOME_PREFIX/include
export ACLOCAL_PATH=$MONO_PREFIX/share/aclocal
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:$GNOME_PREFIX/lib/pkgconfig
PATH=$MONO_PREFIX/bin:$PATH
PS1="[mono]\w@ "

2.download libgdiplus, mono, gtk-sharp, monodoc, mono-tools, uia2atk from SVN

3.run #source ./evn

4.build and install sources with ./autogen --prefix=/opt/mono && make && make install, the order is libgdiplus->mono->gtk-sharp->monodoc->mono-tools->uia2atk(UIAutomation->UIAutomationWinforms->UiaAtkBridge)

5.modify /usr/bin/ipy from "/usr/bin/mono" to "/opt/mono/bin/mono /"

Okay, now you can run SWF application from uia2atk/test/samples, and your accerciser can catch the ipy application. you have two mono environment running in parallel

No comments: