Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Openssl don't have full Android support for their ABIs #43

Open
paulocoutinhox opened this issue Feb 18, 2019 · 1 comment
Open

Openssl don't have full Android support for their ABIs #43

paulocoutinhox opened this issue Feb 18, 2019 · 1 comment

Comments

@paulocoutinhox
Copy link

Hi,

In your conanfile.py file it require the version 1.0.2o of openssl lib. But the 1.0.2o version don't have support for x86_64 arch when compiling to android (https://github.com/pocoproject/conan-poco/blob/master/conanfile.py#L98).

Can you update for this?
https://github.com/conan-community/conan-openssl/blob/release/1.1.0g/conanfile.py#L173
Because it has.

But the current version don't have:
https://github.com/conan-community/conan-openssl/blob/release/1.0.2o/conanfile.py#L167

Can you change it?

Or you can make it optional to we configure what version we want use (i dont know if conan let it).

The android docs say that it is one of their abi:
https://developer.android.com/ndk/guides/abis

@paulocoutinhox paulocoutinhox changed the title Openssl is old Openssl don't have full Android support for their ABIs Feb 18, 2019
@paulocoutinhox
Copy link
Author

Hi, i have a problem with openssl and android when use poco project dependency:

Cross-build from 'Macos:x86_64' to 'Android:x86_64'
android-ndk/r18@theodelrieu/testing: Already installed!
rapidjson/1.1.0@bincrafters/stable: Already installed!
sqlite3/3.27.2@bincrafters/stable: Already installed!
zlib/1.2.11@conan/stable: Already installed!
OpenSSL/1.0.2o@conan/stable: Applying build-requirement: android-ndk/r18@theodelrieu/testing
OpenSSL/1.0.2o@conan/stable: WARN: Build folder is dirty, removing it: /Users/paulo/.conan/data/OpenSSL/1.0.2o/conan/stable/build/b1cbf02a2aa9aecc0ea96aae238f695c8b591510
OpenSSL/1.0.2o@conan/stable: Building your package in /Users/paulo/.conan/data/OpenSSL/1.0.2o/conan/stable/build/b1cbf02a2aa9aecc0ea96aae238f695c8b591510
OpenSSL/1.0.2o@conan/stable: Copying sources to build folder
OpenSSL/1.0.2o@conan/stable: Generator txt created conanbuildinfo.txt
OpenSSL/1.0.2o@conan/stable: Calling build()
OpenSSL/1.0.2o@conan/stable: =====> Options:  --with-zlib-include="/Users/paulo/.conan/data/zlib/1.2.11/conan/stable/package/ea024cf456ba417491957151c3eb4aa37872a842/include" --with-zlib-lib="/Users/paulo/.conan/data/zlib/1.2.11/conan/stable/package/ea024cf456ba417491957151c3eb4aa37872a842/lib"
OpenSSL/1.0.2o@conan/stable: 
OpenSSL/1.0.2o@conan/stable: ERROR: Package 'b1cbf02a2aa9aecc0ea96aae238f695c8b591510' build failed
OpenSSL/1.0.2o@conan/stable: WARN: Build folder /Users/paulo/.conan/data/OpenSSL/1.0.2o/conan/stable/build/b1cbf02a2aa9aecc0ea96aae238f695c8b591510
ERROR: OpenSSL/1.0.2o@conan/stable: Error in build() method, line 112
	self.unix_build(config_options_string)
while calling 'unix_build', line 172
	raise Exception("Unsupported arch for Android")
	Exception: Unsupported arch for Android

The openssl (1.0.2o) required by "pocoproject" don't compile for 64bits archs on android.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant