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
380692b4
Commit
380692b4
authored
Oct 11, 2013
by
Laurent Belcour
Browse files
Compile CERES and install it + compile nonlinear_fitter_ceres
parent
8eecf7c7
Changes
4
Hide whitespace changes
Inline
Side-by-side
external/obtain_ceres.py
View file @
380692b4
...
...
@@ -32,7 +32,12 @@ if not os.path.exists('.' + os.sep + 'build' + os.sep + 'include' + os.sep + 'ce
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
+
' .'
)
libname
=
''
if
os
.
name
==
'posix'
:
libname
=
'libglog.a'
else
:
libname
=
'glog.lib'
ret
=
os
.
system
(
'cmake -DGLOG_LIB='
+
build_dir
+
'lib'
+
os
.
sep
+
libname
+
' -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
...
...
sources/SConscript
View file @
380692b4
SConscript
(
'core/SConscript'
)
#
SConscript('plugins/SConscript')
SConscript
(
'plugins/SConscript'
)
SConscript
(
'softs/SConscript'
)
sources/plugins/SConscript
0 → 100644
View file @
380692b4
SConscript
(
'nonlinear_fitter_ceres/SConscript'
)
sources/plugins/nonlinear_fitter_ceres/SConscript
0 → 100644
View file @
380692b4
env
=
Environment
()
env
.
Append
(
CPPPATH
=
[
'../../../external/build/include'
,
'../../'
])
env
.
Append
(
LIBPATH
=
'../../../external/build/lib'
)
sources
=
[
'fitter.cpp'
]
libs
=
[
'-lceres'
]
env
.
SharedLibrary
(
'../../build/nonlinear_fitter_ceres'
,
sources
,
LIBS
=
libs
)
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