Sample code does not build for Android
Hi. I followed Getting Started guide on https://buck.build/setup/getting_started.html and try to build cross-platform-scale-2015-demo from https://github.com/fbsamples/bucksamples.git repository for Android.
I have this error:
toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc++
I tried NDK version 21 and 23 but still have the same error. I use buck installed on macOS via brew buck version 2021.01.12.01
BTW: I had to set fixed path to NDK 23 in .buckconfig because otherwise buck did not find NDK version 23 when using ANDROID_NDK_REPOSITORY. Only old 21 and 19 was found.
Target NDK version 23.0.7599858 is not available. The following versions are available: 21.3.6528147, 19.0.5232133
I also tried to setup my own simple Android project with Buck. I add simple java class and jni library with one C file. When I build this project I have the same error.