ah, you are working on extensions. yes, extensions cannot use the base/. hmm why extensions need to load two libraries? Can you merge them into one?
- DS On Wed, Jun 10, 2015 at 3:33 PM, Alexis Menard <[email protected]> wrote: > Hi, > > It's there forever (since 2014). > > Thanks. > > On Wed, Jun 10, 2015 at 9:31 AM, Iovene, Salvatore > <[email protected]> wrote: > > I can't import that, it seems. Possibly not present in the version of > > Crosswalk I'm using? > > > > On Wed, Jun 10, 2015 at 3:29 PM, Antonio Aloisio <[email protected]> > wrote: > >> Hi Salvatore, > >> Here is the file that DS is talking about: > >> > https://github.com/crosswalk-project/chromium-crosswalk/blob/master/base/android/java/src/org/chromium/base/library_loader/Linker.java > >> > >> Cheers, > >> Antonio > >> > >> On Wed, Jun 10, 2015 at 3:22 PM, Iovene, Salvatore > >> <[email protected]> wrote: > >>> > >>> FYI, I'm using this Crosswalk: > >>> > >>> > >>> > https://download.01.org/crosswalk/releases/crosswalk/android/beta/10.39.235.3/crosswalk-10.39.235.3.zip > >>> > >>> On Wed, Jun 10, 2015 at 3:17 PM, Iovene, Salvatore > >>> <[email protected]> wrote: > >>> > Can you link me to an online browseable version of that code on the > >>> > crosswalk repo? Can't immediately find how to import that. > >>> > > >>> > On Wed, Jun 10, 2015 at 3:13 PM, Hwang, Dongseong > >>> > <[email protected]> wrote: > >>> >> How about using Linker.loadLibrary in > >>> >> base/android/java/src/org/chromium/base/library_loader/Linker.java, > >>> >> instead > >>> >> of System.loadLibrary? > >>> >> The description in Linker.java looks what you want. > >>> >> > >>> >> Br, DS > >>> >> > >>> >> On Wed, Jun 10, 2015 at 3:02 PM, Antonio Aloisio <[email protected] > > > >>> >> wrote: > >>> >>> > >>> >>> Hi Salvatore, > >>> >>> if libfoo depends on libbar, then you must load bar before loading > foo > >>> >>> or > >>> >>> it won't correctly link the libs... thus the loader will fail to > load > >>> >>> the > >>> >>> libs. > >>> >>> > >>> >>> Cheers, > >>> >>> Antonio > >>> >>> > >>> >>> > >>> >>> On Wed, Jun 10, 2015 at 2:49 PM, Iovene, Salvatore > >>> >>> <[email protected]> wrote: > >>> >>>> > >>> >>>> Hi, > >>> >>>> I would like to extend this message with more findings, and > perhaps > >>> >>>> this can help some of you help me. > >>> >>>> > >>> >>>> I have tried packaging my extension's jar so that the .so files I > get > >>> >>>> from the third party library end in the /lib/armeabi-v7a/ > directory > >>> >>>> within the jar. > >>> >>>> Then, when making an APK for my app using make_apk.py, the .so > files > >>> >>>> indeed end up next to libxwalkcore.so, again in /lib/armeabi-v7a/. > >>> >>>> > >>> >>>> So far so good, and I was thinking I might have a change of things > >>> >>>> working. Then, in my class that extends XWalkExtensionClient, I'm > >>> >>>> doing a block like this: > >>> >>>> > >>> >>>> static { > >>> >>>> System.loadLibrary("foo"); > >>> >>>> System.loadLibrary("bar"); > >>> >>>> } > >>> >>>> > >>> >>>> thinking this would load libfoo.so and libbar.so. > >>> >>>> > >>> >>>> However, I'm getting the following error in the logs: > >>> >>>> > >>> >>>> > E/dalvikvm( 3503): > >>> >>>> > dlopen("/data/app-lib/org.crosswalkproject.myapp/libfoo.so") > >>> >>>> > failed: dlopen > >>> >>>> > failed: could not load library "libbar.so" needed by "libfoo.so" > >>> >>>> > >>> >>>> Obviously libfoo has a dependency on libbar. This also caught my > eye: > >>> >>>> > >>> >>>> > cannot locate symbol "pthread_condattr_setclock" referenced by > >>> >>>> > "libbar.so" > >>> >>>> > >>> >>>> Any idea how to proceed? > >>> >>>> > >>> >>>> TIA, > >>> >>>> Salvatore. > >>> >>>> > >>> >>>> > >>> >>>> On Thu, Jun 4, 2015 at 1:02 PM, Iovene, Salvatore > >>> >>>> <[email protected]> wrote: > >>> >>>> > Hi, > >>> >>>> > I'm writing an extension for Crosswalk for Android, and my main > >>> >>>> > dependencies is released as an .aar file which includes native > >>> >>>> > libraries (*.so). > >>> >>>> > > >>> >>>> > Can anyone advise on how to package and distribute my extension > so > >>> >>>> > it > >>> >>>> > can include that? > >>> >>>> > > >>> >>>> > Thanks, > >>> >>>> > Salvatore. > >>> >>>> > > >>> >>>> > -- > >>> >>>> > Salvatore Iovene <[email protected]> > >>> >>>> > Linux Software Engineer > >>> >>>> > Intel Open Source Technology Center, Finland > >>> >>>> > Tel.: +358504804026 > >>> >>>> > >>> >>>> > >>> >>>> > >>> >>>> -- > >>> >>>> Salvatore Iovene <[email protected]> > >>> >>>> Linux Software Engineer > >>> >>>> Intel Open Source Technology Center, Finland > >>> >>>> Tel.: +358504804026 > >>> >>>> _______________________________________________ > >>> >>>> Crosswalk-help mailing list > >>> >>>> [email protected] > >>> >>>> > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help > >>> >>> > >>> >>> > >>> >>> > >>> >>> _______________________________________________ > >>> >>> Crosswalk-help mailing list > >>> >>> [email protected] > >>> >>> > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help > >>> >>> > --------------------------------------------------------------------- > >>> >>> Intel Finland Oy > >>> >>> Registered Address: PL 281, 00181 Helsinki > >>> >>> Business Identity Code: 0357606 - 4 > >>> >>> Domiciled in Helsinki > >>> >>> > >>> >>> This e-mail and any attachments may contain confidential material > for > >>> >>> the sole use of the intended recipient(s). Any review or > distribution > >>> >>> by others is strictly prohibited. If you are not the intended > >>> >>> recipient, please contact the sender and delete all copies. > >>> >>> > >>> >> > >>> >> > --------------------------------------------------------------------- > >>> >> Intel Finland Oy > >>> >> Registered Address: PL 281, 00181 Helsinki > >>> >> Business Identity Code: 0357606 - 4 > >>> >> Domiciled in Helsinki > >>> >> > >>> >> This e-mail and any attachments may contain confidential material > for > >>> >> the sole use of the intended recipient(s). Any review or > distribution > >>> >> by others is strictly prohibited. If you are not the intended > >>> >> recipient, please contact the sender and delete all copies. > >>> > > >>> > > >>> > > >>> > -- > >>> > Salvatore Iovene <[email protected]> > >>> > Linux Software Engineer > >>> > Intel Open Source Technology Center, Finland > >>> > Tel.: +358504804026 > >>> > >>> > >>> > >>> -- > >>> Salvatore Iovene <[email protected]> > >>> Linux Software Engineer > >>> Intel Open Source Technology Center, Finland > >>> Tel.: +358504804026 > >> > >> > > > > > > > > -- > > Salvatore Iovene <[email protected]> > > Linux Software Engineer > > Intel Open Source Technology Center, Finland > > Tel.: +358504804026 > > _______________________________________________ > > Crosswalk-help mailing list > > [email protected] > > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help > _______________________________________________ > Crosswalk-help mailing list > [email protected] > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help > --------------------------------------------------------------------- > Intel Finland Oy > Registered Address: PL 281, 00181 Helsinki > Business Identity Code: 0357606 - 4 > Domiciled in Helsinki > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. > >
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
