1034
Comment:
|
1443
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Compiling for Mac OS X is generally the same as other platforms, but with some additional work required in post-install processing. Further effort is required if you want to make a build for distribution or that will work on multiple machines and/or architectures. | Compiling for Mac OS X is generally the same as other platforms, but with some additional work required in post-install processing. |
Line 29: | Line 29: |
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: | |
Line 31: | Line 30: |
Detailed instructions for building dependencies on Mac OS X | ==================== You have two routes available. You can install the above dependencies using a package manager such as fink or macports. This is the easier and faster option, but has the downside of making it more difficult to distribute your built package or moving it to a different machine. If you choose this option, just skip to the end. The other option is to build all dependencies manually from source. This is the method I chose for the self-contained EMAN package. However, some of the packages required either patches or some careful massaging to compile properly. It will require a bit more effort than using the package manager. ==================== Compiling dependencies from source: 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. |
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)
====================
You have two routes available. You can install the above dependencies using a package manager such as fink or macports. This is the easier and faster option, but has the downside of making it more difficult to distribute your built package or moving it to a different machine. If you choose this option, just skip to the end.
The other option is to build all dependencies manually from source. This is the method I chose for the self-contained EMAN package. However, some of the packages required either patches or some careful massaging to compile properly. It will require a bit more effort than using the package manager.
====================
Compiling dependencies from source:
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.