Skip to content

Latest commit

 

History

History
88 lines (55 loc) · 2.11 KB

INSTALL.md

File metadata and controls

88 lines (55 loc) · 2.11 KB

Overview

pythonOCC is a python library whose purpose is to provide 3D modeling features. It's intended to developers who aim at developing a complete CAD/PLM application, and to engineers who want to have a total control over the data during complex design activities.

About this document

This file explains how to build pythonocc-core from source on Windows, Linux or MacOSX platforms.

Requirements

pythonOCC needs the following libraries or programs to be installed before you can compile/use it :

Important: the OCE version has to match the pythonocc-core version, which is currently 0.18.x

Create a local copy of the repository

git clone git://github.com/tpaviot/pythonocc-core.git

pythonocc-core compilation

cd pythonocc-core
mkdir cmake-build
cd cmake-build

The configuration steps uses cmake:

cmake ..

By default, cmake looks for oce include headers in /usr/local/include/oce and libraries in /usr/local/include/lib. If these paths don't match your installation, you have to set OCE_INCLUDE_PATH and OCE_LIB_PATH:

cmake -DOCE_INCLUDE_PATH=/your_oce_headers -DOCE_LIB_PATH=/your_lib_dir ..

And launch the build process

make

If you have many cpus, you can increase the compilation speed with:

make -j$ncpus

According to your machine/os/ncpus, the total compilation time shold be between 5 to 15 minutes.

Then

make install

You may require admin privileges to install

sudo make install

test

In order to check that everything is ok, run the pythonocc unittest suite:

cd ../test
python run_tests.py

You can also run the examples avalaible in the pythonocc-core/examples directory.