From 2403fb2fc0ccb091fb5d9bdf928cb268582a90c3 Mon Sep 17 00:00:00 2001 From: Jesse Jaggars Date: Thu, 15 Dec 2022 09:39:31 -0500 Subject: [PATCH] Update getting-started-darwin.md with instructions for M1 Macs(#14) I had a couple issues building on my M1 Mac, the additional flags needed to get the dylib to compile are in the doc. --- docs/getting-started/getting-started-darwin.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/getting-started/getting-started-darwin.md b/docs/getting-started/getting-started-darwin.md index 530506e..8f1a69b 100644 --- a/docs/getting-started/getting-started-darwin.md +++ b/docs/getting-started/getting-started-darwin.md @@ -181,10 +181,16 @@ Compile and install the rocksdb library curl -L https://github.com/facebook/rocksdb/pull/7714.patch | git apply - CFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib" make shared_lib + +# if the above doesn't work you may have to allow a few warnings by +# CXXFLAGS="-Wno-error=deprecated-copy -Wno-error=unused-but-set-variable" + make install-shared # if the above doesn't work run install-shared with sudo ``` + + ### Verify If this worked (Intel or M1) properly, you'll see something like the following: ```