Steps to make Kylix3 work with SuSE 10 and Mandriva 2006
Delphi part
In your "~/startdelphi" script, before "<path to kylix>/bin/delphi..." add the following lines:
export LD_ASSUME_KERNEL=2.4.21
export LANG=de_CH
//This is an example, remove the .UTF-8 part from the $LANG variable for your language
Download the workaround for the Kylix debugger here: ptrace version 4 (by Paulo Marques)
Have a look at the file "README".
Add the following line
export LD_PRELOAD=<path to>/ptrace_interposer.so
For non english keyboards, you need to add the line:
xmodmap <path to>/Xmodmap_????
You can download the Xmodmap file here for:
Swiss German Keyboard
German Keyboard (Thanks to Andreas Hausladen)
French Keyboard (Serge Brouillard)
Portuguese Keyboard (Adapted from the German Keyboard by Paulo Costa)
If you have mappings for other keyboards, you may send them to me and I'll add them here.
Apply the Kylix patches
by Andreas Hausladen
Now, Kylix (Delphi) should work fine on SuSE 10
The following part is for the "look & feel"
If you have KDE, disable the focus stealing feature (in German):
Kontrollzentrum -> Arbeitsfläche -> Fenstereigenschaften -> Erweitert -> Vorbeugung gegen
unerwünschte Aktivierung -> Keine
To have nice fonts, change in:
~/.borland/.borlandrc
[Tweak.Layout]
WineLook=Win95
You may also want to delete ~/.kderc
C++ part
Basically reproduce the steps above.
For compiling, apply the
Include directory patch
by Andreas Hausladen
There's currently no remedy known to me for the ilink problem.
Den Jean about Mandriva
#all as root
#edit startdelpi
vi `which startdelphi`
#Add to the existing export lines
#(at least before the last line)
export LD_ASSUME_KERNEL=2.4.21
export LD_PRELOAD=/usr/lib/ptrace_interposer.so
#copy ptrace_interpose.so /usr/lib
#edit sysctl.conf
vi /etc/sysctl.conf
#Add this line at the end:
vm.legacy_va_layout=1
#you need to reboot for this config setting to take effect
#or you can do this manually on the commandline
#but unlike the config setting, it is not permanent
echo 1 > /proc/sys/vm/legacy_va_layout
#you can verify this setting by doing
cat /proc/sys/vm/legacy_va_layout
#it should return 1
Den Jean about instaling on SuSE 10
1) LANG must be set
Even if you just use language "en" you still need to do
export LANG=en_US
2) LC_CTYPE must be set correctly
When working in a root login ('su -' or just actually logged in as root)
LC_CTYPE is not set correctly in Suse
export LC_CTYPE=en_US
If you do not do this, the font get very small or just disappear and
the forms of the ide get extremely large.
If you ran kylix like this and than make the fix with export blabla,
the next time your layout me be disturbed because kylix tried to save the
broken form positions. Just delete delphi96rc
rm ~/.borland/delphi69rc
3) MySQL:
mysql: we did not manage to get libmysqlclient-10 compiled on suse,
but just copying the Mandrake files and making the version links just worked
# cat install.sh
#!bin/bash
cp libmysqlclient.so.10.0.0 /usr/lib
cp libmysqlclient_r.so.10.0.0 /usr/lib
ln -sf /usr/lib/libmysqlclient.so.10.0.0 /usr/lib/libmysqlclient.so.10
ln -sf /usr/lib/libmysqlclient_r.so.10.0.0 /usr/lib/libmysqlclient_r.so.10
4) /proc/sys/vm/legacy_va_layout ?
This is not set in Suse10, though everything seems to
work, maybe if later you still discover problems in Suse with Kylix,
you may try it aswell. Googling for wine legacy_va_layout or
legacy_va_layout linux games reveals alot.