Building Davinci for Mac

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 23: Line 23:
 
  make
 
  make
 
  make install
 
  make install
 
puts only the .a files in a lib and include directory in the --prefix root directory (/u/cedwards/davinci_mac_package/install/cfitsio/)
 
 
*/u/cedwards/davinci_mac_package/compile/openmotif-2.3.0
 
*/u/cedwards/davinci_mac_package/compile/openmotif-2.3.0
 
  ./configure --prefix=/usr/local/davinci/openmotif
 
  ./configure --prefix=/usr/local/davinci/openmotif
 
  make
 
  make
 
  make install
 
  make install
 
puts only the .a files in a lib and include directory in the --prefix root directory (/u/cedwards/davinci_mac_package/install/openmotif/)
 
 
*/u/cedwards/davinci_mac_package/compile/hdf-1.6.5
 
*/u/cedwards/davinci_mac_package/compile/hdf-1.6.5
 
  ./configure --enable-hdf5v1_4 --prefix=/usr/local/davinci/hdf
 
  ./configure --enable-hdf5v1_4 --prefix=/usr/local/davinci/hdf
 
  make
 
  make
 
  make install
 
  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)
 
*/u/cedwards/davinci_mac_package/compile/davinci (svn newest version no changes)
 
  ./configure --prefix=/usr/local/davinci \
 
  ./configure --prefix=/usr/local/davinci \
Line 44: Line 38:
 
  make install
 
  make install
 
   
 
   
  puts the apporpirate files/directories in the install/davinci.app/Contents/Resources directory (including non-static libraries and includes)  
+
  puts the apporpirate files/directories in the /usr/local/davinci 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
 
  make sure to alias the thm.0.0.0 to thm.so.0.0.0 or it will break

Revision as of 13:16, 23 July 2007


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/cfitsio
./configure --prefix=/usr/local/davinci/cfitsio
make
make install
  • /u/cedwards/davinci_mac_package/compile/openmotif-2.3.0
./configure --prefix=/usr/local/davinci/openmotif
make
make install
  • /u/cedwards/davinci_mac_package/compile/hdf-1.6.5
./configure --enable-hdf5v1_4 --prefix=/usr/local/davinci/hdf
make
make install
  • /u/cedwards/davinci_mac_package/compile/davinci (svn newest version no changes)
./configure --prefix=/usr/local/davinci \
--with-hdf5=/usr/local/davinci/hdf --without-library --without-examples --enable-aqua \
--with-motif=/usr/local/davinci/openmotif --with-cfitsio=/usr/local/davinci/cfitsio
make
make install

puts the apporpirate files/directories in the /usr/local/davinci 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

the --enable-aqua command can be overwritten with the DV_AQUA=1 environment variable for use of X11 environment

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