All Projects → aluvalasuman → openssl1.0.1g-android

aluvalasuman / openssl1.0.1g-android

Licence: other
OpenSSL1.0.1g for Android

Programming Languages

c
50402 projects - #5 most used programming language
perl
6916 projects
C++
36643 projects - #6 most used programming language
assembly
5116 projects
shell
77523 projects
eC
11 projects

Compiling OpenSSL for Android

No changes have been done for the OpenSSL source. Only android_configure_armeabi.sh, android_configure_armeabiv7.sh, android_configure_x86.sh files have been created.

Compiling OpenSSL for armeabi

1) Edit the `android_configure_armeabi.sh` with proper NDK location.
2) Execute the above script file as `source ./android_configure_armeabi.sh` or `. ./android_cofigure_armeabi.sh`.
3) Configure by exeucting the command `./Configure android shared --prefix=`pwd`/../libs/armeabi --openssldir=openssl`
   Note: DON’T give RELATIVE address in the Configure. Give ONLY absolute address
	 Better to have the libs inside openssl folder itself.
	 `./Configure android shared --prefix=`pwd`/android/libs/armeabi --openssldir=openssl`
4) Run `make clean && make`
5) Run `make install`
6) Libs will be created in the `prefix` mentioned during `Configure`

Compiling OpenSSL for armeabi-v7

1) Edit the `android_configure_armeabiv7.sh` with proper NDK location.
2) Execute the above script file as `source ./android_configure_armeabiv7.sh` or `. ./android_cofigure_armeabiv7.sh`.
3) Configure by executing the command `./Configure android-armv7 shared --prefix=`pwd`/../libs/armeabi-v7a --openssldir=openssl`
   Note: DON’T give RELATIVE address in the Configure. Give ONLY absolute address. (Highlighted in RED above)
	 Better to have the libs inside openssl folder itself.
	 `./Configure android-armv7 shared --prefix=`pwd`/android/libs/armeabi-v7a --openssldir=openssl`
	Rune “make clean”
4) Run `make clean && make`
5) Run `make install`
6) Libs will be created in the `prefix` mentioned during `Configure`

Compiling OpenSSL for x86

1) Edit the `android_configure_x86.sh` with proper NDK location.
2) Execute the above script file as `source ./android_configure_x86.sh` or `. ./android_cofigure_x86.sh`
3) Configure by executing the command `./Configure android-x86 shared --prefix=`pwd`/../libs/x86  --openssldir=openssl`.
   NOTE: DON’T give RELATIVE address in the Configure. Give ONLY absolute address. (Highlighted in RED above)
	 Better to have the libs inside openssl folder itself.
o	 `./Configure android-x86 shared --prefix=`pwd`/android/libs/x86  --openssldir=openssl`
4) Run `make clean && make`
5) Run `make install`
6) Libs will be created in the `prefix` mentioned during `Configure`

Errors while compiling the OpenSSL for Android

1) Error1
    make[2]: Entering directory `/home/test/openssl-1.0.1g/apps'
    make[2]: Leaving directory `/home/test/openssl-1.0.1g/apps'
    make[2]: Entering directory `/home/test/openssl-1.0.1g'
    make[2]: *** No rule to make target `certs', needed by `rehash.time'.  Stop.
    make[2]: Leaving directory `/home/test/openssl-1.0.1g'
    make[1]: *** [openssl] Error 2
    make[1]: Leaving directory `/home/test/openssl-1.0.1g/apps'
    make: *** [build_apps] Error 1

   Solution:
   http://stackoverflow.com/questions/23384636/getting-error-no-rule-to-make-target-certs-needed-by-rehash-time-stop
   Temporary Solution: Do make again, without make clean.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].