You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build and use this library in android.
This is my cp/CMakeLists.txt's content:
cmake_minimum_required(VERSION 3.4.1)
add_library( # Sets the name of the library.
native-lib
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
native-lib.cpp)
find_library( # Sets the name of the path variable.
log-lib
# Specifies the name of the NDK library that
# you want CMake to locate.
log)
file(GLOB_RECURSE OPENSSL_SOURCES "openssl/*.c")
include_directories(openssl/include)
add_library(openssl SHARED ${OPENSSL_SOURCES})
target_link_libraries( # Specifies the target library.
native-lib
# Links the target library to the log library
# included in the NDK.
${log-lib})
When I try to build this, I get this error:
C:/Users/admin/AndroidStudioProjects/CPR/app/src/main/cpp/openssl/crypto/bn/bn_depr.c:15:10: fatal error: 'openssl/opensslconf.h' file not found
What is the problem?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
You have to use the cmake project provided with it by the following:
I.e if you have copied this project into your source dir (CMAKE_CURRENT_SOURCE_DIR) with the path name "openssl":
I am trying to build and use this library in android.
This is my cp/CMakeLists.txt's content:
When I try to build this, I get this error:
C:/Users/admin/AndroidStudioProjects/CPR/app/src/main/cpp/openssl/crypto/bn/bn_depr.c:15:10: fatal error: 'openssl/opensslconf.h' file not found
What is the problem?
Thanks in advance.
The text was updated successfully, but these errors were encountered: