månadsarkiv: juni 2014

Standalone Opencascade 6.5.4 installation on CentOS

Download OpenCASCADE654.tar.gz from http://www.opencascade.org you have to register
You have to complete compilation of tcltk, freetype, ftgl, gl2ps, freeimage and qt.
export MMGT_REENTRANT=1
# this variable only needed for DRAWEXE
export CASROOT=/opt/occ/6.5.4
module load tbb/3.0-018

./build_configure
./configure –prefix=/opt/occ/6.5.4 –exec-prefix=/opt/occ/6.5.4 –oldincludedir=/opt/occ/6.5.4/include –with-tcl=/opt/tcltk/8.5.13/lib –with-tk=/opt/tcltk/8.5.13/lib –with-java-include=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/include –with-freetype=/opt/freetype/2.4.10 –with-ftgl=/opt/ftgl/2.1.3rc5 –with-gl2ps=/opt/gl2ps/1.3.5 –with-freeimage=/opt/freeimage/3.14.1 –with-tbb-include=/opt/tbb/3.0-018/include –with-tbb-library=/opt/tbb/3.0-018/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21 –with-qt=/opt/qt/4.8.6
make -j4
make install

Note: the tbb 3.0-018 was found in the salome-platform installation…

module file /etc/modulefiles/occ/6.5.4

#%Module1.0###########################################
##
## Discretizer AB modulefile
##
##
prepend-path PATH /opt/occ/6.5.4/bin
prepend-path LD_LIBRARY_PATH /opt/occ/6.5.4/lib

FreeImage standalone install on CentOS

Download FreeImage3141.zip from http://en.sourceforge.jp/projects/sfnet_freeimage
In Makefile.fip:
# General configuration variables:
DESTDIR ?= /opt/freeimage/3.14.1
INCDIR ?= $(DESTDIR)/include
INSTALLDIR ?= $(DESTDIR)/lib

make -f Makefile.fip
make -f Makefile.fip install

Note: replaced OpenEXR dir with 3.15.0 version’s

module file /etc/modulefiles/freeimage/3.14.1

#%Module1.0##############################################
##
## Discretizer AB modulefile
##
##
prepend-path LD_LIBRARY_PATH /opt/freeimage/3.14.1/lib

Standalone gl2ps installation on CentOS

Download gl2ps-1.3.5.tgz from http://geuz.org/gl2ps
mkdir build; cd build; cmake ../
make -j4
in cmake_install.cmake: SET(CMAKE_INSTALL_PREFIX ”/opt/gl2ps/1.3.5”)
make install

module file /etc/modulefiles/gl2ps/1.3.5

#%Module1.0############################################
##
##  Discretizer AB modulefile
##
##
prepend-path    LD_LIBRARY_PATH    /opt/gl2ps/1.3.5/lib

Standalone FTGL installation on CentOS

ftgl-2.1.3-rc5.tar.gz
./configure –prefix=/opt/ftgl/2.1.3rc5 –exec-prefix=/opt/ftgl/2.1.3rc5 –oldincludedir=/opt/ftgl/2.1.3rc5/include
make -j4
make install

module file /etc/modulefiles/ftgl/2.1.3rc5

#%Module1.0################################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

prepend-path CPLUS_INCLUDE_PATH /opt/ftgl/2.1.3rc5/include/FTGL/
prepend-path LD_LIBRARY_PATH /opt/ftgl/2.1.3rc5/lib

Standalone freetype installation

Download freetype-2.4.10.tar.gz from http://sourceforge.net/projects/freetype/file/freetype2/2.4.10
./configure –prefix=/opt/freetype/2.4.10 –exec-prefix=/opt/freetype/2.4.10 –oldincludedir=/opt/freetype/2.4.10/include
make -j4
make install

module file /etc/modulefiles/freetype/2.4.10

#%Module1.0############################################
##
## Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

## Create a whatis file.
module-whatis ”Add program links, aliases and paths”

prepend-path PATH /opt/freetype/2.4.10/bin
setenv FREETYPE_ROOT_DIR /opt/freetype/2.4.10
prepend-path LD_LIBRARY_PATH /opt/freetype/2.4.10/lib