-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdependency_linux.sh
executable file
·108 lines (94 loc) · 2.9 KB
/
dependency_linux.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
#!/bin/bash
set -e
sudo add-apt-repository universe
sudo apt -y update
sudo apt -y install subversion
sudo apt -y install curl zip unzip tar
sudo apt -y install cmake
sudo apt -y install g++
sudo apt -y install autoconf autoconf-archive
sudo apt -y install libtool
sudo apt -y install libpthread-stubs0-dev
sudo apt -y install texinfo
sudo apt -y install ccache
sudo apt -y install wget pkg-config
git pull
cd ThirdParties
export ROOT=`pwd`
export CFLAGS="-std=c++17"
export CXX=`which g++`
echo
echo "############################################################"
echo "## ##"
echo "## CHECKOUT BLENDER SVN DEPENDENCIES ##"
echo "## ##"
echo "############################################################"
echo
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64/tbb/
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64/openvdb/
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64/gmp/
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64/blosc/
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64/openexr/
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64/boost
echo
echo "############################################################"
echo "## ##"
echo "## INSTALL CGAL and BOOST with VCPKG ##"
echo "## ##"
echo "############################################################"
echo
cd vcpkg
if [ -e vcpkg ]
then
echo "Vcpkg already built."
else
./bootstrap-vcpkg.sh -disableMetrics
fi
./vcpkg update
./vcpkg install cgal:x64-linux
./vcpkg install boost-uuid:x64-linux
./vcpkg install boost-iostreams:x64-linux
./vcpkg install boost-locale:x64-linux
./vcpkg install boost-wave:x64-linux
cd ..
mkdir python
cd python
if [ -e Python-3.7.9 ]
then
echo "Python 3.7 already installed"
else
wget https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tgz
tar -zxvf Python-3.7.9.tgz
cd Python-3.7.9
./configure --enable-optimizations --prefix=`pwd`/../3.7m
make -j8
make install
cd ..
fi
if [ -e Python-3.8.7 ]
then
echo "Python 3.8 already installed"
else
wget https://www.python.org/ftp/python/3.8.7/Python-3.8.7.tgz
tar -zxvf Python-3.8.7.tgz
cd Python-3.8.7
./configure --enable-optimizations --prefix=`pwd`/../3.8
make -j8
make install
cd ..
fi
if [ -e Python-3.9.1 ]
then
echo "Python 3.9 already installed"
else
wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz
tar -zxvf Python-3.9.1.tgz
cd Python-3.9.1
./configure --enable-optimizations --prefix=`pwd`/../3.9
make -j8
make install
cd ..
fi
echo
echo DEPENDENCIES SUCCESSFULLY INSTALLED
echo You can now run build_project.bat