포럼: Open Discussion (Thread #34992)

compile error of dm-client-android V0.8.1 (2014-01-28 16:28 by jinyouww #71451)

I’m trying to compile the client for Android. There are two modules failed to compile: libTestClientAdapter.so libJNIAdapterTestClientAdapter.so

In addition, it’s ok to build them to STATIC libraries (*.a). But failed to build them to SHARED libraries (*.so).

dm-client-android/src/ClientAdapter/Android.mk
##### libTestClientAdapter #########################
… …
LOCAL_MODULE := TestClientAdapter
include $(BUILD_SHARED_LIBRARY) ---- fail
#include $(BUILD_STATIC_LIBRARY) ---- If change to STATIC library, OK.

The log of link error is:
error: undefined reference to 'typeinfo for Funambol::FThread'
(FThread is a class)

Anyone can provide some help? Thanks a lot!

Re: compile error of dm-client-android V0.8.1 (2014-01-28 19:31 by okamoto3 #71455)

[メッセージ #71451 への返信]
Hi jinyouww.
Thank you for download us.

Here are some basic questions.
1. Have you see "build/android/okamoto/" holder?
There are some tips.
2.Please show your enviroments?
SDK,NDK, OS etc.

Okamoto
> I’m trying to compile the client for Android. There are two modules failed to compile: libTestClientAdapter.so libJNIAdapterTestClientAdapter.so
>
> In addition, it’s ok to build them to STATIC libraries (*.a). But failed to build them to SHARED libraries (*.so).
>
> dm-client-android/src/ClientAdapter/Android.mk
> ##### libTestClientAdapter #########################
> … …
> LOCAL_MODULE := TestClientAdapter
> include $(BUILD_SHARED_LIBRARY) ---- fail
> #include $(BUILD_STATIC_LIBRARY) ---- If change to STATIC library, OK.
>
> The log of link error is:
> error: undefined reference to 'typeinfo for Funambol::FThread'
> (FThread is a class)
>
> Anyone can provide some help? Thanks a lot!

Reply to #71451

Re: compile error of dm-client-android V0.8.1 (2014-02-10 17:34 by jinyouww #71855)

Hi Okamoto,

Sorry for late reply because of a long holiday!

I'm using latest ndk and sdk (ndk version is android-ndk-r9c), on Ubuntu 1204.

I noticed the "build/android/okamoto/" folder and had modified to adapted them to my environment. My modifications are mostly paths. Such as include path and output path.

Thanks!

[Reply To Message #71455]
> [メッセージ #71451 への返信]
> Hi jinyouww.
> Thank you for download us.
>
> Here are some basic questions.
> 1. Have you see "build/android/okamoto/" holder?
> There are some tips.
> 2.Please show your enviroments?
> SDK,NDK, OS etc.
>
> Okamoto
Reply to #71455

Re: compile error of dm-client-android V0.8.1 (2014-02-11 22:51 by jinyouww #71869)

Hi Okamoto,

I have built it successfully.
One more question, how to use it? Is there any guide to connect it with Funambol DM server?
Thanks!

Jinyou
Reply to #71455

Re: compile error of dm-client-android V0.8.1 (2014-02-11 23:20 by okamoto3 #71870)

Congratuation.

By the way, could you tell me your plan?
Reply to #71869

Re: compile error of dm-client-android V0.8.1 (2014-02-12 10:55 by jinyouww #71872)

For study and evaluation, study the session communication. I have set up the Funambol DM server 3.5 on Ubuntu.
Is it feasible to run the client APK on android emulator and communicate with DM server on Ubuntu?
Thanks!
Reply to #71870

Re: compile error of dm-client-android V0.8.1 (2014-02-13 08:07 by okamoto3 #71877)

> For study and evaluation, study the session communication. I have set up the Funambol DM server 3.5 on Ubuntu.
> Is it feasible to run the client APK on android emulator and communicate with DM server on Ubuntu?
Maybe OK for DM 3.5 on Ubuntu
> Thanks!
Reply to #71872

Re: compile error of dm-client-android V0.8.1 (2014-02-13 08:07 by okamoto3 #71878)

> For study and evaluation, study the session communication. I have set up the Funambol DM server 3.5 on Ubuntu.
> Is it feasible to run the client APK on android emulator and communicate with DM server on Ubuntu?
Maybe OK for DM 3.5 on Ubuntu
> Thanks!
Reply to #71872