Skip to content

Commit

Permalink
Merge pull request #1 from borglab/feature/readme
Browse files Browse the repository at this point in the history
add install instruction
  • Loading branch information
ProfFan authored Jul 9, 2020
2 parents 60bed89 + f8909d2 commit 8587668
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
# gtsam-project-python

Project template using GTSAM + python wrapping

Please refer to the [tutorial](TUTORIAL.md) to get started.
## PREREQUISITES

- Python 3.6+ is required, since we support these versions.
- Make the following changes to `GTSAM`:

- Set the CMake flag `GTSAM_INSTALL_CYTHON_TOOLBOX` to `ON` to enable building the cython wrapper.
- Set the CMake flag `GTSAM_PYTHON_VERSION` to `3`, otherwise the default interpreter will be used.
- You can do this on the command line as follows:

```sh
cmake -GTSAM_INSTALL_CYTHON_TOOLBOX=ON -DGTSAM_PYTHON_VERSION=3 ..
```

## INSTALL

- In the `example` directory, create the `build` directory and `cd` into it.
- Run `cmake ..`.
- Run `make`, and the wrapped module will be installed to a `cython` directory.
- Navigate to the `cython` directory and run `python setup.py install`.

## DOCUMENTATION

For more detailed information, please refer to the [tutorial](TUTORIAL.md).

0 comments on commit 8587668

Please sign in to comment.