-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBUILD_EVERYTHING.sh
executable file
·134 lines (112 loc) · 3.71 KB
/
BUILD_EVERYTHING.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
#!/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
echo Checking if Brody is host name
if [ `hostname` == "brody" ]
then
echo Setting boost_root
boost_root=/mnt/home/jclune/hyperneat/hyperneat_libs/boost_1_35_0
# boost_root=/opt/cus/boost/boost-1.36/include/boost-1_36
boost_stage=/mnt/home/jclune/hyperneat/hyperneat_libs/boost_1_35_0/boost135HyperNEATLibs
# 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
# 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_35.a &&
test -e ${boost_stage}/libboost_system-gcc41-d-1_35.a &&
test -e ${boost_stage}/libboost_thread-il100-mt-1_35.so.1.35.0
#
#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 test -e ${ode_root}/lib/libode.a
then
echo ODE exists. Skipping
echo
else
echo ODE does not exist. Exitting.
exit
# 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
then
echo Hypercube_NEAT exists. Skipping
echo
else
echo Building HyperNEAT
cd ${rootDir}
cd HyperNEAT
rm -rf CMakeFiles CMakeCache.txt cmake_install.cmake
cmake .
ccmake -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 -DDRAWSTUFF_INCLUDE:string=${rootDir}/ode-0.10.1/include -DODE_LIB:string=${ode_root}/lib -DODE_INCLUDE:string=${ode_root}/include -DWXWIDGETS_RELEASE_LIB:string=/mnt/home/jclune/hyperneat/hyperneat_libs -DCMAKE_COMPILER_IS_GNUCXX:string=/opt/intel/cce/10.0.025/bin/icpc -DBUILD_MPI:bool=OFF
make #--debug=v
cd ${rootDir}
echo Finished making Hypercube_NEAT
echo
fi