You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ This will create the `libapr.so` library in the `build` directory.
99
99
100
100
On OSX, install the `cmake`, `hdf5` and `libtiff`[homebrew](https://brew.sh) packages and have the [Xcode command line tools](http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/) installed.
101
101
102
-
If you want to compile with OpenMP support, also install the `llvm`package (this can also be done using homebrew), as the clang version shipped by Apple currently does not support OpenMP.
102
+
If you want to compile with OpenMP support (Recommended), also install the `llvm`and `libomp` package via homebrew as the clang version shipped by Apple currently does not support OpenMP.
103
103
104
104
In the directory of the cloned repository, run
105
105
@@ -110,15 +110,6 @@ cmake ..
110
110
make
111
111
```
112
112
113
-
This will create the `libapr.dylib` library in the `build` directory.
114
-
115
-
116
-
In case you want to use the homebrew-installed clang (OpenMP support), modify the call to `cmake` above to
On windows there are two working strategies we have tested. Either cheating and using WSL2 and linux above, or utilising a recent version clang-cl or clang directly as included in MSVC 2019 >16.8.6. Note for earlier versions OpenMP support did not work.
install the required visual studio compiler tools and clang: (Note you can also do this via downloading 2019 community and selecting the correct packages)
Now navigate to your cloned LibAPR directory (git clone --recursive https://github.com/AdaptiveParticles/LibAPR.git) and use vcpkg to install the required dependencies. You should have all dependencies set up to be able to build the library with clang-cl -A x64 -T ClangCL and to search for dependencies from vcpkg at your vcpkg install location: -DCMAKE_TOOLCHAIN_FILE="VCPKG_PATH/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows .
142
+
Now navigate to your cloned LibAPR directory (git clone --recursive https://github.com/AdaptiveParticles/LibAPR.git). You should have all dependencies set up to be able to build the library with clang-cl `-A x64 -T ClangCL` and to search for dependencies from vcpkg at your vcpkg install location: `-DCMAKE_TOOLCHAIN_FILE="VCPKG_PATH/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows` .
151
143
152
144
Now for example to build the tests and examples (Please note you will need to update below with your own VCPKG_PATH from the steps above.
0 commit comments