[libbluray-devel] JRE for Android part 3
Petri Hintukainen
phintuka at users.sourceforge.net
Wed Feb 24 17:49:09 UTC 2021
ke, 2021-02-24 kello 13:24 -0300, Vitor Dall'Acqua kirjoitti:
> Hey just wanted to bring this back up again to check if you guys have
> any advice on this.I have compiled the aarch32 version of that
> OpenJDK but I'm facing 2 problems:
>
> One is that I can't build a server version of libjvm.so, so I'm using
> the client one.
> I have reported it here:
> https://github.com/PojavLauncherTeam/PojavLauncher/issues/949
> but so far no solution was found.
Those build scripts seem to select client JVM for aarch32.
Client JVM should be OK for BD-J.
> The other problem is that while using it libbluray always ends with
> this error:
> ERROR: loadN() failed: java.lang.UnsatisfiedLinkError:
> java.awt.Component.initIDs()V
> java.awt.Component.initIDs(Native Method)
> java.awt.Component.<clinit>(Component.java:596)
> org.videolan.BDJLoader.loadN(BDJLoader.java:228)
> org.videolan.BDJLoader.access$200(BDJLoader.java:46)
> org.videolan.BDJLoader$BDJLoaderAction.doAction(BDJLoader.java:363)
> org.videolan.BDJAction.process(BDJAction.java:59)
> org.videolan.BDJActionQueue.run(BDJActionQueue.java:86)
> java.lang.Thread.run(Thread.java:748)
>
> I have compiled the lib as debug and I'm using 0x22804 as debug mask
> for libbluray but no other information is available.
> Any idea what this might be?
I had the same issue while testing it in Ubuntu. AWT libraries are
missing native functions. Maybe preloading could fix this. I fixed it
by adding those functions to few more places...
You could try if the attached patch helps. Probably all changes are not
needed and some are "duplicate". I didn't test those much, as my only
intent was to see if it can run BD-J Xlets.
Ex. change in jdk/make/lib/Awt2dLibraries.gmk is basically wrong, and
may cause build issues. You probably should try first without it.
Also note that it is against aarch64 tree (I don't know if it applies
to aarch32 tree as-is).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openjdk_linux.diff
Type: text/x-patch
Size: 8430 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/libbluray-devel/attachments/20210224/c9c0b90a/attachment-0001.bin>
More information about the libbluray-devel
mailing list