config-linux-gcc.py 2.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
import os, sys

##----------------------------------------------------------------##
## This file describes required and optional arguments to ALTA    ##
## compilation. If you want to manualy tune the use of an already ##
## present library, uncomment the according lines.                ##
##----------------------------------------------------------------##


## Compilators build flags
##
CXX            = 'g++'
13
CCFLAGS        = ['-g', '-Wall', '-m64']
14 15 16
LINKFLAGS      = []


17 18 19 20 21 22 23
## ALTA internal flags
##
CORE_LIB       = ['rt', 'dl']
SOFT_LIB       = ['core', 'rt', 'dl']
PLUGIN_LIB     = ['core']


24 25
## OpenMP flags
##
26 27
OPENMP_FLAG  = ['-fopenmp']
OPENMP_LIB   = ['gomp']
28 29 30 31 32


## OpenEXR library
##
OPENEXR_INC    = ['/usr/include/OpenEXR']
33
OPENEXR_DIR    = ['/usr/lib/x86_64_linux-gnu']
34 35 36
OPENEXR_LIB    = ['Half', 'IlmImf', 'IlmThread']


37 38 39 40 41 42 43
## FLANN library
##
FLANN_INC    = ['/usr/include/flann']
FLANN_DIR    = ['/usr/lib/x86_64_linux-gnu']
FLANN_LIB    = ['flann']


44 45 46 47 48 49
## QUADPROG library
##
## You have to specify the directory of the QuadProg library
##
QUADPROG_INC      = ['#external/quadprog++']
QUADPROG_DIR      = ['#external/build/lib']
50
QUADPROG_LIB      = ['quadprog++']
51 52 53 54 55 56 57 58 59


## CERES library
##
## You have to specify both the directory of the CERES library
## and the glog library
##
CERES_INC      = ['#external/build/include']
CERES_DIR      = ['#external/build/lib']
60
CERES_LIB      = ['ceres', 'miniglog']
61
CERES_OPT_LIB  = ['gomp', 'lapack', 'blas', 'amd', 'camd', 'ccolamd', 'colamd', 'cholmod', 'cxsparse']
62 63 64 65 66 67 68 69


## NlOpt library
##
## You have to specify the directory of the NlOpt library
##
NLOPT_INC      = ['#external/build/include']
NLOPT_DIR      = ['#external/build/lib']
70 71
NLOPT_LIB      = ['nlopt']
NLOPT_OPT_LIB  = []
72 73 74 75 76 77 78 79


## coin IpOpt library
##
## You have to specify the directory of the IpOpt library
##
IPOPT_INC      = ['#external/build/include']
IPOPT_DIR      = ['#external/build/lib']
80 81
IPOPT_LIB      = ['ipopt']
IPOPT_OPT_LIB  = []
82 83 84 85


## MATLAB library and Engine
##
86 87
MATLAB_INC  = ['']
MATLAB_DIR  = ['']
88
MATLAB_LIB  = ['eng', 'mex','mat']