Skip to content

Commit

Permalink
Build ceres as shared libraries, this prevents a segfault at init tim…
Browse files Browse the repository at this point in the history
…e with gflags/glog inconsistency see: google/glog#53
  • Loading branch information
ethanrublee committed Nov 29, 2020
1 parent da5e422 commit 8f7aa0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
cd $FARM_NG_ROOT/third_party
mkdir -p build-ceres
cd build-ceres
cmake -DCMAKE_INSTALL_PREFIX=$FARM_NG_ROOT/env -DCMAKE_PREFIX_PATH=$FARM_NG_ROOT/env/ -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF ../ceres-solver
cmake -DCMAKE_INSTALL_PREFIX=$FARM_NG_ROOT/env -DCMAKE_PREFIX_PATH=$FARM_NG_ROOT/env/ -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON ../ceres-solver
make -j$(nproc --ignore=1)
make install

Expand Down

0 comments on commit 8f7aa0e

Please sign in to comment.