From 2689974dba3ba2ebb3da2354fbbb7ef127bc29f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrique=20Mendon=C3=A7a?= Date: Wed, 29 Apr 2015 11:18:30 +1000 Subject: [PATCH 1/3] Create .travis.yml --- .travis.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d95db7c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,42 @@ +language: cpp + +before_install: + - export NUM_CPU="`grep processor /proc/cpuinfo | wc -l`"; echo $NUM_CPU + - sudo apt-get install -qq libatlas-base-dev libeigen3-dev gfortran libsuitesparse-dev + + +install: + - cd .. + +# install gflags + - curl https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz | tar xvz + - cd gflags-2.0 + - ./configure --prefix=/usr/local + - make -j$NUM_CPU + - sudo make install + - cd .. + +# install glog + - curl https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz | tar xvz + - cd glog-0.3.3 + - ./configure --with-gflags=/usr/local/ + - make -j$NUM_CPU + - sudo make install + - cd .. + +# install ceres + - curl http://ceres-solver.org/ceres-solver-1.10.0.tar.gz | tar xvz + - mkdir ceres-bin + - cd ceres-bin + - cmake ../ceres-solver-1.10.0 + - make -j8 +# - make test + - sudo make install + - cd .. + + - cd bundler_sfm + + +script: + - make -j$NUM_CPU + - sudo cp bin/libANN_char.so /usr/lib From 11751bc4053793a6cda99a3191bc87522a5aeb36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrique=20Mendon=C3=A7a?= Date: Wed, 29 Apr 2015 17:41:39 +1000 Subject: [PATCH 2/3] downgrade to ceres 1.9 --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index d95db7c..3a052a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,12 @@ language: cpp before_install: - - export NUM_CPU="`grep processor /proc/cpuinfo | wc -l`"; echo $NUM_CPU + - export NUM_CPU=3 - sudo apt-get install -qq libatlas-base-dev libeigen3-dev gfortran libsuitesparse-dev install: - - cd .. + - mkdir thirdparty && cd thirdparty # install gflags - curl https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz | tar xvz @@ -25,16 +25,16 @@ install: - cd .. # install ceres - - curl http://ceres-solver.org/ceres-solver-1.10.0.tar.gz | tar xvz + - curl http://ceres-solver.org/ceres-solver-1.9.0.tar.gz | tar xvz - mkdir ceres-bin - cd ceres-bin - - cmake ../ceres-solver-1.10.0 - - make -j8 + - cmake ../ceres-solver-1.9.0 + - make -j$NUM_CPU # - make test - sudo make install - cd .. - - cd bundler_sfm + - cd .. script: From 4c4eab3b8a3ddcf1e9189f55c918e0aeda9bc3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrique=20Mendon=C3=A7a?= Date: Wed, 29 Apr 2015 17:47:38 +1000 Subject: [PATCH 3/3] remove gflags --- .travis.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3a052a7..7075c5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,14 +8,6 @@ before_install: install: - mkdir thirdparty && cd thirdparty -# install gflags - - curl https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz | tar xvz - - cd gflags-2.0 - - ./configure --prefix=/usr/local - - make -j$NUM_CPU - - sudo make install - - cd .. - # install glog - curl https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz | tar xvz - cd glog-0.3.3 @@ -26,11 +18,9 @@ install: # install ceres - curl http://ceres-solver.org/ceres-solver-1.9.0.tar.gz | tar xvz - - mkdir ceres-bin - - cd ceres-bin + - mkdir ceres-bin && cd ceres-bin - cmake ../ceres-solver-1.9.0 - make -j$NUM_CPU -# - make test - sudo make install - cd ..