View Full Version : Ubuntu 10.04 / Linuxcnc / heekscad & heekscnc -installation (steps of what I did)

06-01-2013, 01:03 PM
Just for record, steps of how I installed. These are instructions for newbie -machinists, such as me :D
- it was not plain sailing for me, in particular with Heekscnc and Heekscad.
- There are probably other ways of doing it, but these worked for me, with Linuxcnc Ubuntu, 10.04.

- Initially I tried using steps from here
UbuntuInstallation - heekscad - How to build and install HeeksCAD and related projects for Ubuntu - Free CAD based on Open CASCADE - Google Project Hosting (http://code.google.com/p/heekscad/wiki/UbuntuInstallation)
...however got all sorts of errors, in a number of places, for example,
# ----------------------- begin list of errors ---------------------------
E: Package git has no installation candidate
make: *** No rule to make target `package'. Stop.
Could not find module FindOCE.cmake or a configuration file for package

Adjust CMAKE_MODULE_PATH to find FindOCE.cmake or set OCE_DIR to the
directory containing a CMake configuration file for OCE. The file will
have one of the following names:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND
Package python-wxgtk2.8 is not installed
heekscad: error while loading shared libraries: libTKVRML.so.5: cannot open shared object file: No such file or directory
# ----------------------- begin list of end ---------------------------

However, here are steps that one did today 2013-01-06, got them working nice:

1. Install a clean Ubuntu 10.04. "LinuxCNC" -version
- had done this step before here:

2. Install Heekscad and Heekscnc - with their pre-requisities
- so we have an un-touched Ubuntu 10.04 -installation before these steps.
- all commands below are executed on command -prompt as linux "root" -user

apt-get install emacs # install my favourite editor
# install some pre-requisities:
apt-get install git-core subversion libwxbase2.8-dev cmake build-essential libopencascade-dev libwxgtk2.8-dev libgtkglext1-dev python-dev cmake libboost-python-dev

# Install some more pre-requisities:
apt-get install python-wxgtk2.8 python-wxversion

# Retrieve source -files
mkdir /mycnc
cd /mycnc
git clone --recursive git://github.com/Heeks/heekscad.git
cd /mycnc/heekscad
git clone --recursive git://github.com/Heeks/heekscnc.git
git clone --recursive git://github.com/Heeks/libarea.git
git clone --recursive git://github.com/Heeks/libactp.git
git clone --recursive https://github.com/sliptonic/opencamlib.git
git clone --recursive git://github.com/tpaviot/oce.git

# Continue still in directory
# /mycnc/heekscad
sudo apt-get -y install libftgl-dev

# OCE -installation:
cd /mycnc/heekscad/oce/
# Read instructions if you feel like it
# more INSTALL.Unix
mkdir build
cd build
cmake ..
# Give one (1) only of two commands below
# Or, alternatively
# make -j2
# to enable multiprocessed compilation and speedup the whole compilation
# process.

make install/strip

# That is OCE -installation done.

# HeeksCNC uses a number of libraries to perform various operations. Install all of them or
# only the ones you plan to use.
# Install libarea
# area.so is required for pocket operations.
cd /mycnc/heekscad/libarea/
make clean # OPTIONAL: only needed if you have previous make -attempts, otherwise, not needed
make install

# Install libactp
# actp.so is required for adaptive roughing operations.
# This may be removed from git soon thus you may want to skip it
cd /mycnc/heekscad/libactp/PythonLib
make clean # OPTIONAL: only needed if you have previous make -attempts, otherwise, not needed
make install

# Install opencamlib
# opencamlib is the replacement for pycam. It's required for zigzag operations.
cd /mycnc/heekscad/opencamlib/src
make clean # OPTIONAL: only needed if you have previous make -attempts, otherwise, not needed
cmake .
make install

# Install heekscnc:
cd /mycnc/heekscad/heekscnc/
cmake .
make package
sudo dpkg -i heekscnc_*.deb # only one .deb to install, but the filename may change

# Install heekscad:
cd /mycnc/heekscad
cmake .
make package
sudo dpkg -i heekscad*.deb #only one .deb to install, but the filename may change

# Give command:

# Let's start our newly installed heekscad / heekscnc:


By default, it seems G0 -button (Postprocess) is missing (due to a bug) from Heekscad.
# To find that missing G0 -button, change from options ---> tool icon size to smaller (eg. 16) and then larger again

# ...and the button appears on top right hand corner of toolbar:

Thanks for reading and have fun :biggrin:

Lee Roberts
06-01-2013, 10:21 PM
Thanks for sharing John !

John S
06-01-2013, 11:35 PM
Thank Christ it's that easy, somebody told me Linux was hard but you didn't have to understand it. :victorious:

07-01-2013, 10:34 AM
Commercial software is never hard, thats why you pay for it. You don't get silk purses for free just lots of enthusiasm :beer:

"Life is like a box of chocolates, you just never know what your going to get"

27-01-2013, 04:39 PM
Added couple of extra -install steps

# OPTIONAL steps ::: install inscape, blender 3D, qcad
apt-get install inkscape
apt-get install blender
apt-get install qcad

# OPTIONAL ::: install dxf2gcode
# Installation - dxf2gcode - How to install on Windows, Linux or Mac OS X - A program to convert a dxf drawing into G-Code - Google Project Hosting (http://code.google.com/p/dxf2gcode/wiki/Installation)
mkdir /mycnc/dxf2gcode
cd /mycnc/dxf2gcode/
wget http://dxf2gcode.googlecode.com/files/2010-05-04-dxf2gcode_b02_source_linux.zip
unzip 2010-05-04-dxf2gcode_b02_source_linux.zip
chmod a+x dxf2gcode_b02.py
# Try it out (now or later)
cd /mycnc/dxf2gcode/
python ./dxf2gcode_b02.py

# Overall feelings at the moment, about Ubuntu, Linuxcnc, heekscad:
- happy with the way LinuxCNC works
- happy with linux (goes without saying)
- overall, the end-to-end pipe (from an idea in head, to a 3D drawing, DXF -file, G-code generation, milling) is not working smoothly at all yet.
-- Blender 3D is very capable, however is perhaps not best suited for measurements -oriented drawings as one perhaps would like to have.
-- DXF, or STL -file import to heekscad is not working very well. STL import yes works fine, but would want to import a sketch, not an object that one can not modify.

# Feeling is, might have a brief peek at the other side, is grass greener there. (Windoze, Solidworks, etc.)

19-06-2013, 07:35 AM
Hy there.

I managed to install HeeksCAD and HeeksCNC on K/Ubuntu 12.04 and K/Ubuntu 13.04.

I did build a little script, that checks the dependencies and your system before building HeeksCAD and HeeksCNC.

Take a look at it https://www.elrippoisland.net/public/CAD_CAM/heeks.html

Kind regards,