android


ics-openvpn : how to compile on windows machine


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

Related Links

MPAndroidChart: BubbleEntry on same dataset and xAxis cannot be selected
Android: Storing text file in android device's internal memory not in external memory card?
json error in logcat file in aysnc task
Android Studio 2.2 cannot Run a homescreen project
App crash during edittext on click in android
Programmatically launch a SearchView (Android)
ServiceConnection onServiceConnected is not calling
Android OS shuts down the Wakelock + AlarmManager after a few minutes
ionic.leave do not fire
Adding Android Google PlusOneButton to layout causes compilation error
Json parsing in skyscanner pricing api
Android Studio Crashed and now gradle files are missing info
Im trying to make a acsess code for a app
Fragment data is lost when multiple time startActivityForResult is called
Fragment not attached to Activity in AlertDialog
android camera2 api MediaRecorder stop() error

Categories

HOME
spark-streaming
string
rdbms
swt
obfuscation
devise
hpc
iis-6
gluon-mobile
odoo-8
barcode
elasticsearch-5
gource
altera
red5
forgot-password
git-extensions
pyramid
bourbon
inno-download-plugin
ckfinder
jquery-multiselect
mat
nstimer
mql
dotspatial
xbox
dst
laravel-eloquent
android-maps-extensions
latitude-longitude
apic
alphabetical
openproject
dm-script
typesafe-config
jvmti
xv6
sharp-snmp
claims
tcc
android-exoplayer
photos
uiimage
dapper-simplecrud
opencmis
openrasta
clarifai
serde
dbcontext
tf
payara-micro
context-switch
spring-data-couchbase
usart
macaulay2
jquery-jscrollpane
eigenvector
lz77
nio2
cycle2
jbase
grgit
oracle-spatial
poppler
cgi-bin
iced-coffeescript
telepat
mass-assignment
dbaccess
uncaught-typeerror
ghcjs
cocos3d
trdion2011
ora-00904
rcaller
vsx
clickbank
qscrollarea
git-repo
accesscontrolexception
windows-embedded-standard
light
inputmismatchexception
model-driven-development
ice-cube
oocss
jquery-1.9
fb.ui
android-sdk-2.3
qi4j
fragmenttransaction
adobe-media-server
objectquery
fusefabric
apache-whirr
procedures
dataform
appledoc
diagrams
uideviceorientation
object-database
lobo-cobra
entitykey

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App