Note that there are some explanatory texts on larger screens.

plurals
  1. POBuild Android-openssl library for platform 2.1
    primarykey
    data
    text
    <p>I am using open-ssl source given at <a href="https://github.com/eighthave/openssl-android" rel="noreferrer">https://github.com/eighthave/openssl-android</a> to build a library which can be used in android project.</p> <p>As per instructions given at README.txt, I am able to compile it for the the Android platform version 2.2 (level -8)</p> <p>But my app requires it to be 2.1 (level -7) compatible.</p> <p>I tried following options with the default.properties file ( <a href="https://github.com/eighthave/openssl-android/blob/master/default.properties" rel="noreferrer">https://github.com/eighthave/openssl-android/blob/master/default.properties</a> )</p> <p>1) set target=android-7</p> <p>2) set target=android-5</p> <p>But when I compile it using command ndk-build, it gives following error </p> <pre><code> Compile thumb : crypto &lt;= dsa_vrf.c Compile thumb : crypto &lt;= dso_dl.c Compile thumb : crypto &lt;= dso_dlfcn.c /Crypto/openssl-android/crypto/dso/dso_dlfcn.c: In function 'dlfcn_pathbyaddr': /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: 'Dl_info' undeclared (first use in this function) /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: (Each undeclared identifier is reported only once /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: for each function it appears in.) /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: expected ';' before 'dli' /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:455: error: 'dli' undeclared (first use in this function) make: *** [obj/local/armeabi/objs/crypto/dso/dso_dlfcn.o] Error 1 </code></pre> <p>As per error message- Dl_info is not defined. but if we go to file dso_dlfcn.c , the definition for the structure is already provided. (<a href="https://github.com/eighthave/openssl-android/blob/master/crypto/dso/dso_dlfcn.c" rel="noreferrer">https://github.com/eighthave/openssl-android/blob/master/crypto/dso/dso_dlfcn.c</a>) </p> <p>And this code compiled for target=android-8 in default properties file, but not for android-7 or android-5.</p> <p>Request you to help me to resolve this error. and let me know what all changes needs to be done in order to compile it for android 2.1 platform.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload