2

I have some issues in building ics-openvpn project. When I deploy the app on the device and try to import a .ovpn file, I get cannot find minivpn. I think this error is related to an error during the app building.

I've downloaded android NDK and set the path in Eclipse, downloaded cygwin and launched ./build-native.sh, but it returns me the error

./build-native.sh: line 1: ndk-build: command not found

I've tried to modify the path in the .sh with the path of ndk-build, but I get another error:

NON-CYGWIN COMPATIBLE MAKE PROGRAM.....

Anyone knows what steps I have to follow to properly build the project?

Sam R.
  • 16,027
  • 12
  • 69
  • 122
user1071138
  • 656
  • 3
  • 12
  • 30

2 Answers2

1

You should not try to build it with the cygwin. There is also a build-native.bat in the project which allows the project to be build with windows. Make sure that you have installed the ndk and ndk-build is in your PATH.

plaisthos
  • 6,255
  • 6
  • 35
  • 63
  • I run .bat, and ndk is in the PATH,but now I get the following output: C:\Users\Vincenzo\ics-openvpn>call ndk-build -j 8 Impossibile trovare il percorso specificato. Sottodirectory o file ..\assets già esistente. Impossibile trovare il file specificato. Impossibile trovare C:\Users\Vincenzo\ics-openvpn\.hg\libcrypto.so Impossibile trovare C:\Users\Vincenzo\ics-openvpn\.hg\libssl.so Impossibile trovare il file specificato. Impossibile trovare C:\Users\Vincenzo\ics-openvpn\src\libcrypto.so Impossibile trovare C:\Users\Vincenzo\ics-openvpn\src\libssl.so – user1071138 Mar 29 '13 at 14:43
  • From google translate error message is "System cannot find the path specified." which means ndk-build is probably not in your path. Try just ndk-build in the ics-openvpn directory. That should give the same error that the command cannot be found. – plaisthos Mar 29 '13 at 14:53
  • yes, I've already tried and the error is the same, but in environment variables I added to PATH the correct path to android ndk. If I try to run ndk-build from the directory where it's stored I get the same error. Maybe I have to set the path somewhere else? – user1071138 Mar 29 '13 at 15:00
  • Then you have same problem with your NDK. Try posting a question concerning the non working ndk-build command. This has nothing to do with OpenVPN for Android anymore – plaisthos Mar 29 '13 at 15:59
  • I solved the ndk issue, but now, when I run build-native.bat i get: C:\Users\Vincenzo\ics-openvpn\jni>cd.. C:\Users\Vincenzo\ics-openvpn>build-native.bat C:\Users\Vincenzo\ics-openvpn>call ndk-build -j 8 jni/Android.mk:12: google-breakpad/android/google_breakpad/Android.mk: No such f ile or directory jni/Android.mk:12: google-breakpad/android/google_breakpad/Android.mk: No such f ile or directory jni/Android.mk:12: google-breakpad/android/google_breakpad/Android.mk: No such f ile or directory make: *** No rule to make target `google-breakpad/android/google_breakpad/Androi d.mk'. Stop. – user1071138 Mar 29 '13 at 17:49
1

Run build-native.bat make sure you must have NDK 8b and set the environment variable for the ndk file

Furqan
  • 465
  • 6
  • 22