Development Environment:
Ubuntu 10.04
Arm-Linux-GCC version 4.4.1
Target Environment
Friendly arm mini6410
Linux-2.6.36
Procedure
1. download the latest OpenSSL on the official website and decompress it.
2. CD go to The openssl-1.0.0b directory
3. Run./confiugre Linux-elf-arm and set the environment to ARM Linux.
4. Modify the MAKEFILE file as follows:
Specify cc as arm-Linux-gcc
Specify libdl as the dependent Library
Specify AR and ranlib as arm-Linux-AR and arm-Linux-ranlib
Specify the installation directory
5. Execute make to complete compilation.
6. Su logs on as root and runs make install.
7. You can see that OpenSSL is compiled as a static library and placed in the directory of the specified installation.
Note:
Add the OpenSSL header file and library file declaration to the MAKEFILE file of the project. Pay attention to the following sequence of reference libraries:-lssl-lcrypto, if it is-lcrypto-lssl, a compilation error occurs.
Recommended Website:
Http://www.openssl.org/
Http://blog.chinaunix.net/u2/88438/showart_1901657.html