Giter Club home page Giter Club logo

openssl1.0.1g-android's Introduction

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.

openssl1.0.1g-android's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.