Hi Hauke and thanks.

That's not working for me :-(

Here's my scons line:

scons LOGGING=yes RELEASE=no TARGET_OS=android TARGET_ARCH=armeabi-v7a
VERBOSE=yes TARGET_TRANSPORT=IP

Here's what's built:

-rwxrwxr-x 1 siovene siovene  400K Sep 22 11:21
out/android/armeabi-v7a/debug/libBMISensor.so
-rwxrwxr-x 1 siovene siovene  447K Sep 22 11:22
out/android/armeabi-v7a/debug/libconnectivity_abstraction.so
-rwxrwxr-x 1 siovene siovene  410K Sep 22 11:21
out/android/armeabi-v7a/debug/libDiscomfortIndexSensor.so
-rwxr-xr-x 1 siovene siovene  5.0M Oct  7  2014
out/android/armeabi-v7a/debug/libgnustl_shared.so
-rwxrwxr-x 1 siovene siovene   18K Sep 22 11:22
out/android/armeabi-v7a/debug/liboc_logger_core.so
-rwxrwxr-x 1 siovene siovene   73K Sep 22 11:23
out/android/armeabi-v7a/debug/liboc_logger.so
-rwxrwxr-x 1 siovene siovene   18M Sep 22 11:24
out/android/armeabi-v7a/debug/liboc.so
-rwxrwxr-x 1 siovene siovene  644K Sep 22 11:22
out/android/armeabi-v7a/debug/liboctbstack.so
-rwxrwxr-x 1 siovene siovene  216K Sep 22 11:25
out/android/armeabi-v7a/debug/libPluginManager.so
-rwxrwxr-x 1 siovene siovene 1012K Sep 22 11:24
out/android/armeabi-v7a/debug/libpmimpl.so
-rwxrwxr-x 1 siovene siovene   64K Sep 22 11:22
out/android/armeabi-v7a/debug/libRMInterface.so
-rwxrwxr-x 1 siovene siovene   13M Sep 22 11:26
out/android/armeabi-v7a/debug/libSSMCore.so
-rwxrwxr-x 1 siovene siovene  7.8M Sep 22 11:28
out/android/armeabi-v7a/debug/libTGMSDKLibrary.so

Points of interest:

  * I do not have libca-interface.so and libocstack-jni.so.
  * If I omit libconnectivity_abstraction.so, dlopening
liboctbstack.so will fail due to the missing dependency, but if I omit
any other libraries, I get no complaints from dlopen, and I can indeed
perform calls to functions in liboctbstack.so.

Any more suggestions?

Thanks!


On Mon, Sep 21, 2015 at 3:04 PM,  <Hauke.Mehrtens at lantiq.com> wrote:
> 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:iotivity-dev-bounces 
> at lists.iotivity.org] 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



-- 
Salvatore Iovene

Personal website: http://iovene.com/
Founder of AstroBin: http://astrobin.com/

Reply via email to