1. 在官网下载安装包
2. 准备工作
sudo apt-get install software-properties-common
sudo apt-get install libtool autoconf automake gfortran gdebi
sudo apt-get install gcc-multilib libxi-dev libxmu-dev libxmu-headers
sudo apt-get install libx11-dev mesa-common-dev libglu1-mesa-dev
sudo apt-get install libfontconfig1-dev
3. 安装Freetype
sudo apt-get install libfreetype6 libfreetype6-dev
4. 安装Tcl/TK
sudo apt-get install tcl tcl-dev tk tk-dev
3. 安装
tar -xvf opencascade.tar.gz
cd opencascade
mkdir build
cd build
ccmake ../
cmake ../
sudo make install
cd ..
bash env.sh