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

How to create simple self LVL like library
java.lang.NoClassDefFoundError, on one of my own class
Android XML Layout with buttons
Android AsyncTask ExceptionInIntilizationError
Dimension of my Scaled ImageView
What happens if a C2DM or GCM Receiver's onReceive function fails during a Registration Intent?
Can the fragments be used in android 2.3 project ?
Drawing to canvas onDraw works, drawing onTouchEvent doesn't
Android ActionBarSherlock Custom View
overriding Adapter.getView
Downloading Android App from PC to device
Canvas seems to draw on 2 different views
Eclipse Android Emulator - Keyboard not working
How to hide/encrypt/confuse direct URLs used in my Android application? [duplicate]
Executing a Code after activity is displayed
Android NFC Android Application Records Error

Categories

HOME
phantom-dsl
eclipse
telegram
jmeter
amp-html
phpmyadmin
character-encoding
youtube-data-api-v3
javacc
simulink
cq5
babeljs
x264
character
spin
pega
alamofire
mxgraph
endpoint
enterprise-architect
flash-player
keytool
charles
sar
poedit
ios10.2
moses
fragment-backstack
entity-relationship-model
angularjs-material
fossil
modalviewcontroller
pdw-file-browser
searchkit
sim-toolkit
node-mssql
ods
visa
plaintext
apache-spark-dataset
facebook-social-plugins
cnc
netbeans6.8
google-cse
zenhub
carrot2
amq
er-diagram
flac
trigger.io
django-1.10
bootstrap-tags-input
renaming
gets
chromium-os
pure-css
reporting-services-2012
spring-cloud-feign
cfchart
gcloud-ruby
createprocess
fink
thread-sleep
spring-retry
atan2
vhosts
ons-api
eoferror
skspritenode
jsvc
botan
omnifaces
procedural-programming
document-repository
contrast
cancellation
xml-dsig
wxformbuilder
websphere-esb
gtm-oauth2
sphinxql
windows-phone-8-sdk
cocoalibspotify-2.0
cffile
process-explorer
sentestingkit
jquery-blockui
iboutlet
adobe-media-server
relative
strsep
massive
cuteeditor
unattended-processing
ruby-1.8
objective-j
rowlex
binomial-heap
ajax-polling
nstokenfield

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