Skip to content

Build Debian Packages

danheeks edited this page Mar 8, 2016 · 22 revisions

( copied from https://code.google.com/archive/p/heekscad/wikis/BuildDebianPackages.wiki )

Requirement: libarea

HeeksCAD requires libarea, this section will explain how to build and install libarea using the Debian way.

Install build dependencies

sudo apt-get install subversion build-essential debhelper cmake python-dev libboost-python-dev

Fetch sources

svn checkout http://github.com/Heeks/libarea/trunk/ libarea

cd libarea

Build packages

dpkg-buildpackage -b -us -uc

This will produces 3 packages: libarea0, libarea-dev and python-area.

Install packages

cd ..

sudo dpkg -i libarea*.deb python-area*.deb

HeeksCAD

When libarea is correctly installed, we can build HeeksCAD packages the same way.

Install build dependencies

On system released before 2013 (ie. Ubuntu 10.04 LTS, 12.04 LTS): sudo apt-get install libopencascade-visualization-dev libwxgtk2.8-dev libgtkglext1-dev python-dev

On more recent system: sudo apt-get install liboce-visualization-dev libwxgtk2.8-dev libgtkglext1-dev python-dev

Fetch sources

svn checkout http://github.com/Heeks/heekscad/trunk/ heekscad

cd heekscad

Build packages

dpkg-buildpackage -b -us -uc

This will produces 4 packages: heekscad, heekscad-dev, libheekstinyxml0 and libheekstinyxml-dev

Install run-time dependencies

If you want a fully translated version: sudo apt-get install wx2.8-i18n

Install packages

cd ..

sudo dpkg -i heeks.deb

Optional: HeeksCNC

If you want to use HeeksCNC, CAM plugin, do the following:

( I am still testing these instructions )

Fetch sources

svn checkout http://github.com/Heeks/heekscnc/trunk/ heekscnc

cd heekscnc

Build packages

dpkg-buildpackage -b -us -uc

cd ..

This will produces 1 package: heekscnc.

Install runtime dependencies

python-area

Be sure that python-area package from libarea is correctly installed.

python-ocl

Then you have to build and install Debian packages of OpenCAMlib.

git clone https://github.com/aewallin/opencamlib.git

cd opencamlib

bzr branch lp:~neomilium/opencamlib/packaging debian

dpkg-buildpackage -b -us -uc

cd ..

sudo dpkg -i python-ocl*.deb

Install packages

sudo dpkg -i heekscnc*.deb

Enjoy!

heekscad

Clone this wiki locally