Skip to content

Commit

Permalink
succeed to build with openssl 1.0.2j #109
Browse files Browse the repository at this point in the history
  • Loading branch information
kuri65536 committed Jan 17, 2017
1 parent 13c393c commit 624d3b3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Instruction for installation
### How to install
1. Download sl4a apk
2. Download py4a apk
3. Download py4a zips, [interpreter - python_r28.zip](../../releases/download/r28/python_r28.zip),
[modules - python_extras_r26.zip](../../releases/download/r26/python_extras_r28.zip),
3. Download py4a zips, [interpreter - python_r29.zip](../../releases/download/r29/python_r29.zip),
[modules - python_extras_r29.zip](../../releases/download/r29/python_extras_r29.zip),
[sample scripts - python_scripts_r26.zip](../../releases/download/r26/python_scripts_r26.zip).
4. Enable "Unknown Sources" in your device settings.
5. Open 1. apk to install. (sl4a)
Expand All @@ -59,6 +59,7 @@ Instruction for installation
8. push 3. zips to device's /sdcard/com.googlecode.pythonforandroid.
(be sure /sdcard path to fit your device.)
9. Click "Local install" to check zips and install python binaries.
9. Click "Local install" to install these zips.
10. Launch sl4a, Select 'Menu' >> 'View' >> 'Interpreters'
and Select 'Python 2.7.?'.
11. Python will be launched, have fun!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@ public File doSelectZip(ArrayList<File> seq, final String title) {
if (seq.size() < 2) {
return seq.get(0); // there is only one file, good case!
}
// BUG: not work well, 2017/01/17
// show users to select zip.
final CharSequence[] items = seq.toArray(new CharSequence[seq.size()]);
parent.runOnUiThread(new Runnable() {
Expand Down
2 changes: 1 addition & 1 deletion python-build/LATEST_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
r28
r29
2 changes: 1 addition & 1 deletion python-build/LATEST_VERSION_EXTRA
Original file line number Diff line number Diff line change
@@ -1 +1 @@
r28
r29
12 changes: 8 additions & 4 deletions python-build/openssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export ANDROID_DEV=$(ANDROID_SYSROOT)/usr
# export PATH=$(ANDROID_TOOLCHAIN):$(PATH)

OPENSSL_SERIES := 1.0.2
OPENSSL_RELEASE := d
OPENSSL_RELEASE := j
OPENSSL_VERSION := $(OPENSSL_SERIES)$(OPENSSL_RELEASE)
OPENSSL_DIR = openssl-$(OPENSSL_VERSION)
OPENSSL_SRC = openssl-$(OPENSSL_VERSION).tar.gz
Expand Down Expand Up @@ -56,7 +56,11 @@ clean:
make -C .build_x86 clean

$(OPENSSL_SRC):
wget https://www.openssl.org/source/old/$(OPENSSL_SERIES)/$(OPENSSL_SRC)
if ! wget \
wget https://www.openssl.org/source/$(OPENSSL_SRC); \
then \
https://www.openssl.org/source/old/$(OPENSSL_SERIES)/$(OPENSSL_SRC); \
fi
wget https://wiki.openssl.org/images/7/70/Setenv-android.sh

# setup arch depended variables: arm
Expand All @@ -77,9 +81,9 @@ $(OPENSSL_BIN_arm): \
$(OPENSSL_BIN_arm): .build_armeabi/Makefile
./showenv.sh
cd $(dir $<); perl $(perlopt) Makefile.org
cd $(dir $<); ./Configure $(__PIE_CFLAGS) android no-asm shared no-ssl2 no-ssl3 no-comp no-hw no-engine \
cd $(dir $<); ./Configure $(__PIE_CFLAGS) android no-asm shared no-ssl2 no-ssl3 no-comp no-hw \
--openssldir=$(PREFIX)/share --prefix=$(PREFIX)
# make -C $(dir $<) depend
make -C $(dir $<) depend
make -C $(dir $<) all
make -C $(dir $<) install_sw

Expand Down

0 comments on commit 624d3b3

Please sign in to comment.