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(SimpleServer.java:72)
>             at android.app.Activity.performCreate(Activity.java:5458)
>             at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
>             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

Reply via email to