Building for Android
Per Bothner
per@bothner.com
Wed Oct 19 16:05:23 GMT 2022
On 10/19/22 02:15, Panicz Maciej Godek wrote:
> However, even after fixing that, I get another error:
>
> Error: Field name '\=android\,view\,View' cannot be represented in dex format.
>
> I really don't know how to overcome that one (IIRC Kawa 1.13 used $Dt as a replacement for a dot)
There is still logic in Kawa to use-old style mangling (such as "$Dt" for ".") when Kawa
is build for Android. Notice the /* #ifdef Android */ in gnu/expr/Magling.java.
This code is supposed to be enable by the gnu/kawa/util/PreProcess.java helper,
specifically if you configure --with-android.
So the first step is to make sure your working copy of Mangling.java actually does have the USE_SYMBOLIC
set to false. If it doesn't, delete the file selected-java-source, and re-run configure and make.
Check the PreProcess in the 'make' log.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Kawa
mailing list