RFR: 8255240: Mobile builds need to exclude some modules [v3]
Tran Khanh Duy
github.com+40482367+khanhduytran0 at openjdk.java.net
Sun Nov 1 00:31:58 UTC 2020
On Mon, 26 Oct 2020 08:47:51 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
>> Johan Vos has updated the pull request incrementally with one additional commit since the last revision:
>>
>> fix fi/endif issue
>
> Changes requested by ihse (no project role).
Excuse me, but why don't you port jdk8 instead?
Also, I succeed to port jdk8 to Android, but stuck at
static jboolean InitSimpleTypes
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://source.android.com/source/report-bugs.html> for instructions.
make[2]: *** [/home/runner/work/android-openjdk-build-multiarch/android-openjdk-build-multiarch/openjdk/build/linux-aarch64-normal-server-release/jdk/objs/libawt/GraphicsPrimitiveMgr.o] Error 1
lib/Awt2dLibraries.gmk:468: recipe for target '/home/runner/work/android-openjdk-build-multiarch/android-openjdk-build-multiarch/openjdk/build/linux-aarch64-normal-server-release/jdk/objs/libawt/GraphicsPrimitiveMgr.o' failed
make[2]: *** Waiting for unfinished jobs....
BuildJdk.gmk:70: recipe for target 'libs-only' failed
make[1]: *** [libs-only] Error 2
make: *** [jdk-only] Error 2
At
for (pHdr = pStart; pHdr < pEnd; pHdr = PtrAddBytes(pHdr, size)) {
If I comment out the check `pHdr < pEnd`, then it built. But I want it to complete headless AWT to get [Caciocavallo project working](https://openjdk.java.net/projects/caciocavallo/) or [wrap `Graphics2D` to Android `Canvas`](https://android.googlesource.com/platform/frameworks/native/+/1c07fd511df873d9c4b6dcd066529959f7809ff6/awt/com/android/internal/awt/AndroidGraphics2D.java).
-------------
PR: https://git.openjdk.java.net/mobile/pull/10
More information about the mobile-dev
mailing list