Skip to content

Commit

Permalink
add build_ceres.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pengsida committed Aug 13, 2019
1 parent fddbdcf commit 8f67744
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ sudo apt-get install libatlas-base-dev=3.10.2-9
python build_extend_utils_cffi.py
```

If you cannot install `libsuitesparse-dev=1:4.4.6-1`, please install `libsuitesparse`, run `build_ceres.sh` and move `ceres/ceres-solver/build/lib/libceres.so*` to `lib/utils/extend_utils/lib`.

Add the `lib` under `extend_utils` to the LD_LIBRARY_PATH

```
Expand Down
13 changes: 13 additions & 0 deletions build_ceres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

mkdir -p ceres
cd ceres
git clone https://github.com/ceres-solver/ceres-solver.git
cd ceres-solver
sed -i 's/\(^option(BUILD_SHARED_LIBS.*\)OFF/\1ON/' CMakeLists.txt
rm -rf build
mkdir build
cd build
cmake ..
make -j8

1 change: 1 addition & 0 deletions ceres/ceres-solver
Submodule ceres-solver added at d7f428

0 comments on commit 8f67744

Please sign in to comment.