@@ -15,24 +15,52 @@ A [shadowsocksR](https://github.com/breakwa11/shadowsocks-rss/) client for Andro
1515* Android SDK
1616 - Build Tools 25+
1717 - Android Support Repository and Google Repository (see ` build.sbt ` for version)
18- * Android NDK r12b+
18+ * Android NDK r12b ` High version may case something build fail `
1919
2020### BUILD
2121
22+ * Warnning: Cannot build in windows*
23+
2224* Set environment variable ` ANDROID_HOME ` to ` /path/to/android-sdk `
2325* Set environment variable ` ANDROID_NDK_HOME ` to ` /path/to/android-ndk `
26+ * And you can set http.proxy for sbt
2427* Create your key following the instructions at https://developer.android.com/studio/publish/app-signing.htmlf
25- * Put your key in ~ /.keystore
28+ * Put your key in ~ /.keystore or any other place
2629* Create ` local.properties ` from ` local.properties.example ` with your own key information
2730* Invoke the building like this
2831
2932``` bash
33+ export ANDROID_HOME=/path/to/Android/Sdk/
34+ export ANDROID_NDK_HOME=/path/to/Android/Sdk/ndk-bundle/
35+ export JAVA_OPTS=" $JAVA_OPTS -Dhttp.proxyHost=yourserver -Dhttp.proxyPort=port -Dhttp.proxyUser=username -Dhttp.proxyPassword=password"
36+ ```
37+
38+ ``` bash
39+ # install and update all git submodule
3040 git submodule update --init
3141
3242 # Build the App
3343 sbt native-build clean android:package-release
3444```
3545
46+ ##### If you use x64 linux like Archlinux x86_64, or your linux have new version ncurses lib, you may need install the 32bit version ncurses and link it as follow:
47+
48+ ``` bash
49+ # use Archlinux x86_64 as example
50+
51+ # install ncurses x64 and x86 version
52+ sudo pacman -S lib32-ncurses ncurses
53+
54+ # link the version-6 ncurses to version-5
55+ sudo ln -s /usr/lib/libncursesw.so /usr/lib/libncurses.so.5
56+ sudo ln -s /usr/lib32/libncursesw.so /usr/lib32/libncurses.so.5
57+
58+ # link libncurses to libtinfo
59+ sudo ln -s /usr/lib/libncurses.so.5 /usr/lib/libtinfo.so.5
60+ sudo ln -s /usr/lib32/libncurses.so.5 /usr/lib32/libtinfo.so.5
61+ ```
62+
63+
3664#### BUILD on Mac OS X (with HomeBrew)
3765
3866* Install Android SDK and NDK by run ` brew install android-ndk android-sdk `
0 commit comments