Building Davinci for Mac

From DavinciWiki
Revision as of 16:44, 20 July 2007 by Cedwards (Talk | contribs)

Jump to: navigation, search


Contents

Procedure for building davinci under MAC OS X 10.4.X

Subversion locations

  • davinci
svn checkout file:///tes/svn/dev/davinci/trunk/ davinci
  • iomedley
svn checkout file:///tes/svn/dev/iomedley/trunk davinci/iomedley
  • readline
svn checkout file:///tes/svn/dev/readline/trunk davinci/readline

File Locations and Directory Structure

Compile Directory

  • /u/cedwards/davinci_mac_package/compile/hdf-1.6.5
./configure --enable-hdf5v1_4 --enable-shared=no --prefix=/u/cedwards/davinci_mac_package/install/hdf/
make
make install

puts only the .a files in a lib and include directory in the --prefix root directory (/u/cedwards/davinci_mac_package/install/hdf/)
  • /u/cedwards/davinci_mac_package/compile/davinci (svn newest version no changes)
./configure --prefix=/u/cedwards/davinci_mac_package/install/davinci.app/Contents/Resources 

--with-hdf5=/u/cedwards/davinci_mac_package/install/hdf/ --without-library --without-examples --enable-aqua --with-motif=/u/cedwards/davinci_mac_package/install/openmotif --with-cfitsio=/u/cedwards/davinci_mac_package/install/cfitsio

make
make install

puts the apporpirate files/directories in the install/davinci.app/Contents/Resources directory (including non-static libraries and includes) 

make sure to alias the thm.0.0.0 to thm.so.0.0.0 or it will break

Install Directory

  • /u/cedwards/davinci_mac_package/install/davinci.app/
    • A copy of the current binary of davinci can be used and components should be updated as necessary
  • /u/cedwards/davinci_mac_package/install/hdf/

Making Packages

Static Packages

  • /u/cedwards/davinci_mac_package/
    • AquaTerm.pkg - used to plot without X11
      • This has one small change to the postflight operation which links a shared library to one version earlier because that is the only version gnuplot.pkg will accept.
    • gnuplot.pkg - plotting package for mac

Changing (Dynamic) Packages

All of these directories are associated with individual PackageMaker projects and require the specified paths to generate the packages.

  • /u/cedwards/davinci_mac_package/
  • library.pkg - davinci library dvrc files (repository in /themis/lib/dav_lib/library/*)
Directory:
/u/cedwards/davinci_mac_package/library

Simply update the files in the sub-directory (davinci_library) and open the packagemaker file (library.pmproj)
and re-build the package.  This creates the library.pkg file which includes preflight operations.
  • dvrc-inputrc-components.pkg - .dvrc and .inputrc files required to make the standalone version work
Directory:
/u/cedwards/davinci_mac_package/dvrc-inputrc_components/
Simply update the files in this directory (.dvrc and .inputrc) and open the packagemaker file (dvrc-inputrc_components.pmproj)
and re-build the package.  This creates the dvrc-inputrc_components.pkg file which includes postflight operations
  • davinci_app.pkg - compiled davinci app which has a bunch of stuff done to it to make it double-clickable
Directory:
/u/cedwards/davinci_mac_package/davinci_app/
Simply update the files in the sub-directory (davinci/davinci.app/) from the newly compiled version (install/davinci.app/) 
and open the packagemaker file (davinci_app.pmproj) and re-build the package.  This creates the davinci_app.pkg 
file which includes postflight operations

Distribution Package

  • /u/cedwards/davinci_mac_package/
  • Davinci_for_Mac.pkg - combined installer which installs all of the previous packages by the user's specifications
Simply open the  open the packagemaker file (Davinci_for_Mac.pmproj) and re-build the package. This 
creates the Davinci_for_Mac.pkg file which includes all of the previously mentioned packages

Disk Image

  1. Make a new directory anywhere following this naming scheme (davinci_beta_macosx-1.xx)
  2. Open the DiskUtility Application located in /Applications/Utilities
  3. The File->New->Disk Image from Folder
    • Select the folder you created in the step above and click Image
  4. Leave the title the same as the folder you created and make sure Image Format = compressed
  5. Click Ok
  6. Move the new copy to the ftp server and update the wiki (Download Davinci) page
Personal tools