Question

I get the latest source code on here :ics-openvpn and I want to compile it under windows environment. As in README.txt said :

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.

But the content of file build-native.bat is:

@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 ..

it means that author notices that this bat file contains error, that cannot be build by this. I try to remove first three lines and run again, i meet these errors:

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 ...

so, my question is : can we build this library on windows (because author has notified that this build file is error), and if can, how ?

Thanks :)

Était-ce utile?

La solution

It is just like the text says. It is broken because I don't develop on Windows. You can look at the build-native.sh fix the paths etc for Windows. The build problems are nothing difficult but someone has to take the 10 minutes and fix it.

Autres conseils

I got all sorts of errors using Cygwin to build this.

You may have more luck using an actual Linux box or something like VirtualBox with an Ubuntu image.

This worked for me. You will need the Linux NDK (installation instructions here) and you'll need to install make with sudo apt-get install make.

Then run cd main;./misc/build-native.sh from the project root.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top