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).

  1. Launch Ubuntu Software Center, select Edit, then Software Sources from the drop-down menu, and add the universe and Source code sofware sources.
  2. 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).
  3. Install the necessary libraries with the following commands in the terminal window:
    1. sudo apt-get update
    2. sudo apt-get install g++
    3. sudo apt-get install libwxgtk2.8-dev
    4. sudo apt-get install mesa-common-dev
    5. sudo apt-get install libglu1-mesa-dev
    6. sudo apt-get install python-tk
  4. 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).
  5. In the text terminal, unpack the downloaded CHomP source code enter the CHomP subdirectory, and compile the code:
    1. gunzip Downloads/chomp-full.tar.gz
    2. tar xf Downloads/chomp-full.tar
    3. rm -f Downloads/chomp-full.tar
    4. cd chomp
    5. make target=wx
  6. Confirm that everything is OK by running the following programs:
    1. bin/homcubes
    2. bin/showcubes
    3. python python/examples.py
  7. Enjoy!