Hi Salvatore,

I am using this to build IoTivity 0.9.2 and I get error logging:
scons TARGET_OS=android TARGET_ARCH=armeabi-v7a TARGET_TRANSPORT=IP LOGGING=yes 
SECURED=1

I just tested this when starting the App from Android Studio on a real phone.

Without this patch https://gerrit.iotivity.org/gerrit/#/c/2565/ you need at 
least Android 5.0.

I have the following libs in my android build: libca-interface.so  
libconnectivity_abstraction.so  libgnustl_shared.so  liboc_logger.so  liboc.so  
libocstack-jni.so  liboctbstack.so

Hauke

-----Original Message-----
From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Salvatore Iovene
Sent: Samstag, 19. September 2015 08:35
To: iotivity-dev at lists.iotivity.org
Subject: [dev] Getting OIC_LOG to work on Android when using the csdk

Hi,
I'm using the Iotivity C stack by linking it directly in my fork of the 
Crosswalk Project. So I end up placing liboctbstack.so and 
libconnectivity_abstraction.so into my APK's lib/${ARH}/ directory, and things 
seem to work fine.

However, for debugging purposes, I'm trying to display the OIC_LOG output, but 
"adb logcat" doesn't  show it.

I have built Iotivity with LOGGING=true and I made sure that -DTB_LOG was in 
the flags during the build.

Does anyone have any suggestions about how to look at the logs?

TIA,
  Salvatore.

--
Salvatore Iovene

Personal website: http://iovene.com/
Founder of AstroBin: http://astrobin.com/ 
_______________________________________________
iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to