Thinking that ldd may not work on java apps although! and I guess the app
already works on the development environment.. so it must be a missing
symbol in the target gnulib..

good luck
antonio

On Fri, Jun 12, 2015 at 5:12 PM, Antonio Aloisio <[email protected]> wrote:

> Ciao Salvatore,
> If you have used ldd to double check that you have loaded all the libs you
> need... and no other dependencies are missing... than
> I would guess that the version of gnulib on the target device doesn't have
> that symbol at all.
>
> The official doc says that that function may be missing on some platforms..
>
> https://www.gnu.org/software/gnulib/manual/html_node/pthread_005fcondattr_005fsetclock.html
>
> Can you get rid of that function in your code? that would be the solution
> I guess.
> You may bundle and load your own version of the gnulib.. that a bad hack
> although.It may lead you to other nasty problems!! :P
> Good luck! :D
>
> Cheers,
> Antonio
>
>
>
> On Fri, Jun 12, 2015 at 12:16 PM, Iovene, Salvatore <
> [email protected]> wrote:
>
>> I'm testing on a phone with 4.4.2.
>>
>> After using System.loadLibrary to load the libraries in the right
>> order, finally the error message is:
>>
>>
>> dlopen("/data/app-lib/org.crosswalkproject.crosswalk_oic_demo-2/libconnectivity_abstraction.so")
>> failed: dlopen failed: cannot locate symbol
>> "pthread_condattr_setclock" referenced by
>> "libconnectivity_abstraction.so"
>>
>>
>> Any more ideas?
>>
>>
>> On Wed, Jun 10, 2015 at 5:23 PM, Huo, Halton <[email protected]>
>> wrote:
>> > What Android version are you working on? Please check the comment at
>> https://github.com/crosswalk-project/crosswalk/blob/master/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkViewDelegate.java#L95
>> >
>> > Thanks,
>> > Halton.
>> >> -----Original Message-----
>> >> From: Iovene, Salvatore [mailto:[email protected]]
>> >> Sent: Wednesday, June 10, 2015 7:49 PM
>> >> To: crosswalk-help
>> >> Cc: Huo, Halton; Balestrieri, Francesco; Poussa, Sakari
>> >> Subject: Re: Crosswalk Android extensions and dependencies with native
>> >> libraries
>> >>
>> >> 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
>>
>>
>>
>> --
>> 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

Reply via email to