Re: cross compiling for ARM running Android

2011-06-21 Thread Nahid Alam
OK, so finally it worked :) Just download Android source, compile it targeting the ARM architecture. Android has openssl in PATH_TO_ANDROID_BUILD/external/openssl put you code in the appropriate place, compile, push it to your android device and run No need for Code Sourcery Also, I don't think ND

Re: cross compiling for ARM running Android

2011-06-20 Thread Nahid Alam
On Mon, Jun 20, 2011 at 2:17 PM, Dave Thompson wrote: > > From: owner-openssl-us...@openssl.org On Behalf Of Nahid Alam > > Sent: Saturday, 18 June, 2011 19:00 > > > So I cross compiled OpenSSL following the link > > http://www.crosscompile.org/static/pages/OpenSSL.html > > That

RE: cross compiling for ARM running Android

2011-06-20 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Nahid Alam > Sent: Saturday, 18 June, 2011 19:00 > So I cross compiled OpenSSL following the link > http://www.crosscompile.org/static/pages/OpenSSL.html That uses the 'dist' config with minimal tool changes, which does sta

Re: cross compiling for ARM running Android

2011-06-18 Thread Nahid Alam
Hi, So I cross compiled OpenSSL following the link http://www.crosscompile.org/static/pages/OpenSSL.html And used the following command $ *arm-none-linux-gnueabi-gcc -Wall -I/PATH_TO_INCLUDE_HEADER -L/PATH_TO_CROSS_COMPILED_OpenSSL_LIB -lssl -lcrypto -o test test.c * But getting the errors: op

Re: cross compiling for ARM running Android

2011-06-16 Thread Mike Mohr
Please have a look at the NDK documentation. You need to extract the toolchain using a provided script which targets the appropriate API level. The codesourcery toolchain does not target the correct libc. On Jun 16, 2011 9:43 AM, "Nahid Alam" wrote: > Hi, > > I am using OpenSSL 0.9.8k to write a

Re: cross compiling for ARM running Android

2011-06-16 Thread Michael S. Zick
On Thu June 16 2011, Michael S. Zick wrote: > On Thu June 16 2011, Nahid Alam wrote: > > Hi, > > > > I am using OpenSSL 0.9.8k to write a simple AES encryption application that > > works fine in x86. It uses EVP library APIs for encryption/decryption > > purpose. > > > > Now I need to compile it

Re: cross compiling for ARM running Android

2011-06-16 Thread Michael S. Zick
On Thu June 16 2011, Nahid Alam wrote: > Hi, > > I am using OpenSSL 0.9.8k to write a simple AES encryption application that > works fine in x86. It uses EVP library APIs for encryption/decryption > purpose. > > Now I need to compile it for Tegra2 (ARM) which is running Android 2.2 > I am using C

cross compiling for ARM running Android

2011-06-16 Thread Nahid Alam
Hi, I am using OpenSSL 0.9.8k to write a simple AES encryption application that works fine in x86. It uses EVP library APIs for encryption/decryption purpose. Now I need to compile it for Tegra2 (ARM) which is running Android 2.2 I am using Code Sourcery to cross compile for ARM using $arm-none-

Re: Cross compiling for ARM

2007-09-18 Thread Jonathan Delizy
Thanks a lot. I will try this tomorrow. Marek Marcola wrote: Hello, I try to compile openssl for ARM9. I've succeed with openssl-0.9.7m since Compile contains a linux-elf-arm target but, in 0.9.8e, this target doesn't exist. I've tried to copy the linux-elf-arm line from in the newer version

Re: Cross compiling for ARM

2007-09-18 Thread Marek Marcola
Hello, > > I try to compile openssl for ARM9. I've succeed with openssl-0.9.7m > since Compile contains a linux-elf-arm target but, in 0.9.8e, this > target doesn't exist. I've tried to copy the linux-elf-arm line from in > the newer version of Configure but it failed to compile. > > Does anyo

Cross compiling for ARM

2007-09-18 Thread Jonathan Delizy
Hi everybody, I try to compile openssl for ARM9. I've succeed with openssl-0.9.7m since Compile contains a linux-elf-arm target but, in 0.9.8e, this target doesn't exist. I've tried to copy the linux-elf-arm line from in the newer version of Configure but it failed to compile. Does anyone kn