Skip to content

Commit

Permalink
update build_ceres.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pengsida committed Aug 16, 2019
1 parent f080b6d commit b4eac69
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ 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`.
If you cannot install `libsuitesparse-dev=1:4.4.6-1`, please install `libsuitesparse` and run `build_ceres.sh`.

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

Expand Down
6 changes: 4 additions & 2 deletions build_ceres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

mkdir -p ceres
cd ceres
git clone https://github.com/ceres-solver/ceres-solver.git
cd ceres-solver
wget http:https://ceres-solver.org/ceres-solver-1.14.0.tar.gz
tar xvzf ceres-solver-1.14.0.tar.gz
cd ceres-solver-1.14.0
sed -i 's/\(^option(BUILD_SHARED_LIBS.*\)OFF/\1ON/' CMakeLists.txt
rm -rf build
mkdir build
cd build
cmake ..
make -j8
mv ceres/ceres-solver-1.14.0/build/lib/libceres* lib/utils/extend_utils/lib

Binary file removed lib/utils/extend_utils/lib/libceres.a
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/utils/extend_utils/lib/libceres.so
1 change: 1 addition & 0 deletions lib/utils/extend_utils/lib/libceres.so.1
Binary file added lib/utils/extend_utils/lib/libceres.so.1.14.0
Binary file not shown.

0 comments on commit b4eac69

Please sign in to comment.