forked from jmwright/pythonocc_oce_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ubuntu_14_04_OCE_PythonOCC_Setup.sh
executable file
·34 lines (24 loc) · 1.14 KB
/
Ubuntu_14_04_OCE_PythonOCC_Setup.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
#!/bin/sh
#This script needs to be run with superuser priveleges
#Set up our variables
OCETAG="OCE-0.16" #This and the PythonOCC version must match
PYTHONOCCTAG="0.16.0"
OCEMAKEPATH="oce/build"
POCCMAKEPATH="pythonocc-core/cmake-build"
#Attempt to install all the pre-requisites
apt-get install -fy git cmake libx11-dev mesa-common-dev freeglut3-dev libfreetype6-dev libc6-dev libstdc++6 libstdc++-4.8-dev build-essential gcc g++ libftgl-dev xorg-dev tcl-dev tk-dev python-dev swig python-wxgtk2.8 python-qt4 python-qt4-gl python-pyside python-sympy
git clone --branch $OCETAG https://github.com/tpaviot/oce.git
mkdir $OCEMAKEPATH && cd $OCEMAKEPATH
cmake ..
make '-j'$(nproc)
make install/strip
python -c "import wx"
python -c "from PyQt4 import QtGui, QtCore, QtOpenGL"
python -c "from PySide import QtGui, QtCore, QtOpenGL"
cd ../../
#Clone PythonOCC so we can start building the components we need
git clone --branch $PYTHONOCCTAG https://github.com/tpaviot/pythonocc-core.git
mkdir $POCCMAKEPATH && cd $POCCMAKEPATH
#Build the geom extension
cmake -DOCE_INCLUDE_PATH=/usr/local/include/oce -DOCE_LIB_PATH=/usr/local/lib ..
make '-j'$(nproc) && make install