It looks like pthread_condattr_setclock was only added with android-21, so it it will fail on older android?s.
On 5/21/15, 4:39 PM, "Keane, Erich" <erich.keane at intel.com> wrote: >I believe the Android stack does some conversions through integer on the >way that would hide this a bit. Additionally, I'm not sure how many of >the samples are actually building on the build server, but Tim Kourt >would be the one to answer that. > > > >On Thu, 2015-05-21 at 20:36 +0000, Hudson, Douglas wrote: >> It is my understanding that the build server does a build for Android, >>so I would have thought that if the Android samples were missed then the >>build server should have caught it when the changeset went to Gerrit. >>Am I off track? >> >> --Doug >> >> -----Original Message----- >> From: iotivity-dev-bounces at lists.iotivity.org >>[mailto:iotivity-dev-bounces at lists.iotivity.org] On Behalf Of Keane, >>Erich >> Sent: Thursday, May 21, 2015 1:32 PM >> To: ddioriomendes at gmail.com >> Cc: iotivity-dev at lists.iotivity.org >> Subject: Re: [dev] UsatisfiedLinkError on android >> >> So, OcConnectivityType was changed to no longer contain WIFI or >>Ethernet. It is now supposed to be IPV4 or IPV6, some of the samples >>were likely missed when we made that switchover. In the meantime, feel >>free to either fix locally (or submit a patch?) by switching the .WIFI >>or .Ethernets that you find over to .IPV4. >> >> I'm not sure about the boost stuff, it SHOULD be downloading it every >>time. The one thing that I found that can cause problems is the 'dep' >> directory in the iotivity root. I'd suggest deleting the entire >>directory, as well as everything in extlibs/boost (other than the >>Sconscript file!) and trying again. >> >> As far as the exception below, pthread_condattr_setclock seems to be >>missing. I believe we require NDK version r10d, if you have an earlier >>version of the NDK, android might not build. >> >> -Erich >> >> On Thu, 2015-05-21 at 14:25 -0300, Davi Di?rio Mendes wrote: >> > Hi all, >> > >> > >> > I am wonrking on master branch, commit >> > 887d789ee50b0d2ca5e520d872aeb507ddbd0f31. >> > >> > >> > I builded iotivity for android following wiki guide, now I get this >> > error when run simpleserver or another else server example. In the >> > clients gradle cannot find OcConnectivityType.WIFI. >> > >> > >> > Does someone have a lead? Is not the master branch ready to work? >> > >> > >> > I tried to build in android-api branch but the build script does not >> > download boost, then stop compiling because can not find >> > boost/lexical_cast.hpp. If I download boost by hand and unpack it in >> > extlibs/boost, it still not finding dependencies. >> > >> > >> > I know you are working at 0.91 release, sorry bothering with minor >> > things. But I have a lecture scheduled to Friday, next week, and I do >> > not want to do a checkout back to what I used. I would like to show >> > what is actually done. >> > >> > >> > Thanks. >> > >> > >> > 05-21 14:05:58.337 >> > 19920-19920/org.iotivity.base.examples.simpleserver >> > E/AndroidRuntime? FATAL EXCEPTION: main >> > Process: org.iotivity.base.examples.simpleserver, PID: 19920 >> > java.lang.UnsatisfiedLinkError: dlopen failed: could not load >> > library "liboctbstack.so" needed by "liboc.so"; caused by could not >> > load library "libconnectivity_abstraction.so" needed by >> > "liboctbstack.so"; caused by cannot locate symbol >> > "pthread_condattr_setclock" referenced by >> > "libconnectivity_abstraction.so"... >> > at java.lang.Runtime.loadLibrary(Runtime.java:365) >> > at java.lang.System.loadLibrary(System.java:526) >> > at >> > org.iotivity.base.OcRepresentation.<clinit>(OcRepresentation.java:35) >> > at >> > >>org.iotivity.base.examples.simpleserver.SimpleServer.onCreate(SimpleServe >>r.java:72) >> > at android.app.Activity.performCreate(Activity.java:5458) >> > at >> > >>android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:109 >>3) >> > at >> > >>android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376 >>) >> > at >> > >>android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470) >> > at android.app.ActivityThread.access >> > $900(ActivityThread.java:174) >> > at android.app.ActivityThread >> > $H.handleMessage(ActivityThread.java:1307) >> > at android.os.Handler.dispatchMessage(Handler.java:102) >> > at android.os.Looper.loop(Looper.java:146) >> > at >> > android.app.ActivityThread.main(ActivityThread.java:5593) >> > at java.lang.reflect.Method.invokeNative(Native Method) >> > at java.lang.reflect.Method.invoke(Method.java:515) >> > at com.android.internal.os.ZygoteInit >> > $MethodAndArgsCaller.run(ZygoteInit.java:1283) >> > at >> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099) >> > at dalvik.system.NativeStart.main(Native Method) >> > >> > >> > >> > >> > -- >> > Davi Di?rio Mendes >> > Eng. de Computa??o - Turma de 2011 >> > Universidade de S?o Paulo - EESC/ICMC >> > >> > _______________________________________________ >> > iotivity-dev mailing list >> > iotivity-dev at lists.iotivity.org >> > https://lists.iotivity.org/mailman/listinfo/iotivity-dev >> >> _______________________________________________ >> iotivity-dev mailing list >> iotivity-dev at lists.iotivity.org >> https://lists.iotivity.org/mailman/listinfo/iotivity-dev > >_______________________________________________ >iotivity-dev mailing list >iotivity-dev at lists.iotivity.org >https://lists.iotivity.org/mailman/listinfo/iotivity-dev -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5859 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150521/481ea106/attachment.p7s>
