Skip to content

Commit cc076dc

Browse files
committed
Installation suggestions for Apple Silicon
1 parent 66c8d23 commit cc076dc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

INSTALL.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cd quartz
3636
2. Set up the environment (including Python, Cython, OpenMP) by conda.
3737

3838
```shell
39-
conda env create --name quartz --file env.yml
39+
conda env create --name quartz --file env.yml # on MacOS with Apple Silicon, please prepend "CONDA_SUBDIR=osx-arm64" to the beginning of this command if you installed Anaconda with a default x86_64 target architecture
4040
conda activate quartz
4141
conda install openmp # on MacOS, please run "brew install libomp" instead
4242
```
@@ -50,11 +50,11 @@ conda install openmp # on MacOS, please run "brew install libomp" instead
5050
mkdir build
5151
cd build
5252
cmake .. # see notes below
53-
make install
53+
make install # on MacOS, if you updated your system recently and find that the C++ standard libraries are missing, please consider re-installing your development tools
5454
```
5555

5656
Note that line 3 in the example will have the runtime library and include files installed into the default
57-
path `/usr/local/`. To modify the install path, you can set the path explicitly in line 3, for example:
57+
path `/usr/local/`. To modify the installation path, you can set the path explicitly in line 3, for example:
5858

5959
```shell
6060
cmake -D CMAKE_INSTALL_PREFIX:PATH=~/opt/ ..
@@ -129,7 +129,7 @@ to `~/.bashrc`.
129129

130130
### CLion Settings
131131

132-
- Settings -> Build, Execution, Deployment -> Toolchains -> add "Visual Studio"
132+
- (Windows) Settings -> Build, Execution, Deployment -> Toolchains -> add "Visual Studio"
133133
- Toolset: select the folder where Visual Studio is installed.
134134
- Architecture: select `amd64`.
135135
- (Windows) Add environment -> From file -> Environment file: `(path\to\quartz)\scripts\setup_environment.bat`
@@ -143,6 +143,9 @@ to `~/.bashrc`.
143143
- `test_optimize | Debug-Visual Studio` -> Edit Configurations... -> Working Directory -> fill in `(path\to\quartz)`
144144
- Click "Run 'test_optimize'" (Shift + F10)
145145

146+
### Troubleshooting
147+
- If the Python modules you have installed in the quartz conda environment are missing, please consider replacing all instances of `"python "` in the code with the Python executable path in the quartz conda environment.
148+
146149
## Visual Studio Integration (Optional) (only for Windows)
147150

148151
### Additional Prerequisites

0 commit comments

Comments
 (0)