Open esutton opened 6 years ago
I found a solution that works for building OpenSSL on Arm, Arm7, x86, on macOS. You just have to use Android NDK r10e or earlier.
good to hear that you found a solution. BTW: I'm only developing on macOS, allways using NDK r10e. Never tried x86.
I am developing Android and iOS on macOS using Qt C++ and React Native. React Native requires r10 e. I plan to stick with r10e. Until I have reason to not use it.
x86 build make it quick and easy to debug using Android x86 emulators such as Genymotion. I only tried Ubuntu because I was desperate and suspected the OpenSSL build could have been failing on macOS because of a clang issue. I do not know cause. But r10e just works.
Building OpenSSL on macOS is a challenge!! One day wasted and counting...
I got past the '-mandroid' issue by removing it from the Makefile
What I have tried so far:
Qt 5.9 Adding OpenSSL Support for Android
Follow this first: Qt 5.9 Adding OpenSSL Support for Android
File: Setenv-android.sh
Attempt to build OpenSSL
1) Edit Makefile.shared to remove -Bsymbolic 2) Edit Makefile.shared to replace -soname with -install_name
Example:
3) Create Makefile
4) Remove '''CFLAG''' option '''-mandroid''' from Makefile
5) Build make CALC_VERSIONS="SHLIB_COMPAT=; SHLIB_SOVER="
Resulting error: syntax error near unexpected token `;'
I think there is something still wrong with my -install_name syntax? How do you build OpenSSL on macOS?
I need to build boih arm7 and x86 so I can test in Genymotion emulator.
@ekke @mabedMRD @alexgarret @machinekoder Qt guys? Any tips or suggestions are greatly appreciated.