-
Notifications
You must be signed in to change notification settings - Fork 3
/
compile-params.in
94 lines (80 loc) · 4.59 KB
/
compile-params.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/sh
##########################################################################################################
### MAIN COMPILATION PARAMETERS
##########################################################################################################
# -- git clone directory
# -- the directory created by the command: 'cd ~ && git clone https://github.com/calaba/octave-3.8.2-enable-64-ubuntu-14.04.git' wherever you run it
export octave64_gitroot=${HOME}/octave-3.8.2-enable-64-ubuntu-14.04
# -- installation directory for libraries needed for octave compilation & runtime in 64-bit indexing mode
# use /usr/local as standard installation dir for libs ...
export prefix64=/usr/local
# or use your own directory to get libs compiled and installed to -> i.e. x64-libs sub-directory
#export prefix64=${octave64_gitroot}/x64-libs
# SuiteSparse version for compilation - currently only 4.2.1 and 4.4.1 (latest) supported
# In SuiteSparse 4.3.x there was a interface API change causing octave compilation error in CHOLMOD and thus also COLAMD and CCOLAMD
# Octave can be compiled with 4.4.1 and testing goes well (only 54 SKIPPED tests, 0 FAILED) but cannot leverage those libs
# export octave64_SS_version=4.2.1
# export octave64_SS_version=4.4.1
export octave64_SS_version=4.2.1
# to enable testing of compiled libraries set following parameter to:
# export octave64_libs_compilation_test=Y
export octave64_libs_compilation_test=N
# to enable testing of compiled octave set following parameter to:
# export octave64_compilation_test=Y
export octave64_compilation_test=Y
# -- other directories for automated compilation
export JAVA_HOME=/usr/lib/jvm/default-java
##########################################################################################################
### MAIN RUNTIME PARAMETERS
##########################################################################################################
# -- directories for loading of dynamic libraries
# -- might need to be added to user prfofile
# -- also maybe: have your system administrator add above DIR to `/etc/ld.so.conf'
export LD_LIBRARY_PATH=${prefix64}/lib
export LD_RUN_PATH=${prefix64}/lib
##########################################################################################################
### ADDITIONAL COMPILATION PARAMETERS
##########################################################################################################
### octave64_config_extra
### Full details - see: https://www.gnu.org/software/octave/doc/interpreter/Running-Configure-and-Make.html#Running-Configure-and-Make
### Others options than those listed below - use './configure --help' to explore
export octave64_config_extra=""
###
# --
# -- Use: --enable-bounds-check to enable consistency checks for indexing operators
# --
# export octave64_config_extra="${octave64_config_extra} --enable-bounds-check"
# --
# -- Use: --disable-docs to skip compilation of documentation (can speed-up the compilation, you do not have to install texlive)
# --
# export octave64_config_extra="${octave64_config_extra} --disable-docs"
# --
# -- Use: --enable-jit - (EXPERIMENTAL) enable Just-In-Time compilation of Octave inner loops
# --
# export octave64_config_extra="${octave64_config_extra} --enable-jit"
# --
# -- Use: --enable-openmp - (EXPERIMENTAL) use OpenMP SMP multi-threading
# --
# export octave64_config_extra="${octave64_config_extra} --enable-openmp"
# --
# -- Use: --enable-link-all-dependencies - link Octave and its shared libraries with all dependencies, not just those immediately referenced (should not be needed on most systems)
# --
# export octave64_config_extra="${octave64_config_extra} --enable-link-all-dependencies"
# --
##########################################################################################################
### DERRIVED COMPILATION PARAMETERS - DO NOT CHANGE !!! Unless you know what you are doing.
##########################################################################################################
export octave64src=${octave64_gitroot}/octave-3.8.2
export libs64src_archives=${octave64_gitroot}/x64-libs/_archives
export libs64src_mods=${octave64_gitroot}/x64-libs/_mods
export libs64src=${octave64_gitroot}/x64-libs/src
export libs64="-L${prefix64}/lib"
##########################################################################################################
### DEBUGGING PARAMETERS
##########################################################################################################
# to enable debugging of compilation process - extra log outpu - set:
# DEBUG_COMPILE=Y
DEBUG_COMPILE=
if [ "${DEBUG_COMPILE}" = "Y" ] ; then
. ./debug_show_env.sh
fi