Documentation Contents Compiling Contents

These instructions explain how to build a single architecture version for a single major release of OS X. Instructions on how to build a Universal binary for PPC/Intel are more complicated, but will be documented shortly.

Compile CCP4 libs with gcc/g++

Install Python2.7

Install some Python modules we need. (Some of these are required only by ccp4i version 2, but I build them in anyway).

Install Qt 4.5

Install PyQt

Compile MG

The setting of environment variables on command line assumes Bourne type shell. You will need to do some setenv commands for csh type shells.

Compile Pixie

Compile PISA

PISA will have been built when CCP4 was built (it is part of it), unless you did make onlylib.

But we are still having to make some patches which we hope to agree with the PISA author Eugene Krissinel.

Download the patch: ccp4mg-2.5.1-pisa-patch.tar.gz

cd ccp4_dir/src/pisa/pisa
tar zxvf path to/ccp4mg-2.5.1-pisa-patch.tar.gz
rm -f pisa_interface.o pisa_view.o
cp pisa ccp4mg_dirccp4_suite/bin
cp -a sbase ccp4mg_dirccp4_suite/share

Do not do this if you plan to use this copy of PISA in any other way from with CCP4MG. Make a separate copy in that instance.

Install monomer library

cp -Rp ccp4_dir/lib/data/monomers/ ccp4mg_dir/data/monomer_library

Run the program


Build release

mkdir ccp4mg_dir/Frameworks
cp -Rp /Library/Frameworks/Qt*.framework ccp4mg_dir/Frameworks
cp -Rp /Developer/Applications/Qt/plugins ccp4mg_dir/QtPlugins
cp -Rp /Library/Frameworks/Python.framework ccp4mg_dir/Frameworks
make distrib