Commit 380692b4 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Compile CERES and install it + compile nonlinear_fitter_ceres

parent 8eecf7c7
......@@ -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
......
SConscript('core/SConscript')
#SConscript('plugins/SConscript')
SConscript('plugins/SConscript')
SConscript('softs/SConscript')
SConscript('nonlinear_fitter_ceres/SConscript')
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment