Differences between revisions 6 and 7
Revision 6 as of 2008-03-19 04:15:10
Size: 901
Editor: root
Comment:
Revision 7 as of 2008-03-19 04:19:24
Size: 1688
Editor: root
Comment:
Deletions are marked like this. Additions are marked like this.
Line 32: Line 32:

I opted to place my build environment in a disk image to make it easier to move it from machine to machine. Use Disk Utility to create a sparse disk image with a max size of 50gb (it will shrink to the total size of the files contained.)

I called the disk image "EMAN" and used the following directory structure for organization.

EMAN/
EMAN2/

/build/
 /10.4 and 10.5
  /32 and 64
   /EMAN
   /EMAN2


dep/
 /10.4 and 10.5
  /fat
  /include, info, man, qt3, qt4, share
  /src
 /cmake
 
extlib/
 /10.4 and 10.5
 
src/
src/patches

stage/
 /skeleton
  /EMAN.app
   /Contents
    /PkgInfo
    /Info.plist
 /10.4 and 10.5
  /EMAN
   /EMAN
    /lib, bin, doc, python, etc.
   /EMAN.64
   /EMAN2
   /EMAN2.64
   /links to app bundles in EMAN/apps

Compiling for Mac OS X is generally the same as other platforms, but with some additional work required in post-install processing.

Dependencies (version I have used successfully in parens):

boost (1_34_1)

cmake (2.4.8)

fftw (2.1.5)

gsl (1.8)

hdf5 (1.6.6)

jpeg (v6b)

png (1.2.23)

numpy (1.0.4)

Qt/Mac (3.3.8)

szip (2.1)

tiff (3.8.2)

zlib (1.2.1)

If you choose to install these from your package manager, it will be difficult to transfer your EMAN build from machine to machine. For the self-contained package I created, I chose to build them all myself without a package manager for more control over configuration options. However, some of the packages required either patches or some careful massaging to compile properly. I have included detailed instructions and extra files required below:

Detailed instructions for building dependencies on Mac OS X

I opted to place my build environment in a disk image to make it easier to move it from machine to machine. Use Disk Utility to create a sparse disk image with a max size of 50gb (it will shrink to the total size of the files contained.)

I called the disk image "EMAN" and used the following directory structure for organization.

EMAN/ EMAN2/

/build/

  • /10.4 and 10.5
    • /32 and 64
      • /EMAN /EMAN2

dep/

  • /10.4 and 10.5
    • /fat /include, info, man, qt3, qt4, share /src
    /cmake

extlib/

  • /10.4 and 10.5

src/ src/patches

stage/

  • /skeleton
    • /EMAN.app
    /10.4 and 10.5
    • /EMAN
      • /EMAN
        • /lib, bin, doc, python, etc.
        /EMAN.64 /EMAN2 /EMAN2.64 /links to app bundles in EMAN/apps

EMAN_COMPILE_MacOS_X_for_Distribution (last edited 2009-07-22 21:32:58 by root)