Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
alta
alta
Commits
8eecf7c7
Commit
8eecf7c7
authored
Oct 11, 2013
by
Laurent Belcour
Browse files
Full build of ceres from scons
parent
1316381c
Changes
1
Hide whitespace changes
Inline
Side-by-side
external/obtain_ceres.py
View file @
8eecf7c7
...
...
@@ -6,11 +6,16 @@ import shutil
# Download GLOG
obtain
.
obtain
(
'GLOG v0.3.3'
,
'glog-0.3.3'
,
'http://google-glog.googlecode.com/files/glog-0.3.3.tar.gz'
,
'glog-0.3.3.tar.gz'
)
if
os
.
name
==
'nt'
:
print
'<<WARNING>> no automatic installation for this package'
if
not
os
.
path
.
exists
(
'.'
+
os
.
sep
+
'build'
+
os
.
sep
+
'include'
+
os
.
sep
+
'glog'
):
if
os
.
name
==
'nt'
:
print
'<<WARNING>> no automatic installation for this package'
else
:
print
'<<INSTALL>> configure and build GLOG v0.3.3'
obtain
.
configure_build
(
'glog-0.3.3'
)
#end
else
:
print
'<<INSTALL>> configure and build GLOG v0.3.3'
obtain
.
configure_build
(
'glog-0.3.3'
)
print
'<<INSTALL>> GLOG already installed'
#end
# Download Eigen3
...
...
@@ -19,3 +24,18 @@ execfile('obtain_eigen.py')
# Download CERES
obtain
.
obtain
(
'CERES v1.7.0'
,
'ceres-solver-1.7.0'
,
'http://ceres-solver.googlecode.com/files/ceres-solver-1.7.0.tar.gz'
,
'ceres-solver-1.7.0.tar.gz'
)
print
'<<WARNING>> CERES installation requires CMake. You need to run it yourself'
if
not
os
.
path
.
exists
(
'.'
+
os
.
sep
+
'build'
+
os
.
sep
+
'include'
+
os
.
sep
+
'ceres'
):
if
os
.
name
==
'nt'
:
print
'<<WARNING>> no automatic installation for this package'
else
:
print
'<<INSTALL>> configure and build CERES'
os
.
chdir
(
'.'
+
os
.
sep
+
'ceres-solver-1.7.0'
)
build_dir
=
os
.
pardir
+
os
.
sep
+
'build'
+
os
.
sep
ret
=
os
.
system
(
'cmake -DGLOG_LIB='
+
build_dir
+
'lib -DGLOG_INCLUDE='
+
build_dir
+
'include -DGFLAGS=OFF -DEIGEN_INCLUDE='
+
build_dir
+
'include -DCMAKE_INSTALL_PREFIX='
+
build_dir
+
' .'
)
ret
=
os
.
system
(
'make install'
)
os
.
chdir
(
os
.
pardir
)
#end
else
:
print
'<<INSTALL>> CERES already installed'
#end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment