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 using this library in my android app. The cpp/CMakeLists.txt's content is:
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)
add_library(
curl
SHARED
IMPORTED
)
set_target_properties(
curl
PROPERTIES IMPORTED_LOCATION
${CMAKE_SOURCE_DIR}/curl-android-ios/prebuilt-with-ssl/android/${ANDROID_ABI}/libcurl.a
)
include_directories(
${CMAKE_SOURCE_DIR}/curl-android-ios/prebuilt-with-ssl/android/include/
)
find_library(
zlib
z
)
message("***********************" ${zlib})
target_link_libraries( # Specifies the target library.
native-lib
curl
z
# Links the target library to the log library
# included in the NDK.
${log-lib})
I am using this library in my android app. The cpp/CMakeLists.txt's content is:
And this is my cpp/native-lib.cpp file:
But nothing is shown in the textview in android.
Would you please help me fix this?
The text was updated successfully, but these errors were encountered: