Compiling Davinci
Line 1: | Line 1: | ||
− | + | == Standard Linux Building Procedure == | |
− | + | ||
− | + | ||
As root type the following commands. | As root type the following commands. | ||
Line 9: | Line 7: | ||
− | + | == Operating System: Mac OS X 10.4.8 == | |
− | + | === Dependencies === | |
*Mac OS X 10.4.X | *Mac OS X 10.4.X | ||
*Xcode2 | *Xcode2 | ||
Line 26: | Line 24: | ||
**NOTE: also requires zlib (should already be installed [ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/src source]) | **NOTE: also requires zlib (should already be installed [ftp://ftp.hdfgroup.org/lib-external/zlib/1.2/src source]) | ||
− | + | === Installation Procedure === | |
# Download the most recent davinci [[Download_Davinci|source]] -- This includes iomedley and readline | # Download the most recent davinci [[Download_Davinci|source]] -- This includes iomedley and readline | ||
# unpack by either double clicking on the zipped tarball or by typing tar -xzpf davinci-1.xx in the directory where davinci was downloaded | # unpack by either double clicking on the zipped tarball or by typing tar -xzpf davinci-1.xx in the directory where davinci was downloaded | ||
Line 34: | Line 32: | ||
# make | # make | ||
# sudo make install -- if you want to install it into your standard bin directory | # sudo make install -- if you want to install it into your standard bin directory | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Building Davinci for Linux in 64-bit AMD Opteron(tm) == | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
The position independent code needs to be enabled. For example | The position independent code needs to be enabled. For example | ||
Line 73: | Line 42: | ||
− | + | == Building Davinci for Mars Space Flight Facility == | |
To isolate each Davinci version from other versions, separate directories are created under /usr/local/ as follows: | To isolate each Davinci version from other versions, separate directories are created under /usr/local/ as follows: | ||
Line 104: | Line 73: | ||
− | + | == Building RPM == | |
Before you start building rpms, make sure you have rpmbuild installed. | Before you start building rpms, make sure you have rpmbuild installed. | ||
Line 138: | Line 107: | ||
*Library Scripts /usr/share/davinci/library | *Library Scripts /usr/share/davinci/library | ||
− | + | ||
+ | |||
+ | |||
+ | == 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 === | ||
+ | |||
+ | #As root, type "urpmi [name]" to install, or use drakrpm for a menu interface): | ||
+ | #Install all dependencies listed above | ||
+ | #Reboot after installing dependencies, (this may have fixed an error that occurred while making readline) | ||
+ | #change into the iomedley directory | ||
+ | #"./configure" | ||
+ | #"make" | ||
+ | #change to the davinci directory | ||
+ | #"./configure" | ||
+ | #"make" | ||
+ | #"make install" |
Revision as of 16:11, 4 December 2007
Contents |
Standard Linux Building Procedure
As root type the following commands.
$ ./configure $ make $ make install
Operating System: Mac OS X 10.4.8
Dependencies
- Mac OS X 10.4.X
- Xcode2
- Apple X11 or XDarwin
- xv (binary)
- Unzip and move to /usr/local
- gnuplot
- hdf5 (source)
- configure with "./configure --enable-hdf5v1_4=yes --prefix=/usr/local"
- make
- sudo make install
- NOTE: also requires zlib (should already be installed source)
Installation Procedure
- Download the most recent davinci source -- This includes iomedley and readline
- unpack by either double clicking on the zipped tarball or by typing tar -xzpf davinci-1.xx in the directory where davinci was downloaded
- change in to the davinci-1.xx directory. The steps below will compile davinci for mac without aqua (with X11). Remove "--disable-aqua"
- for a non-X11 compile. The --prefix allows the user to specify the
- ./configure --prefix="INSTALL DIRECTORY"
- make
- sudo make install -- if you want to install it into your standard bin directory
Building Davinci for Linux in 64-bit AMD Opteron(tm)
The position independent code needs to be enabled. For example
./configure CFLAGS="-fpic" make make install
Building Davinci for Mars Space Flight Facility
To isolate each Davinci version from other versions, separate directories are created under /usr/local/ as follows:
Backup old sym links. Replace {corresponding-version} with an older version (e.g. 1.69}
$ cp /usr/local/bin/davinci /usr/local/bin/davinci-{corresponding-version}
Create new Directories. Replace {version} with new version number (e.g. 1.70)
$ mkdir /usr/local/davinci-{version} $ mkdir /usr/local/davinci-{version}/share $ mkdir /usr/local/davinci-{version}/include $ mkdir /usr/local/davinci-{version}/lib $ mkdir /usr/local/davinci-{version}/bin
Build and Install
$ ./configure --prefix=/usr/local/davinci-{version} \ --with-help=/usr/local/davinci-{version}/share/davinci/docs/dv.gih \ --with-modpath=/usr/local/davinci-{version}/lib/davinci
$ make
$ make install
Create new symlinks
ln -sni /usr/local/davinci-{version} /usr/local/davinci ln -sni /usr/local/davinci-{version}/bin/davinci /usr/local/bin/davinci
Building 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:
$ mkdir davinci $ svn checkout file:///tes/svn/dev/davinci/trunk davinci $ svn checkout file:///tes/svn/dev/davinci_build/trunk/linux davinci/build_utils $ cd davinci/build_utils $ ./build_rpm
If everything went alright, the rpm files should be created on the davinci/build_utils directory.
Technical Info about building rpms:
The building process is performed by build_rpm.sh 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
When rpm is installed the files are installed as follows:
- Binary /usr/bin/davinci
- Libraries /usr/lib/libdavinci* /usr/lib/libiomedley*
- Modules /usr/lib/davinci
- Docs /usr/share/davinci/docs
- Examples /usr/share/davinci/examples
- Library Scripts /usr/share/davinci/library
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
- As root, type "urpmi [name]" to install, or use drakrpm for a menu interface):
- Install all dependencies listed above
- Reboot after installing dependencies, (this may have fixed an error that occurred while making readline)
- change into the iomedley directory
- "./configure"
- "make"
- change to the davinci directory
- "./configure"
- "make"
- "make install"