forked from bingmann/cobs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,29 +66,26 @@ and optionally run `make test` to check the build. | |
### Using `clang`: | ||
|
||
1. Install `boost-1.76`: `brew install [email protected]` | ||
2. Compile COBS with boost: `cmake -DBOOST=1 ..` | ||
2. Compile COBS with boost: `cmake ..` | ||
|
||
## Troubleshooting | ||
|
||
Several issues might arise from your specific configuration. | ||
|
||
### Problems with openMP on Mac OS X | ||
|
||
If installing openMP does not work, add `-DNOOPENMP=1` argument to the `cmake` command. | ||
If installing OpenMP does not work, add `-DNOOPENMP=1` argument to the `cmake` command. | ||
|
||
### Problems with python bindings | ||
|
||
Skip python bindings compilation by adding `-DSKIP_PYTHON=1` argument to the `cmake` command. | ||
|
||
### Problems with finding boost | ||
|
||
Define boost env variables and then compile: | ||
Define `BOOST_ROOT` env variable and then compile: | ||
``` | ||
export BOOST_INCLUDE_DIR="<boost_root>/include" | ||
export BOOST_LIBRARY_DIR="<boost_root>/lib" | ||
export CXXFLAGS="-DUSE_BOOST -I${BOOST_INCLUDE_DIR} -L${BOOST_LIBRARY_DIR}" | ||
export LDFLAGS="-L${BOOST_LIBRARY_DIR} -lboost_filesystem -lboost_system" | ||
cmake -DBOOST=1 .. | ||
export BOOST_ROOT="/usr/local/opt/[email protected]" # use your boost root path - this would be the path if installing boost using brew on Mac OS X | ||
cmake .. | ||
``` | ||
|
||
## Building an Index | ||
|