Compiling Davinci

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
{{DavinciWiki_Compile|
+
{{DavinciWiki_Download|Compiling Davinci|
  
 
'''Operating System: Mac OS X 10.4.8'''
 
'''Operating System: Mac OS X 10.4.8'''

Revision as of 09:57, 17 July 2007

Compiling Davinci


Operating System: Mac OS X 10.4.8

Dependencies

  • Mac OS X 10.4.X
  • Xcode2
  • Apple X11 or XDarwin
  • xv (binary)
    1. Unzip and move to /usr/local
  • gnuplot
    1. download and install aquaterm (source)
    2. download and install gnuplot (source)
  • hdf5 (source)
    1. configure with "./configure --enable-hdf5v1_4=yes --prefix=/usr/local"
    2. make
    3. sudo make install
    • NOTE: also requires zlib (should already be installed source)

Installation Procedure

  1. Download the most recent davinci source -- This includes iomedley and readline
  2. unpack by either double clicking on the zipped tarball or by typing tar -xzpf davinci-1.xx in the directory where davinci was downloaded
  3. change in to the davinci-1.xx directory. The steps below will compile davinci for mac without aqua (with X11). Remove "--disable-aqua"
  4. for a non-X11 compile. The --prefix allows the user to specify the
  5. ./configure --disable-aqua --prefix="INSTALL DIRECTORY"
  6. make
  7. sudo make install -- if you want to install it into your standard bin directory


Operating System: Mandriva Linux 2007

Dependencies

  • libhdf5, libhdf5-devel (HDF support)
  • libltdl, ltdl-devel (fixes error regarding ltdl, or "libtool dynamic linking")
  • libxorg-x11, libxorg-x11-devel (X11 support - for GUI module)
  • lesstif, lesstif-devel (Motif development files - for GUI module)
  • libreadline, libreadline-devel (might not be necessary, but no harm in trying)
  • libtermcap, libtermcap-devel (related to readline)
  • libncurses, libncurses-devel (also related to readline)

Installation Procedure

  1. As root, type "urpmi [name]" to install, or use drakrpm for a menu interface):
  2. Install all dependencies listed above
  3. Reboot after installing dependencies, (this may have fixed an error that occurred while making readline)
  4. change into the iomedley directory
  5. "./configure"
  6. "make"
  7. change to the davinci directory
  8. "./configure"
  9. "make"
  10. "make install"



Building Fedora Core packages (rpm)


Before you start building rpms, make sure you have rpmbuild installed. Probably you want to have a FITS and HDF5 support. You can either get them in the official websites, or just easier in http://www.rpmfind.net. Package names: cfitsio, cfitsio-devel, hdf5, hdf5-devel. If you want to use GUI module, lesstif and lesstif-devel are also required.

Building process as non-root user:

  1. Downlad source
  2. tar zxvf davinci-<version>.tgz
  3. cd davinci
  4. ./build_rpm
  5. ls -l *.rpm
  6. If the building process is completed properly, the rpm files are copied from the default location ~/rpm/RPM/i386 to the davinci source.

Technical Info about building rpms: The building process is performed by build_rpm script. This script will perform the following steps:

  • Create rpm building environment (devault ~/rpm)
  • Copy the spec file contrib/davinci.spec to the ~/rpm/SPECS and inject the latest davinci version (from version.h).
  • Copy the source file to ~/rpm/SOURCES
  • Create the appropriate directory name.
  • Invoke rpmbuild

The files are installed under:

  • Binary /usr/bin/davinci
  • Libraries /usr/lib/libdavinci.la /usr/lib/libiomedley.la
  • Modules /usr/lib/davinci
  • Docs /usr/share/davinci



Current Davinci Version2.27

Personal tools