[kaffe] [1.1.1] patch to fix --with-awt=qt, problem w/ applets
Bernhard Rosenkraenzer
bero@arklinux.org
Tue Aug 19 14:13:02 2003
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--658386544-59004856-1061326736=:15185
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi,
we've just added Kaffe to Ark Linux.
We've had to patch a couple of things to get it to do work as we expect:
1. --with-awt=qt doesn't compile (Qt 3.2.0, gcc 3.3.1)
The problem is confusion about CheckException() vs. ExceptionCheck()
2. If both qt and qt-mt are installed, kaffe uses qt unconditionally.
Preferring qt-mt is probably preferrable because that's what KDE uses
and therefore it's usually in memory [I assume that people who want
--with-awt=qt are mostly KDE users]
Patches attached; works nicely now for a couple of test apps I've tried.
Has anyone succeeded in using kaffe for Java applet handling in Konqueror
yet? On my box, it displays "Loading Applet", the and the throbber keeps
turning forever.
Running appletviewer on a sample applet [any applet I've tried] results in
tlkProperties
qapp initialization.
tlkInit Done.
tlkGetScreenWidth
tlkGetScreenHeight
tlkGetResolution
Native AWT ---->evtInit
tlkVersion
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Monospaced
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntInitFont...Default
Native AWT ---->fntGetFixedWidth 0
Native AWT ---->fntIsWideFont
tlkDisplayBanner
Native AWT ---->fntGetFixedWidth 0
Native AWT ---->fntIsWideFont
Native AWT ---->fntInitFont...SansSerif
Native AWT ---->fntGetFixedWidth 0
Native AWT ---->fntIsWideFont
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
Aborted
LLaP
bero
--
Ark Linux - Linux for the masses
http://www.arklinux.org/
Redistribution and processing of this message is subject to
http://www.arklinux.org/terms.php
--658386544-59004856-1061326736=:15185
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="kaffe-1.1.1-fix-build.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.53.0308192258560.15185@dot.kde.org>
Content-Description: Fix build w/ awt=qt
Content-Disposition: attachment; filename="kaffe-1.1.1-fix-build.patch"
LS0tIGthZmZlL2luY2x1ZGUvam5pX2NwcC5oLmFyawkyMDAzLTA4LTE5IDIx
OjMyOjE5LjAwMDAwMDAwMCArMDIwMA0KKysrIGthZmZlL2luY2x1ZGUvam5p
X2NwcC5oCTIwMDMtMDgtMTkgMjE6MzI6MzIuMDAwMDAwMDAwICswMjAwDQpA
QCAtMTIwMSw5ICsxMjAxLDkgQEANCiAJcmV0dXJuIChmdW5jdGlvbnMtPkdl
dEphdmFWTSh0aGlzLCBhKSk7DQogfQ0KIA0KLWlubGluZSBqYm9vbGVhbiBK
TklFbnY6OkNoZWNrRXhjZXB0aW9uKHZvaWQpDQoraW5saW5lIGpib29sZWFu
IEpOSUVudjo6RXhjZXB0aW9uQ2hlY2sodm9pZCkNCiB7DQotCXJldHVybiAo
ZnVuY3Rpb25zLT5DaGVja0V4Y2VwdGlvbih0aGlzKSk7DQorCXJldHVybiAo
ZnVuY3Rpb25zLT5FeGNlcHRpb25DaGVjayh0aGlzKSk7DQogfQ0KIA0KICNl
bmRpZg0K
--658386544-59004856-1061326736=:15185
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="kaffe-1.1.1-prefer-qt-mt.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.53.0308192258561.15185@dot.kde.org>
Content-Description: Prefer qt-mt over qt
Content-Disposition: attachment; filename="kaffe-1.1.1-prefer-qt-mt.patch"
LS0tIGthZmZlLTEuMS4xL2d3cXQubTQuYXJrCTIwMDMtMDgtMTkgMjA6NTU6
MjguMDAwMDAwMDAwICswMjAwDQorKysga2FmZmUtMS4xLjEvZ3dxdC5tNAky
MDAzLTA4LTE5IDIwOjU2OjAyLjAwMDAwMDAwMCArMDIwMA0KQEAgLTkzLDIw
ICs5MywyMCBAQA0KICAgICAgICAgICAgIGZpDQogICAgICAgICBmaQ0KIA0K
LSAgICAgICAgaWYgdGVzdCAieGBscyAkUVRESVIvbGliL2xpYnF0LiogMj4g
L2Rldi9udWxsYCIgIT0geCA7IHRoZW4NCi0gICAgICAgICAgICBRVF9MSUI9
Ii1scXQiDQotICAgICAgICAgICAgUVRfSVNfTVQ9Im5vIg0KLSAgICAgICAg
ZWxpZiB0ZXN0ICJ4YGxzICRRVERJUi9saWIvbGlicXQtbXQuKiAyPiAvZGV2
L251bGxgIiAhPSB4IDsgdGhlbg0KKyAgICAgICAgaWYgdGVzdCAieGBscyAk
UVRESVIvbGliL2xpYnF0LW10LiogMj4gL2Rldi9udWxsYCIgIT0geCA7IHRo
ZW4NCiAgICAgICAgICAgICBRVF9MSUI9Ii1scXQtbXQiDQogICAgICAgICAg
ICAgUVRfSVNfTVQ9InllcyINCi0gICAgICAgIGVsaWYgdGVzdCAieGBscyAk
UVRESVIvbGliL2xpYnF0ZS4qIDI+IC9kZXYvbnVsbGAiICE9IHggOyB0aGVu
DQotICAgICAgICAgICAgUVRfTElCPSItbHF0ZSINCisgICAgICAgIGVsaWYg
dGVzdCAieGBscyAkUVRESVIvbGliL2xpYnF0LiogMj4gL2Rldi9udWxsYCIg
IT0geCA7IHRoZW4NCisgICAgICAgICAgICBRVF9MSUI9Ii1scXQiDQogICAg
ICAgICAgICAgUVRfSVNfTVQ9Im5vIg0KLSAgICAgICAgICAgIFFUX0lTX0VN
QkVEREVEPSJ5ZXMiDQogICAgICAgICBlbGlmIHRlc3QgInhgbHMgJFFURElS
L2xpYi9saWJxdGUtbXQuKiAyPiAvZGV2L251bGxgIiAhPSB4IDsgdGhlbg0K
ICAgICAgICAgICAgIFFUX0xJQj0iLWxxdGUtbXQiDQogICAgICAgICAgICAg
UVRfSVNfTVQ9InllcyINCiAgICAgICAgICAgICBRVF9JU19FTUJFRERFRD0i
eWVzIg0KKyAgICAgICAg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gInhgbHMgJFFU
RElSL2xpYi9saWJxdC4qIDI+IC9kZXYvbnVsbGAiICE9IHggOyB0aGVuDQor
ICAgICAgICAgICAgUVRfTElCPSItbHF0Ig0KICAgICAgICAgICAgIFFUX0lT
X01UPSJubyINCi0gICAgICAgICAgICBRVF9JU19FTUJFRERFRD0ieWVzIg0K
ICAgICAgICAgZWxpZiB0ZXN0ICJ4YGxzICRRVERJUi9saWIvbGlicXRlLW10
LiogMj4gL2Rldi9udWxsYCIgIT0geCA7IHRoZW4NCiAgICAgICAgICAgICBR
VF9MSUI9Ii1scXRlLW10Ig0KICAgICAgICAgICAgIFFUX0lTX01UPSJ5ZXMi
DQogICAgICAgICAgICAgUVRfSVNfRU1CRURERUQ9InllcyINCisgICAgICAg
IGVsaWYgdGVzdCAieGBscyAkUVRESVIvbGliL2xpYnF0ZS4qIDI+IC9kZXYv
bnVsbGAiICE9IHggOyB0aGVuDQorICAgICAgICAgICAgUVRfTElCPSItbHF0
ZSINCisgICAgICAgICAgICBRVF9JU19NVD0ibm8iDQorICAgICAgICAgICAg
UVRfSVNfRU1CRURERUQ9InllcyINCiAgICAgICAgIGZpDQogICAgICAgICA7
Ow0KIA0K
--658386544-59004856-1061326736=:15185--