Hi,
 I am integrating libupnp to the android source.I done the below steps
for this.
 I placed libupnp source in the external folder of android source
directory and created Android.mk files in the respective directories
and giving make command at the top.I ended up wtih few compilation
errors in libupnp.

 The question is I have to add some more files to the libupnp
directory or modify some where in the android source code before
compiling for android or the above steps are sufficient for doing the
same.

Below are the compilation errors.

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 Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to