如何使用ndk8构建OpenSSL,以便进行Android版Windows上? [英] How to build Openssl for Android on Windows with ndk8?
问题描述
我尝试下载的OpenSSL的Android 。然后运行NDK的构建是ndk8c在这种情况下。
I tried downloading OpenSSL-Android. Then run ndk-build which is ndk8c in this case.
我得到的错误:
process_begin: CreateProcess(NULL, pwd, ...) failed.
d:/Development/android/android-ndk-r8d/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop.
当我申请一个固定的描述__gsml <一个href=\"http://stackoverflow.com/questions/10285242/openssl-using-androids-ndk-problems/10295653#10295653\">here
When I apply a fix to __gsml as described here
我得到的错误:
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /Android.mk
d:/Development/android/android-ndk-r8c/build/core/add-application.mk:165: *** Android NDK: Aborting... . Stop.
或者是有一个二进制我可以下载?我基本上只需要libcrypto.so。
Or is there a binary I can download? I basically just need libcrypto.so.
这是我使用的Android.mk:
This is the Android.mk I am using:
LOCAL_PATH := $(call my-dir)
subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
crypto \
ssl \
apps \
))
include $(subdirs)
推荐答案
1)作为为设计正确地指出__gsml误差由以下的AndroidManifest.xml固定
1.) as Bad Design pointed correctly out the __gsml error is fixed by the following AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.evotegra.aCoDriver"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14"
android:targetSdkVersion="17"
android:maxSdkVersion="17" />
</manifest>
2)错误:
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /Android.mk
时,由线引起
APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/Android.mk
在JNI / 应用 .mk。在Windows变量$ APP_PROJECT_PATH没有设置并因此它正在寻找在根目录下个Android.mk。
in jni/Application.mk . On Windows the variable $APP_PROJECT_PATH is not set and for that reason it is looking in the root directory for th Android.mk.
这可以通过更改文件JNI / 申请固定 .mk为以下内容:
This can be fixed by changing the file jni/Application.mk to the following:
LOCAL_PATH := $(call my-dir)
NDK_TOOLCHAIN_VERSION=4.4.3
APP_PROJECT_PATH := $(shell pwd)
APP_BUILD_SCRIPT := $(LOCAL_PATH)/../Android.mk
这篇关于如何使用ndk8构建OpenSSL,以便进行Android版Windows上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!