CMAKE AWS-C-CALC cannot find openssl/evp.h #3211
Answered
by
BrunoFigRaymarine
BrunoFigRaymarine
asked this question in
Q&A
-
Any hints as to why my cmake build for android keeps failing with cannot find openssl header files? |
Beta Was this translation helpful? Give feedback.
Answered by
BrunoFigRaymarine
Dec 5, 2024
Replies: 1 comment 1 reply
-
What build commands are you trying? |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Hi, After exhaustive trials the only thing that worked was to reverse engineer the MakeFiles and CMakeFiles and set
-DOPENSSL_INCLUDE_FLAGS
-DOPENSSL_LINKER_FLAGS
-DCMAKE_CXX_FLAGS
-DCMAKE_C_FLAGS
The CMAKE_PREFIX and CMAKE_INCLUDE path were not being considered if you don't build OPENSSL and then you cannot include OPENSSL files when building other submodules
-DCMAKE_SHARED_LINKER_FLAGS="-L$ANDROID_LIB_PATH -fPIE -pie" \