My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
UbuntuBuild  
How to build for Ubuntu
Featured
Updated Dec 31, 2010 by mpictor@gmail.com

The latest build instructions (geared towards Ubuntu 10.04) are in the HeeksCAD wiki

Another page, explaining how to build with the older Makefile system, is here


Old instructions

First build HeeksCAD for Ubuntu. ( see http://code.google.com/p/heekscad/wiki/CompilingForUbuntu )

go to System->Administration->"Synaptic Package Manager"

get python2.5-dev

Run RapidSVN ( menu Applications->Programming->RapidSVN ) On the RapidSVN menu, choose Repository->Chekcout In the URL box put: http://heekscnc.googlecode.com/svn/trunk/ In the "Destination Directory" box, put: /home/dan/Desktop/HeeksCAD/HeeksCNC ( but replace "dan" with your username ) Click "OK". This should get all the source code files you need.

edit /home/dan/.bashrc ( you'll have to choose "Show Hidden Files" on the View menu to see it ) add

export HEEKSCADPATH=/home/dan/Desktop/HeeksCAD

as the last line

On the Ubuntu menu, click Applications->Accessories->Terminal. The "Terminal" window appears, with some text like "dan@dan-desktop:~$" in it.

Type: cd Desktop/HeeksCAD/HeeksCNC/src

( if you've already built HeeksCNC, you should type: "make clean" now because my makefile does not always know which files are out of date )

Then type: make

If it builds OK, the last line should be something like: gcc -shared -Wl,-soname,libheekscnc.so.0 -o ../libheekscnc.so.0.5.1 Construction.o DropCutter.o Finite.o HeeksCNC.o HeeksColor.o HeeksObj.o Interface.o kurve.o LinesAndArcs.o Matrix.o ObjList.o offset.o OpMove3D.o OutputCanvas.o Program.o ProgramCanvas.o PropertyCheck.o PropertyChoice.o PropertyColor.o PropertyDouble.o PropertyInt.o PropertyList.o PropertyString.o PythonStuff.o strconv.o LeftAndRight.o MarkedObject.o ToolImage.o tinyxml.o tinystr.o tinyxmlerror.o tinyxmlparser.o -lstdc++ -lGLU -lGL -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lwx_gtk2u_gl-2.8 -lpython2.5 dan@dan-laptop:~/Desktop/HeeksCAD/HeeksCNC/src$

You can then run HeeksCAD by typing ../../HeeksCAD or: On the Ubuntu menu, go to Places->Desktop Then double click on HeeksCAD folder to open it. You will see HeeksCAD with a blue diamond icon. Double click on the blue diamond icon to run HeeksCAD.

On the menu, do File->Plugins You will need to add a new plugin.

Name: HeeksCNC

Filepath: browse for the HeeksCNC.so.0.5.1, ( you have to click "..." to browse ) It should be at /usr/lib/heekscnc/libheekscnc.so.0.5.1

Then close HeeksCAD and run it again. ( this will have made an entry in the configuration file /home/dan/.HeeksCAD, you will have to "Show Hidden Files" to see it )

You may also need to build kurve.so, if you want to use the Python script to do profile operations. To do this, from terminal type cd Desktop/HeeksCAD/HeeksCNC/kurve and then type: make This will make kurve.so file in the HeeksCNC folder.

libarea

If you want to use pocket operations you will need to build area.so, from this project http://code.google.com/p/libarea/

1) Run RapidSVN, now using the address http://libarea.googlecode.com/svn/trunk/ and /home/user/Desktop/libarea (and of course replace user with your user name)

2) When done, get a terminal and run 'cd Desktop/libarea' (You should now have a prompt like "something@something libarea$")

3) Run 'make'. It should give no errors and you should have area.so now in the directory, check if you see it if you run 'ls'.

4) Copy it to the HeeksCNC directory, you can do that by running 'cp area.so ../HeeksCAD/HeeksCNC/'

libactp

If you want to use adaptive roughing operations you will need to build actp.so, from this project http://code.google.com/p/libactp/

1) Run RapidSVN, now using the address http://libactp.googlecode.com/svn/trunk/ and /home/user/Desktop/libactp (and of course replace user with your user name)

2) When done, get a terminal and run 'cd Desktop/libactp/PythonLib' (You should now have a prompt like "something@something PythonLib$")

3) Run 'make'. It should give no errors and you should have actp.so now in the directory, check if you see it if you run 'ls'.

4) As of now, HeeksCNC actually searches actp.so in ../../libactp/PythonLib too, so it works without copying it anywhere. To not cause any confusion, it is good to not copy it anywhere. IF you used different directory structure than the one specified in these howtos, copy actp.so to the HeeksCNC directory.

If you are having trouble, come and ask some real people on the IRC channel #cam on FreeNode, quite a few people there have built it, for example: archivist, celeron55, crotchet1, DanielFalck, fenn, Sliptonic, or email me danheeks@gmail.com

the #cam IRC channel is logged at http://camlog.archivist.info/

Comment by fennf...@gmail.com, Mar 1, 2009

also note that you can't just type the filename in the plugin selector, you have to click "..." and click on HeeksCNC.so.

Comment by jbra...@mts.net, Mar 25, 2009

The edit to .bashrc has no effect until user has logged out or caused the file to be called in some other way. Just a small nit-pick. I'm following this project with much interest.

Comment by project member danhe...@gmail.com, Mar 26, 2009

The edit to .bashrc: Yes, I'd noticed that it didn't seem to work always. Is there some way you can cause the file to be called? Do you just open a terminal and type ./.bashrc ?

Comment by jbra...@mts.net, Mar 26, 2009

type source ~/.bashrc Sorry, think I caused my own problem by not following the instructions verbatim. .bashrc is called whenever a terminal is opened. I was cheating by using the nano editor inside a terminal. Carry on.

Comment by anubis...@gmail.com, May 4, 2009

is it possible to use pycam functionalities with linux?

Comment by anubis...@gmail.com, May 4, 2009

i'm asking because when i go to build it i receive:

anubis@suse-laptop:~/src/obs/home:anubisg1/python-CAM/pycam-0.1.8> python setup.py build Traceback (most recent call last):

File "setup.py", line 2, in <module>
import py2exe
ImportError?: No module named py2exe

so i checked py2exe but looks to be "windows-only"

Comment by project member danhe...@gmail.com, May 10, 2009

yes, pycam should work ok in Linux

Comment by casai...@gmail.com, Oct 29, 2009

anubisg11, I have pycam working on Linux Ubuntu, I did build it. But heekscad/cnc seems much better :-)

Comment by casai...@gmail.com, Nov 1, 2009

Build and use/copy Libactp

On my system, I got the file here: PythonLib?/.libs/actp.so , so, to copy it I must use that path.

Comment by alex.the...@hotmail.com, Mar 2, 2010

Downloaded and installed heekscad no problem on ubuntu 9.10 amd64. When I try same with heekscnc get error message: alex@alex-desktop:~/heeks/src$ make make: No rule to make target home/alex/heeks/interface/PropertyString.h', needed by HeeksCNC.o'. Stop. alex@alex-desktop:~/heeks/src$

any suggestions on what may be wrong??

Comment by project member danhe...@gmail.com, Mar 2, 2010

You need to set HEEKSCADPATH environment variable to where the HeeksCAD source folder is. For me it is /home/dan/Desktop/HeeksCAD

Comment by alex.the...@hotmail.com, Mar 2, 2010

Thanks, spot on: I had wrongly assumed that for the cnc bit it should point to the cnc sources! makes ok now, one error on the make install: cp ../funcs.py /usr/local/lib/heekscnc/ cp: cannot stat `../funcs.py': No such file or directory make: install? Error 1 Have I overlooked a dependency somewhere?

Many thanks for your help.


Sign in to add a comment
Powered by Google Project Hosting