Skip to content

Commit 95b51e7

Browse files
committed
update installtion documentaion for mac libcurl issue
1 parent 3c7a362 commit 95b51e7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,22 @@ Debian based Linux distributions example:
5959
RPM based Linux distributions example:
6060
`sudo [yum|dnf|zypper] install libcurl-devel`
6161

62+
### Building for MacOS
63+
64+
Building for mac is largely the same as build on a *nix system except for how the system consumes the curl dependency and compilers. There are two ways to consume the required dependencies.
65+
66+
You must install the [xcode command line tools](https://mac.install.guide/commandlinetools/4.html). This is required for apple clang and gcc. This also installs libcurl as well.
67+
68+
> :warning: If you are using MacOS Sonoma there is a [known issue](https://github.com/aws/aws-sdk-cpp/issues/2804) where using libcurl version 8.4.0 on mac can lead to issues. [This issue is being tracked with curl and apple](https://github.com/curl/curl/issues/12525). In the meanwhile please use and updated version of [curl from homebrew](https://formulae.brew.sh/formula/curl). You can include this in your project via the CMAKE_PREFIX_PATH.
69+
>
70+
> ```
71+
> cmake -DCMAKE_PREFIX_PATH="/opt/homebrew/opt/curl/" \
72+
> -DAUTORUN_UNIT_TESTS=OFF \
73+
> -DBUILD_ONLY="s3" \
74+
> -DCMAKE_INSTALL_PREFIX="~/sdk-install" \
75+
> ..
76+
> ```
77+
6278
### Building for Android
6379
To build for Android, add `-DTARGET_ARCH=ANDROID` to your cmake command line. Currently we support Android APIs from 19 to 28 with Android NDK 19c and we are using build-in cmake toolchain file supplied by Android NDK, assuming you have the appropriate environment variables (ANDROID_NDK) set.
6480

0 commit comments

Comments
 (0)