-
Notifications
You must be signed in to change notification settings - Fork 4
openssl/openssl for mobile #121
Comments
I can certainly give it a try! |
Made some progress on iOS: https://github.com/buckaroo-pm/openssl/blob/ce8bbb85e4241eec41fa4e4b96f64919594b7695/BUCK With this |
Thanks so much for working on this, @njlr ! As a heads: I tried swapping out my BUCK, but building errors out (even on desktop). |
I am writing the new |
I managed to get Android working in an x86 emulator. Does this https://github.com/buckaroo-pm/openssl/blob/00757e702f128ef22312f9af19154cbf9dfefe5a/BUCK |
Hey @njlr! Really appreciate your efforts on this. It seems to build the static library just fine, but something's broken with the includes. On the platforms I tried (mac, iOS), hen you try to use OpenSSL as a dep, it looks like some critical methods aren't included. See below for an example of build error when trying to use OpenSSL as part of boost::asio
|
Sure, I'll take a look. First finding:
This version is defined here: https://github.com/openssl/openssl/blob/a4a90a8a3bdcb9336b5c9c15da419e99a87bc6ed/include/openssl/opensslv.h#L42 So maybe we can try forcing a version like this: |
The I have made a small example that you can test here: https://github.com/njlr/openssl-boost-asio-test |
Hey @njlr, your example works for me, but doesn't trip the error, which I think is real, unfortunately, if not the fault of OpenSSL (see below). I'd originally downloaded your buckaroo/openssl at the same commit as your BUCK file when I got that error. Copying openssl in from your example and building against that in my project gives the same errors as before. The issue, I think, is that boost 1.63 (the one used by buckaroo) doesn't support OpenSSl 1.1.1 correctly. OpenSSL 1.1 support had just been added in 1.62, and it looks like it had some problems until 1.64. It looks like among them was this problem we're facing, based on this commit. |
So I resolved this by patching asio and websocketpp. Probably the best long term solution, though, is to upgrade buckaroo to the latest versions of each, since those latest versions support openssl 1.1.1, which is an LTS version. |
Thanks for the info @cpsauer First thing I'll do is update OpenSSL, since that BUCK file seems good now. I'll take a look at updating Boost vs fixing an older version of OpenSSL. Ideally we would do both though. |
I have updated |
@njlr Is there any chance I could ask you to add mobile support (iphoneos and android) for openssl/openssl? Pretty please 🙏
I can hack it in (or prebuild) if necessary, but it looks like the BUCK file is pretty intricate and that you've changed it recently. If you'd be willing, I'd be hugely appreciative.
The text was updated successfully, but these errors were encountered: