# ARM client library?

**URL:** <https://forums.foundationdb.org/t/arm-client-library/3072>\
**Category:** Using FoundationDB\
**Tags:** bindings\
**Created:** [December 11, 2021, 8:14pm UTC](https://forums.foundationdb.org/t/arm-client-library/3072 "2021-12-11T20:14:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjbottaro](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/cjbottaro/32/1256_2.png) [@cjbottaro](https://forums.foundationdb.org/u/cjbottaro)\
**Post date:** [December 11, 2021, 8:14pm UTC](https://forums.foundationdb.org/t/arm-client-library/3072/1 "2021-12-11T20:14:25Z")

</div>

Is there such a thing? If not, are there instructions on building the client library from source?

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![amirouche](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/amirouche/32/2096_2.png) [@amirouche](https://forums.foundationdb.org/u/amirouche)\
**Post date:** [December 13, 2021, 9:00am UTC](https://forums.foundationdb.org/t/arm-client-library/3072/2 "2021-12-13T09:00:48Z")

</div>

The instructions on building from source are in the [README](https://github.com/apple/foundationdb#compiling-from-source):

> To build outside the official docker image you’ll need at least these dependencies:
> 
> 1. Install cmake Version 3.13 or higher [CMake](https://cmake.org/)
> 2. Install [Mono](http://www.mono-project.com/download/stable/)
> 3. Install [Ninja](https://ninja-build.org/) (optional, but recommended)
> 
> If compiling for local development, please set `-DUSE_WERROR=ON` in cmake. Our CI compiles with `-Werror` on, so this way you’ll find out about compiler warnings that break the build earlier.
> 
> Once you have your dependencies, you can run cmake and then build:
> 
> 1. Check out this repository.
> 2. Create a build directory (you can have the build directory anywhere you like). There is currently a directory in the source tree called build, but you should not use it. See [#3098](https://github.com/apple/foundationdb/issues/3098)
> 3. `cd <PATH_TO_BUILD_DIRECTORY>`
> 4. `cmake -G Ninja <PATH_TO_FOUNDATIONDB_DIRECTORY>`
> 5. `ninja # If this crashes it probably ran out of memory. Try ninja -j1`

---

<div class="post-metadata">

**Author:** ![kao.makino](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/kao.makino/32/476_2.png) [@kao.makino](https://forums.foundationdb.org/u/kao.makino)\
**Post date:** [December 13, 2021, 11:36pm UTC](https://forums.foundationdb.org/t/arm-client-library/3072/3 "2021-12-13T23:36:06Z")

</div>

The official CentOS7 build docker image supports `Linux aarch64`.

> <https://github.com/FoundationDB/fdb-build-support/blob/main/docker/centos7/Dockerfile>

You can build and run FDB on Linux aarch64 today, but keep in mind that since it’s not officially being tested, it’s still an unofficial port.

---

<div class="post-metadata">

**Author:** ![cjbottaro](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/cjbottaro/32/1256_2.png) [@cjbottaro](https://forums.foundationdb.org/u/cjbottaro)\
**Post date:** [December 17, 2021, 6:29pm UTC](https://forums.foundationdb.org/t/arm-client-library/3072/4 "2021-12-17T18:29:21Z")

</div>

Is there any way to build `libfdb_c.dylib` in a Docker container? End goal is to get a client library that works on M1 Macs. Thanks!

---

<div class="post-metadata">

**Author:** ![markus.pilman](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/markus.pilman/32/379_2.png) [@markus.pilman](https://forums.foundationdb.org/u/markus.pilman)\
**Post date:** [December 20, 2021, 5:17pm UTC](https://forums.foundationdb.org/t/arm-client-library/3072/5 "2021-12-20T17:17:53Z")

</div>

If you build it in a docker container it will not work on macOS. If you want to build a macOS binary (no matter which CPU platform) you need to build outside of docker.

---

<div class="post-metadata">

**Author:** ![leonliao](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/leonliao/32/1244_2.png) [@leonliao](https://forums.foundationdb.org/u/leonliao)\
**Post date:** [December 30, 2021, 7:28am UTC](https://forums.foundationdb.org/t/arm-client-library/3072/6 "2021-12-30T07:28:27Z")

</div>

Check [Building foundationdb source code in Macos Big Sur M1 chip](https://forums.foundationdb.org/t/building-foundationdb-source-code-in-macos-big-sur-m1-chip/2799), I summarized how to build fdb 6.3.22 on an M1 Mac. But just for development and testing.
