paddybyers/anode — Issue #1: build failed on mac osx 10.7
Author: cnlojure
Created: 2011-10-19 17:20:59+00:00
State: open

OS : mac osx 10.7
xcode: 4.2
openssl: 1.0.0e

I follow the build instructions in wiki
https://github.com/paddybyers/anode/wiki/Build

But it could not work for me.First, If i set NDK_MODULE_PATH as you say

export NDK_MODULE_PATH=/anode:/anode/anode

Then ndk-build failed with message

Android NDK: /Users/apple/programming/js/node-js/anode/anode/libnode/jni/Android.mk: Cannot find module with tag 'deps/c-ares' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
/Users/apple/programming/js/node-js/anode/anode/libnode/jni/Android.mk:42: *** Android NDK: Aborting. . Stop.

Then ,i changed NDK_MODULE_PATH to

export NDK_MODULE_PATH=/anode:/anode/anode:/anode/node

Then ndk-build failed again,but with message

Compile++ thumb : node <= node.cc
In file included from /Users/apple/programming/js/node-js/anode//node/src/node.cc:76:
/Users/apple/programming/js/node-js/anode//node/src/node_crypto.h:29:25: error: openssl/ssl.h: No such file or directory
/Users/apple/programming/js/node-js/anode//node/src/node_crypto.h:30:25: error: openssl/err.h: No such file or directory
/Users/apple/programming/js/node-js/anode//node/src/node_crypto.h:31:25: error: openssl/evp.h: No such file or directory
/Users/apple/programming/js/node-js/anode//node/src/node_crypto.h:32:25: error: openssl/pem.h: No such file or directory
/Users/apple/programming/js/node-js/anode//node/src/node_crypto.h:33:26: error: openssl/x509.h: No such file or directory
/Users/apple/programming/js/node-js/anode//node/src/node_crypto.h:34:26: error: openssl/hmac.h: No such file or directory

But i have installed openssl on my mac machine,and openssl/ssl.h,openssl/err.h etc these files are already in /usr/include/openssl,why ndk-build can not find them?

Can you help me?Thanks a lot.