Fork me on GitHub

Installing LeoCAD - a CAD program for toy bricks

No Comments

LEGO™ rocks, sharing knowlege rocks. Sharing Lego models kick ass. To do so you can either send you LEGO™ constructions by mail or (better) use a CAD program to model your ideas digitally and upload it. I had a look around for open source tools specialized on modeling plastic toy bricks and found LeoCAD.

LeoCAD

To be perfectly honest - this tool has still its weaknesses and is not very stable but it's enough to get the job done. I first tried to install a compiled version on Ubuntu 10.4 but ended up compiling it myself. There is a very helpful guide for this. Unfortunately not all versions run without problems so currently I can recommend to use version 0.75.1 - other versions e.g. were not able to load saved files (quite a painful experience when you spent some time in creating a model). As mentioned in the compiling guide you should check if you have everything needed (e.g. OpenGL and GTK) installed before compiling:

$ sudo apt-get install libgtk2.0-dev libgl1-mesa-dev

After that you can download the source using subversion and compile it:

$ mkdir /tmp/leo_tmp
$ cd /tmp/leo_tmp
$ svn co http://svn.gerf.org/leocad/tags/leocad-0.75.1 leocad
$ cd leocad/
$ mkdir /opt/leocad-0.75.1
$ mv bin/ /opt/leocad-0.75.1/

LeoCAD needs libraries of pieces (e.g. the bricks). Download and unzip the recommended library the following way:

$ cd /opt/leocad-0.75.1
$ mkdir pieces
$ cd pieces/
$ wget http://leocad.googlecode.com/files/pieces-3506.zip
$ unzip pieces-3506.zip
$ ls -1 
pieces-3506.zip
pieces.bin
pieces.idx
sysfont.txf
textures.bin
textures.idx

Now we are ready to launch LeoCAD. You have to tell it where the pieces libraries are.

$ export LEOCAD_LIB=/opt/leocad-0.75.1/pieces/ ; /opt/leocad-0.75.1/bin/leocad

(If you use it more often you might want to create and alias for this.) LeoCAD should be now up and running - waiting for you input. I recommend to have a look at the basic tutorial to get a feeling how to work with it.


Be the first to write a comment!

Notice: Undefined variable: commenter_name in user/themes/charcoal_konrads_version/commentform.php line 10 " size="30" tabindex="1">

Notice: Undefined variable: commenter_email in user/themes/charcoal_konrads_version/commentform.php line 14 " size="30" tabindex="2">

Notice: Undefined variable: commenter_url in user/themes/charcoal_konrads_version/commentform.php line 18 " size="30" tabindex="3">

Warning: PDOStatement::execute() [pdostatement.execute]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '} t
			INNER JOIN {tag2post} tp
			ON t.id=tp.tag_id
			INNER JOIN habari_posts ' at line 2 in system/classes/databaseconnection.php line 271
Warning: Invalid argument supplied for foreach() in user/themes/charcoal_konrads_version/theme.php line 157
    Warning: Invalid argument supplied for foreach() in user/themes/charcoal_konrads_version/taglist.php line 2