Results from Google
Http://stackoverflow.com/questions/15623609/including-curl-into-the-android-aosp
......................................................................................................................... .........................................................................
You ' re probably getting this error because of some bad includes. One of the commonest reasons this is Happenning was because you be compiling with cURL
your host includes.
Check that your makefiles does not contain hard-coded references to /usr/include or any other include PA Ths. This was apparently a common error when people was trying to cross-compile on x86 for ARM. Your compiler is confused because he's trying to parse assembly network instructions such as rorw
the ("Rotate word righ T ") x86 instruction as the ror
(" Rotate Right ") ARM instruction.
Some C functions such htons
as, which provides network byte order translation (ensuring that there is no endianness issues For example), is implemented as preprocessor macros that contain inline assembly. and an ARM compiler cannot understand x86 instructions, which is what you ' re getting this error. These kind of network translation functions is heavily used cURL
in, so the odds is good that this might be your proble M.
Here's a http://thesoftwarerogue.blogspot.fr/2010/05/porting-of-libcurl-to-android-os-using.html that should help yo U Port CURL on Android. The guy does isn't compile with cURL
Android but exports CURL ' s functions through JNI
.
......................................................................................................................... .............................................................................
Error:invalid ' ASM ': invalid operand for code ' W '