Android-ics-openvpn:如何在Windows机器上进行编译
作者:互联网
我在这里:ics-openvpn上获得了最新的源代码,我想在Windows环境下对其进行编译.如在README.txt中所说:
Do cd main;./misc/build-native.(sh|bat) in the root directory of the
project. After that build the project using “gradle build” (Or use
Android Studio). The project is converted to gradle and building with
Eclipse is no longer supported.
但是文件build-native.bat的内容是:
@echo on
echo Currently broken, feel free to fix and send me a patch, see .sh file
exit 1
call ndk-build APP_API=all -j 8
cd libs
mkdir ..\assets
mkdir ..\build\
for /D %%f in (*) do (
copy %%f\minivpn ..\assets\minivpn.%%f
del %%f\libcrypto.so
del %%f\libssl.so
mkdir ..\build\native-libs\%%f\
copy %%f\*.so ..\build\native-libs\%%f\
)
cd ..
这意味着作者注意到该bat文件包含错误,因此无法构建.我尝试删除前三行并再次运行,但遇到以下错误:
main//jni/Android.mk:11: lzo/Android.mk: no such file or directory
main/jni/android.mk : 12: snappy/Android.mk : no such file or
directory …
因此,我的问题是:我们可以在Windows上构建该库(因为作者已通知此构建文件错误),如果可以,如何?
谢谢 :)
解决方法:
就像文本说的那样.坏了,因为我不在Windows上开发.您可以查看build-native.sh修复Windows的路径等.编译问题并不难,但必须花10分钟时间修复它.
标签:android-ndk,openvpn,android,batch-file 来源: https://codeday.me/bug/20191029/1960988.html