Compiling LeoCAD on Debian or Ubuntu

Though LeoCAD could be availlable in Debian soon, I wanted to install it now.

Compiling LeoCAD on Debian based systems as Ubuntu is easy as described on The official Wiki page. But there are some easy steps missing.

Lets. start: Open a shell window (xterm, Terminal, rxvt).

At first we need some software and libraries:

sudo apt-get install subversion libgtk2.0-dev libgl1-mesa-dev libjpeg-dev libpng-dev zlib1g-dev

Now, we can download leocad directly from the source tree. First we want to find out, which versions we can find:

svn ls svn ls http://svn.leocad.org/tags

Pick the latest tag. In our case it is “leocad-0.76”. We download it using

svn co http://svn.leocad.org/tags/leocad-0.76

After that we can compile it with
make config && make

and install it with

sudo make install

After that you need to download the tile set from Google code. Assuming it is named “pieces-5243b.zip” and located in your home folder at ~/Download, we install it using the commands:

sudo mkdir -p /usr/local/share/leocad
cd /usr/local/share/leocad
sudo unzip ~/Download/pieces-5243b.zip

Now you are ready to run leocad:
leocad

Schlagworte