The CHomP Software
Compilation in Ubuntu
This page contains step-by-step instructions
on how to compile the CHomP library
from the sources at a fresh installation of Ubuntu 12.04 LTS,
as of May 4, 2012.
In order to develop and test this procedure, I launched Ubuntu
from a USB stick on my laptop PC and did all the steps listed below
(see some remarks on fixing a faulty USB stick installation
here).
- Launch Ubuntu Software Center, select Edit,
then Software Sources from the drop-down menu,
and add the universe and Source code sofware sources.
- Start the text terminal (it is a good idea to add it to the bar
with programs on the desktop for instant access in the future).
- Install the necessary libraries with the following commands
in the terminal window:
- sudo apt-get update
- sudo apt-get install g++
- sudo apt-get install libwxgtk2.8-dev
- sudo apt-get install mesa-common-dev
- sudo apt-get install libglu1-mesa-dev
- sudo apt-get install python-tk
- Download the file chomp-full.tar.gz from the CHomP website
using a Web browser (in the default configuration of the system,
it is saved in the Downloads subdirectory immediately
once you click the link).
- In the text terminal, unpack the downloaded CHomP source code
enter the CHomP subdirectory, and compile the code:
- gunzip Downloads/chomp-full.tar.gz
- tar xf Downloads/chomp-full.tar
- rm -f Downloads/chomp-full.tar
- cd chomp
- make target=wx
- Confirm that everything is OK by running the following programs:
- bin/homcubes
- bin/showcubes
- python python/examples.py
- Enjoy!