tink icon indicating copy to clipboard operation
tink copied to clipboard

CMake Error -> ANDROID STUDIO

Open ANURAGX opened this issue 3 years ago • 1 comments

I have been trying to develop build tink C++ on android studio and CMake throws error. `Execution failed for task ':app:generateJsonModelDebug'.

/Users/anurag/Desktop/native-activity/app/src/main/cpp/CMakeLists.txt : C/C++ debug|armeabi-v7a : CMake Error at /Users/anurag/Desktop/native-activity/app/src/main/cpp/third_party/tink/aead/CMakeLists.txt:1 (tink_module): Unknown CMake command "tink_module".

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.`

And this is my CMakeList.txt

cmake_minimum_required(VERSION 3.7) set(CMAKE_CXX_STANDARD 11) add_subdirectory(third_party/tink) add_executable(native-activity main.cpp) target_link_libraries(native-activity tink::static)

ANURAGX avatar Apr 03 '21 05:04 ANURAGX

Hi maintainers, any comments here.

ANURAGX avatar Apr 20 '21 17:04 ANURAGX

What CMake version are you using? I'm not familiar with the Android Studio platform. Can you comment more on it?

tholenst avatar Jan 26 '23 15:01 tholenst

I will close this -- sorry we didn't respond faster. If there is still a problem, please reopen or file a new issue in https://github.com/tink-crypto/tink-cc

tholenst avatar May 03 '23 15:05 tholenst