Questions tagged [buck]

Buck is a build system developed and used by Facebook. It encourages the creation of small, reusable modules consisting of code and resources, and supports a variety of languages on many platforms.

Buck is a super-fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.

It is used at Facebook to build the Facebook's main Android app, Messenger, and Instagram as well as internal infrastructure at Facebook. The Gerrit project also uses it.

112 questions
2
votes
1 answer

Buck file aggregating multiple Buck files

I structured my code in the following way: BUCK component A src test BUCK component B src test BUCK See an example here. The BUCK file for each component looks like this: java_library( name = 'selendroid-standalone', srcs =…
Martin Konicek
  • 39,126
  • 20
  • 90
  • 98
1
vote
1 answer

Can bazel package depend on a source file in another package

A few years ago I wrote a set of wrappers for Bazel that enabled me to use it to build FPGA code. The FPGA bit is only relevant because the full clean build takes many CPU days so I really care about caching and minimizing rebuilds. Using Bazel…
Fenster34
  • 438
  • 5
  • 11
1
vote
1 answer

Build Buck failed in M1 chip

I try to install buck using homebrew and source code to build In homebrew installation was encounter that cannot install openJdk@8 because it didn't support M1 chip. Therefore I was installed azul java8 1.8.0_312 (arm64) "Azul Systems, Inc." - "Zulu…
Even Zhang
  • 15
  • 2
1
vote
0 answers

Compiling selenium webdriver source - buck issues

Been spending yesterday compiling the open source Appium tool, and today Selenium. Between the projects, on Windows, I've had to install different versions of the JDK, ruby, python 2.7 (I had 3.6), git, ffmpeg, opencv4nodejs,nodejs, npm, choco and a…
Mark Mayo
  • 12,230
  • 12
  • 54
  • 85
1
vote
1 answer

Link X11 using BUCK build for a CPP application

Im having issues trying to compile a CPP application with a dependency on X11 using buck as it appears to not be linking the X11 Lib and results in an undefined reference error: undefined reference to `XOpenDisplay' collect2: error: ld returned 1…
D3181
  • 2,037
  • 5
  • 19
  • 44
1
vote
1 answer

Can we limit Swift generated interface accessible from module only in Xcode?

Case A module (static library with module-map file) is having mixed code (Objective-C + Swift) in an iOS App codebase. The Swift code need to be used from module only, so all interface required is internal The documentation here says Because the…
msk
  • 8,885
  • 6
  • 41
  • 72
1
vote
0 answers

Got errors trying to compile buck

I followed the instructions at https://buckbuild.com/setup/getting_started.html in the Build From Source section to try and build Buck from the git checkout and got the following errors. The prerequisites were installed correctly. chrisym-mbp:buck…
TinyGrasshopper
  • 2,190
  • 2
  • 17
  • 28
1
vote
1 answer

python buckw kill error while building selenium

I'm trying to build selenium webdriver project using the command "go" in Rakefile location but it got aborted with below error, Note : Java version is 1.8 and Python version is 2.7 Error: $ python buckw kill Traceback (most recent call last): File…
Daniel George
  • 15
  • 1
  • 3
1
vote
0 answers

Using C library with React Native

I do not have a background in Android Application Development but have taken a task where I need to use the C library (game engine written in C) with the android application. I have some background in NodeJS and thus have decided to use React…
Larry
  • 11
  • 1
1
vote
1 answer

Difference between cxx_binary() and cxx_library()

What is the difference between the two? On the documentation, they seem to have the same arguments? Do they do the same thing? I haven't been able to find much info about Buck besides the official documentation.
Blubber
  • 1,375
  • 1
  • 15
  • 32
1
vote
1 answer

Change NDK target in buck

I am compiling android project with Facebook's buck build system. But getting the following error. With error I can conclude that it is trying to find the platform android-9 but ndk directory have platforms starting from android-14. I have searched…
Mohammed Rampurawala
  • 3,033
  • 2
  • 22
  • 32
1
vote
2 answers

Facebook Buck: BUILD FAILED: No native platforms detected. Probably Android NDK is not configured properly

I am trying to build Android app using the facebook's buck build system but I am getting Build Failed error. I am getting this same error on both MAC as well as WINDOWS buckconfig file [cache] mode = dir [cxx] default_platform =…
Mohammed Rampurawala
  • 3,033
  • 2
  • 22
  • 32
1
vote
1 answer

How do I set up Buck with Dagger & Butterknife?

Hello my fellow developers, I'm trying to switch from Gradle to Buck and have problems setting it up with Dagger and Butterknife since they need annotation processing. I found a few links and tutorials, but they are already a few (~4) years old and…
fekete777
  • 23
  • 1
  • 6
1
vote
1 answer

Android BUCK build error

I am getting the following error when trying to build the buck sample project following these instructions (https://buckbuild.com/setup/getting_started.html). BUILD FAILED: No native platforms detected. Probably Android NDK is not configured…
teej2542
  • 577
  • 3
  • 10
  • 27
1
vote
1 answer

Structuring Output Folders in Buck

I am working on a project that uses Buck for its build system, and I want to have buck build a set of shaders. It is my understanding that I would use genrule to generate these shaders. The problem that I run into is that I need to specify the…
theaustinseven
  • 117
  • 1
  • 11