Commit 6416e545 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Adding automatic compilation of NlOpt

parent 93395177
......@@ -2,6 +2,11 @@ import os
env = Environment()
##
# NlOpt dependancies
##
execfile('obtain_nlopt.py')
##
# CERES dependancies
##
......
import obtain
import os
import sys
import shutil
# Download NlOpt
obtain.obtain('NlOpt', 'nlopt-2.4.1', 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.1.tar.gz', 'nlopt-2.4.1.tqr.gz')
if not os.path.exists('.' + os.sep + 'build' + os.sep + 'include' + os.sep + 'nlopt.hpp'):
if os.name == 'nt':
print '<<WARNING>> no automatic installation for this package'
else:
print '<<INSTALL>> configure and build Nlopt v2.4.1'
obtain.configure_build('nlopt-2.4.1')
#end
else:
print '<<INSTALL>> NlOpt already installed'
#end
......@@ -5,6 +5,7 @@ SConscript('data_interpolant/SConscript')
# Building fitters
SConscript('nonlinear_fitter_ceres/SConscript')
SConscript('nonlinear_fitter_nlopt/SConscript')
SConscript('nonlinear_fitter_eigen/SConscript')
SConscript('rational_fitter_eigen/SConscript')
SConscript('rational_fitter_quadprog/SConscript')
......
env = Environment()
env.Append(CPPPATH = ['../../../external/build/include', '../../'])
env.Append(LIBPATH = ['../../../external/build/lib', '../../build'])
sources = ['fitter.cpp']
libs = ['-lnlopt', '-lcore']
env.SharedLibrary('../../build/nonlinear_fitter_nlopt', sources, LIBS=libs)
Markdown is supported
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