Skip to content

Commit 8587668

Browse files
authored
Merge pull request #1 from borglab/feature/readme
add install instruction
2 parents 60bed89 + f8909d2 commit 8587668

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
# gtsam-project-python
2+
23
Project template using GTSAM + python wrapping
34

4-
Please refer to the [tutorial](TUTORIAL.md) to get started.
5+
## PREREQUISITES
6+
7+
- Python 3.6+ is required, since we support these versions.
8+
- Make the following changes to `GTSAM`:
9+
10+
- Set the CMake flag `GTSAM_INSTALL_CYTHON_TOOLBOX` to `ON` to enable building the cython wrapper.
11+
- Set the CMake flag `GTSAM_PYTHON_VERSION` to `3`, otherwise the default interpreter will be used.
12+
- You can do this on the command line as follows:
13+
14+
```sh
15+
cmake -GTSAM_INSTALL_CYTHON_TOOLBOX=ON -DGTSAM_PYTHON_VERSION=3 ..
16+
```
17+
18+
## INSTALL
19+
20+
- In the `example` directory, create the `build` directory and `cd` into it.
21+
- Run `cmake ..`.
22+
- Run `make`, and the wrapped module will be installed to a `cython` directory.
23+
- Navigate to the `cython` directory and run `python setup.py install`.
24+
25+
## DOCUMENTATION
26+
27+
For more detailed information, please refer to the [tutorial](TUTORIAL.md).

0 commit comments

Comments
 (0)