Build produces errors
When executing ndk-build in the project errors appear:
In file included from /home/nk-yaniv/1/jni/crypto/cryptlib.c:117: /home/nk-yaniv/1/jni/crypto/cryptlib.h:65:18: error: e_os.h: No such file or directory /home/nk-yaniv/1/jni/crypto/cryptlib.h:72:28: error: openssl/crypto.h: No such file or directory /home/nk-yaniv/1/jni/crypto/cryptlib.h:73:29: error: openssl/buffer.h: No such file or directory ... ...
changing the path in the files only produces more error, how can this be avoided? TIA
Try this:
cd jni/crypto
ln -s ../e_os.h .
ln -s ../include/openssl .
cd ../apps
ln -s ../e_os.h .
ln -s ../include/openssl .
cd ../ssl
ln -s ../e_os.h .
ln -s ../include/openssl .
ln -s ../crypto/o_dir.h .
openssl should be build along with the android source. This source was not setup to compile using the ndk.
try http://osdir.com/ml/android-ndk/2010-07/msg00424.html