How to compile Linux TVision for IDA Pro June 30

After hours of probes, i have finally compile Linux TVision for IDA Pro. First of all, you need idasdk (i have use idasdk49):
1. Cd to idasdk directory
2. Untar & Unzip TVision source code (http://www.datarescue.com/freefiles/tvision_level_l.tgz) in idasdk directory.
2b. [NEW] Edit the allmake.unx file to modify path to the sdk (the IDA variable)
3. cd sources
4. edit makefile and change ../../../…. for ../ in allmake.mak and objdir.mak
5. [NEW] Copy libida*.so files from your ida distribution to the idasdk/bin directory.
6. Finally, perl ../bin/idamake.pl
(7. [NEW] With gcc 4.x.x you could get the error: extra qualification ‘TCommandSet::’ on member ‘isEmpty’ in include/views.h
To resolve it, edit views.h and change Boolean TCommandSet::isEmpty(); with Boolean isEmpty();

Pascal La Fevre Oct 2
I must be missing something, when I tried this with the tvision source (tvision-m.zip) and the 5.1 SDK from datarescue’s site it didn’t work
This threw a number of errors for me:
1) Elements compiled in old .a format
had to add an -fPIC statement to the CFLAGS in allmake.unx
2) …..sdk/bin/qar.sh not found
(this wasn’t part of the SDK and seems to be a wrapper around ar to create an old style tv.a file.
I created a quick hack for qar.sh:
#!/bin/sh
#
# Strip AR param
shift
# Get library name and change .a -> .so
LIB=”`echo $1 | sed ’s/a$/so/g’`”
shift
strip $@
gcc -shared -W1,-soname,${LIB} -o ${LIB} $@
strip ${LIB}
#
# -EOF-
3) I copied this .so over the libtvision.so in the IDA directory and ran idal, which then threw 2 errors:
./idal: /usr/local/idaadv/libtvision.so: no version information available (required by ./idal)
./idal: relocation error: ./idal: symbol _ZTI7TWindow, version VERS_1.0 not defined in file libtvision.so with link time reference
Any ideas?