Skip to content

Conversation

@Liryna
Copy link

@Liryna Liryna commented Dec 23, 2016

CMake module to detect openssl crystax (based on boost module)

@Liryna
Copy link
Author

Liryna commented Dec 23, 2016

Ok I was too fast on this. I had a corrupt cache during the test and was giving a false positive.
CMake is still unable to find openssl even with correct paths 😢 and I have no idea why...everything seems to be alright 😞

Looks like it is an issue of library name ? Looks like he he expecy to find the library version from the includes in the library name.

Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
  version "1.0.2h")

@Liryna
Copy link
Author

Liryna commented Jan 2, 2017

Giving cmake directly the libraries path seems to make cmake happy and build since it override the normal behavior...

cmake -DCMAKE_TOOLCHAIN_FILE=$NDK/cmake/toolchain.cmake -DANDROID_ABI=arm64-v8a -DOPENSSL_CRYPTO_LIBRARY=/crystax-ndk-10.3.2/sources/openssl/1.0.2h/libs/arm64-v8a/libcrypto.so -DOPENSSL_SSL_LIBRARY=/crystax-ndk-10.3.2/sources/openssl/1.0.2h/libs/arm64-v8a/libssl.so ..

I am currently using https://github.com/crystax/android-samples-cmake with crystax nightly
Any idea how to make this more clean 😢 ? I tried everything and I have no other ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant