Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7401923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:36:35+00:00 2026-05-29T04:36:35+00:00

I need to build the latest OpenSSL (1.0.0g) for an Android application. I am

  • 0

I need to build the latest OpenSSL (1.0.0g) for an Android application. I am trying to follow the example given by https://github.com/fries/android-external-openssl, but I just can’t get it built.

I am running Windows 7 Professional (64-bit) with a complete and recent Cygwin. I have installed the Android SDK and NDK, and I can successfully build and run the NDK’s hello-jni sample application.

I created a new sample NDK app called hello-openssl. In its jni directory, I created an openssl directory. There, I unzipped https://github.com/fries/android-external-openssl/zipball/master, which gave me this tree structure under c:\android\android-ndk\samples\hello-openssl:

jni
+- openssl
   +- apps
   +- crypto
   +- include
      +- openssl
   +- ssl

I then modified the Android.mk file in the jni directory in an attempt to include the OpenSSL files:

subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
    openssl \
))

include $(subdirs)

Now when I execute ndk-build, it compiles several .c files, but then quickly fails:

Compile thumb  : crypto <= cryptlib.c
In file included from jni/openssl/crypto/cryptlib.c:117:
jni/openssl/crypto/cryptlib.h:65:18: error: e_os.h: No such file or directory
jni/openssl/crypto/cryptlib.h:72:28: error: openssl/crypto.h: No such file or directory

I found http://osdir.com/ml/android-ndk/2010-07/msg00424.html, which tells me to “add
jni and jni/include to the above LOCAL_C_INCLUDES” in crypto/Android.mk, but I can’t figure out the syntax I should use to achieve this.

I also can’t figure out of I have the correct directory structure.

I sincerely appreciate any help that can be offered.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:36:37+00:00Added an answer on May 29, 2026 at 4:36 am

    I solved this problem by abandoning https://github.com/fries/android-external-openssl and instead using https://github.com/guardianproject/openssl-android.

    It is based on a more recent OpenSSL (1.0.0a), and it builds in the NDK without any modifications.

    Note that in order to use these libraries in an Android app, you must rename them. If you simply include the resulting libssl.so and libcrypto.so in your app, then call System.LoadLibrary (“crypto”) and System.LoadLibrary (“ssl”), you will get the OpenSSL libraries included in the Android system, not your custom libraries.

    To do this, just do a full-word search and replace (“libssl” -> “libsslx”, and “libcrypto” -> “libcryptox”) in each Android.mk (i.e, in /crypto, /ssl, and /apps).

    Then in your Android app, call SystemLoadLibrary (“cryptox”) and System.LoadLibrary (“sslx”)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to build a simple, single user database application for Windows. Main requirements
We need to build an administration portal website to support our client/server application. Since
I need the latest Subsonic build or build it by my own. Subsonic project
I have build an C# Winforms application which will need regular updates and patches
I need to know if the Zxing RIM build works on the latest Blackberries
I've built boost from source because I need the latest version to build pyopencv
I need to build a managed DLL, targeted for x64, and expose it via
I need to build something that starts serving a H.264 encoded video to a
I need to build a simple HTTP server in C. Any guidance? Links? Samples?
I need to build a prototype for an intranet website, and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.