<div dir="auto">And to follow up, the earlier error is that dlopen was prevented from opening the library, the newer error is that it was able to open it, but couldn't resolve all it's dependencies.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 23, 2021, 11:51 PM Vitor Dall'Acqua <<a href="mailto:veggav@gmail.com">veggav@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I can add the libjvm.so adding the file inside a mid build step of kodi, when it makes the apk file. <div>to build the apk with kodi you do <br>$ make apk</div><div><br></div><div>but I guess the path is wrong still</div><div><br></div><div>2021-01-23 19:36:07.121 T:23253   DEBUG <general>: CBlurayCallback::Logger - bdj.c:333: Opening libjvm ...<br>                                                   <br>2021-01-23 19:36:07.133 T:23253   DEBUG <general>: CBlurayCallback::Logger - dl_posix.c:54: can't open library 'libjvm.so': dlopen failed: library "libm.so.6" not found<br>                                                   <br>2021-01-23 19:36:07.133 T:23253   DEBUG <general>: CBlurayCallback::Logger - bdj.c:474: Skipping /lib/arm64/ (not found)<br></div><div><br></div><div>I figure based on that previews log that android would be like this</div><div><br></div><div>2021-01-23 18:21:35.377 T:19738   DEBUG <general>: CBlurayCallback::Logger - dl_posix.c:54: can't open library '/storage/emulated/0/JAVA/jre/lib/aarch64/server/libjvm.so': dlopen failed: library "/storage/emulated/0/JAVA/jre/lib/aarch64/server/libjvm.so" needed or dlopened by "/mnt/expand/cab01563-bcca-48fa-a0bf-0fbddaf9b192/app/org.xbmc.kodi19DV-BHAaVSj7u8lhvDk_OSQttQ<b>==</b>/lib/arm64/libkodi.so" is not accessible for the namespace "classloader-namespace"<br></div><div><br></div><div>because of those ==</div><div><br></div><div>or maybe it found and failed because of libm.so.6</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 23, 2021 at 6:38 PM Shaya Potter <<a href="mailto:spotter@gmail.com" target="_blank" rel="noreferrer">spotter@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 23, 2021, 11:32 PM Petri Hintukainen <<a href="mailto:phintuka@users.sourceforge.net" target="_blank" rel="noreferrer">phintuka@users.sourceforge.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">la, 2021-01-23 kello 17:43 -0300, Vitor Dall'Acqua kirjoitti:<br>
> Well, I'm no expert but when I tried to add it along with other<br>
> libraries it ended up in the same folder along with all other libs.<br>
<br>
Then, it should find libjvm.so from there without any path ? If<br>
JAVA_HOME is unset, first probed library is "libjvm.so" without any<br>
path added to it.<br>
<br>
If not, you could try adding following snippet to bdj.c:_load_jvm(),<br>
before "java_home = getenv("JAVA_HOME")" line:<br>
<br>
    handle = dl_dlopen("/lib/arm64/libjvm.so", NULL);<br>
    if (handle) {<br>
        return handle;<br>
    }<br>
<br>
But JVM probably won't find other files it needs if those are inside<br>
the apk.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I was arguing that the whole jvm needs to be in the apk, see the phoneme apk I linked to.  It includes cvm in /assets/</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div></div>
_______________________________________________<br>
libbluray-devel mailing list<br>
<a href="mailto:libbluray-devel@videolan.org" target="_blank" rel="noreferrer">libbluray-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
</blockquote></div>
_______________________________________________<br>
libbluray-devel mailing list<br>
<a href="mailto:libbluray-devel@videolan.org" target="_blank" rel="noreferrer">libbluray-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
</blockquote></div>