Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Issues
  • #2675
Closed
Open
Issue created Jan 12, 2022 by Rafal Kanus@Jacik

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.

Assignee
Assign to
Time tracking