![]() |
CCP4 Molecular Graphics Documentation | ![]() |
Build Instructions for CCP4MG on Mac OS X |
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.
Caution this is untested!
cd sip-4.8-snapshot-20090311 /Library/Frameworks/Python.framework/Versions/2.6/bin/python configure.py cd PyQt-win-gpl-4.5-snapshot-20090311 /Library/Frameworks/Python.framework/Versions/2.6/bin/python configure.py make make install
The setting of environment variables on command line assumes Bourne type shell. You will need to do some setenv commands for csh type shells.
mkdir ccp4mg_dir cd ccp4mg_dir CVS_RSH=ssh CVSROOT=mgdev@cvs.ccp4.ac.uk:/public/ccp4mg/MG_CVS cvs -z9 co -r Rel_2_B . ln -s ccp4_build clipper PATH=/Library/Frameworks/Python.framework/Versions/2.6/bin/$PATH ./configure make
tar zxf tiff-X.Y.Z.tar.gz cd tiff-X.Y.Z ./configure --prefix=libtiff_install_root make make install
tar zxf Pixie-X.Y.Z.tar.gz cd Pixie-X.Y.Z /configure --prefix=ccp4mg_dir/pixie LDFLAGS='-Llibtiff_install_root/lib' CPPFLAGS='-Ilibtiff_install_root/include' make make installThis compilation takes a long time.
cd ccp4mg_dir/pixie/shaders LD_LIBRARY_PATH=$PWD/../lib export LD_LIBRARY_PATH for in *.sl; do ../bin/sdrc $i done
In preparation.
PISA will have been built when CCP4 was built (it is part of it).
cp ccp4_dir/src/pisa/pisa ccp4mg_dirccp4_suite/bin
But we are still having to make some patches which we hope to agree with the PISA author Eugene Krissinel.
cp -Rp ccp4_dir/lib/data/monomers/ ccp4mg_dir/data/monomer_library
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