Hello Developers,
 I am compiling libupnp with the android for that I placed libupnp in
the external folder of the Android source and placed Android.mk files
in the respective directories but I ended up with some compilation
errors.

The question is I have to modify some of the files in libupnp to
integrate with android or to modify any files in Android source or
above steps will be sufficient for doing the same.

Below are the compilation errors when I am following the above steps.

external/libupnp/upnp/src/../../threadutil/inc/ithread.h:153: warning:
type defaults to 'int' in declaration of 'pthread_rwlockattr_t'
external/libupnp/upnp/src/../../threadutil/inc/ithread.h:153: warning:
'ithread_rwlockattr_t' attribute directive ignored
external/libupnp/upnp/src/../../threadutil/inc/ithread.h:164: warning:
type defaults to 'int' in declaration of 'pthread_rwlock_t'
external/libupnp/upnp/src/../../threadutil/inc/ithread.h:164: warning:
'ithread_rwlock_t' attribute directive ignored
In file included from external/libupnp/upnp/src/ssdp/ssdp_device.c:42:
external/libupnp/upnp/src/inc/upnpapi.h:97: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'GlobalHndRWLock'
external/libupnp/upnp/src/ssdp/ssdp_device.c: In function
'ssdp_handle_device_request':
external/libupnp/upnp/src/ssdp/ssdp_device.c:143: warning: implicit
declaration of function 'pthread_rwlock_wrlock'
external/libupnp/upnp/src/ssdp/ssdp_device.c:143: error:
'GlobalHndRWLock' undeclared (first use in this function)
external/libupnp/upnp/src/ssdp/ssdp_device.c:143: error: (Each
undeclared identifier is reported only once
external/libupnp/upnp/src/ssdp/ssdp_device.c:143: error: for each
function it appears in.)
external/libupnp/upnp/src/ssdp/ssdp_device.c:146: warning: implicit
declaration of function 'pthread_rwlock_unlock'
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
libupnp_intermediates/ssdp/ssdp_device.o] Error 1



Thanks in advance
Regards
Aravind

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to