-
Notifications
You must be signed in to change notification settings - Fork 7
/
BUILD_EVERYTHING_NICK.sh
executable file
·155 lines (128 loc) · 4.04 KB
/
BUILD_EVERYTHING_NICK.sh
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#!/bin/sh
rootDir=`pwd`
boost_root=/usr/local/include/boost-1_36
boost_stage=/usr/local/lib
boost_lib_ext=dylib
boost_gxx=xgcc40
tinyXML_root=${rootDir}/tinyxmldll
JGTL_include=${rootDir}/JGTL/include
ode_root=/usr/local
SFML_root=/usr/local/lib
SFML_lib=/usr/local/include/SFML
echo Checking if nac93 is host name
if [ `hostname` = "nac93" ]
then
echo host=nac93
echo Setting boost_root
boost_root=/usr/local/include/boost
# boost_root=~/programs/boost_1_51_0
# boost_root=/opt/cus/boost/boost-1.36/include/boost-1_36
# boost_stage=~/programs/boost_1_51_0/stage/lib
boost_stage=/usr/local/lib
# boost_stage=/opt/cus/boost/boost-1.36/lib
boost_lib_ext=so #?
boost_gxx=gcc41 #?
echo Setting ode_root to /mnt/home/beckma24
ode_root=/mnt/home/jclune/ode/ode-0.10.1
# echo Setting tinyXML_root to /mnt/home/jclune/hyperneat/hyperneat_libs
# tinyXML_root=/mnt/home/jclune/hyperneat/hyperneat_libs
# echo Setting JGTL path
# JGTL_include=/mnt/home/jclune/hyperneat/hyperneat_libs/JGTL/include
echo Using Intel compiler
# module unload hpc-defaults; module load sgicluster
# CXX=/opt/intel/cce/10.0.025/bin/icpc
else
echo Not using Brody. Using local boost_root
fi
echo Building required packages
echo
echo ${tinyXML_root}/out/libtinyxmldll.${boost_lib_ext}
# build TinyXML
if test -e ${tinyXML_root}/out/libtinyxmldll.${boost_lib_ext}
then
echo TinyXML exists. Skipping
echo
else
echo Building TinyXML
cd ${rootDir}
mkdir zlib/build/cygwin_debug
mkdir zlib/build/cygwin_release
cd zlib
ccmake .
make
cd ..
mkdir tinyxmldll/build/cygwin_debug
mkdir tinyxmldll/build/cygwin_release
cd tinyxmldll
ccmake .
make
cd ${rootDir}
echo Finished making TinyXML
echo
fi
# build Boost
#if test -e ${boost_stage}/libboost_filesystem-gcc41-d-1_51.a &&
# test -e ${boost_stage}/libboost_system-gcc41-d-1_51.a &&
# test -e ${boost_stage}/libboost_thread-il100-mt-1_51.so.1.51.0
if test -e ${boost_stage}/libboost_filesystem.a &&
test -e ${boost_stage}/libboost_system.a &&
test -e ${boost_stage}/libboost_thread.a
#
#if test -e ${boost_stage}/libboost_thread-${boost_gxx}-mt.${boost_lib_ext} #&&
# test -e ${boost_stage}/libboost_system-${boost_gxx}-mt.${boost_lib_ext} &&
then
echo Boost exists. Skipping
echo
else
echo Boost does not exist. Exitting.
exit
# echo Building Boost
# cd boost_1_36_0
# ./configure --prefix=`pwd`
# make -j
# make install
# cd ${rootDir}
# echo Finished making Boost
# echo
fi
# build ODE
if [ `hostname` = "nac93" ]
then
echo Building \for shapes project, so ODE not required. Skipping check.
echo
else
if test -e ${ode_root}/lib/libode.a
then
echo ODE exists. Skipping
echo
else
echo ODE does not exist. Exitting.
exit
fi
# echo Building ODE
# cd ode-0.10.1
# ./configure --prefix=`pwd` --enable-double-precision --with-drawstuff=none --enable-demos=no --with-trimesh=gimpact --enable-malloc #--enable-ou does not work
# make
# make install-exec
# cd ${rootDir}
# echo Finished making ODE
# echo
fi
# build HyperNEAT
if test -e ${rootDir}/HyperNEAT/out/Hypercube_NEAT
#if test -e ${rootDir}/out/Hypercube_NEAT
then
echo Hypercube_NEAT exists. Skipping
echo
else
echo Building HyperNEAT
cd ${rootDir}
cd HyperNEAT
# rm -rf CMakeFiles CMakeCache.txt cmake_install.cmake
cmake .
cmake -DCMAKE_INSTALL_PREFIX=${rootDir}/out -DJGTL_INCLUDE=${JGTL_include} -DBOOST_ROOT=${boost_root} -DBOOST_STAGE:string=${boost_stage} -DBUILD_PYTHON:bool=OFF -DEXECUTABLE_OUTPUT_PATH=${rootDir}/out -DJGTL_INCLUDE=${JGTL_include} -DLIBRARY_OUTPUT_PATH:string=${rootDir}/hyperneatLibs -DTINYXMLDLL_INCLUDE=${tinyXML_root}/include -DTINYXMLDLL_LIB=${tinyXML_root}/out -DUSE_GUI=OFF -DCMAKE_COMPILER_IS_GNUCXX:string=/opt/intel/cce/10.0.025/bin/icpc -DBUILD_MPI:bool=OFF -SFML_INCLUDE=${SFML_root} -SFML_LIB=${SFML_lib}
make #--debug=v
cd ${rootDir}
echo Finished making Hypercube_NEAT
echo
fi