Permalink
Browse files

setup scripts

  • Loading branch information...
tcaduser committed Dec 23, 2012
1 parent 1594173 commit 930a809d6ece04ee301fe9f7c1d45be17008b20a
Showing with 151 additions and 10 deletions.
  1. +28 −8 INSTALL
  2. +2 −1 README
  3. +1 −1 scripts/setup_linux.sh
  4. +40 −0 scripts/setup_osx_10.6.8.sh
  5. +40 −0 scripts/setup_ubuntu_10.04.sh
  6. +40 −0 scripts/setup_ubuntu_12.04.sh
View
36 INSTALL
@@ -2,29 +2,47 @@ Build packages required:
cmake g++ flex bison python tcl
C++ requirements:
The compiler needs to support the TR1 extensions (e.g. shared_ptr<>). This program compiles successfully with g++ 4.2.1 on Mac OS X. Older compilers may need the appropriate boost implementations from http://www.boost.org.
The compiler needs to support the TR1 extensions (e.g. shared_ptr<>).
This program compiles successfully with g++ 4.2.1 on Mac OS X. Older
compilers may need the appropriate boost implementations from
http://www.boost.org.
Python Requirements:
A version of Python 2.7.3 is recommended. However, this software should compile and link against previous versions of this software. This tool has not been tested on Python 3. Due to Python API inconsitencies, please compile Symdiff for your specific system. Currently tests are written for Python 2.6, but may use Python 2.7.3 language features.
A version of Python 2.7.3 is recommended. However, this software
should compile and link against previous versions of this software.
This tool has not been tested on Python 3. Due to Python API
inconsistencies, please compile Symdiff for your specific system.
Currently tests are written for Python 2.6, but may use Python 2.7.3
language features in the future.
Tcl Requirements:
Any version of Tcl of 8.4 and above should work. In principle, Symdiff libraries may be used across Tcl versions, because of the consistent API. Currently tests are written for Tcl 8.5.
Any version of Tcl of 8.4 and above should work. In principle, Symdiff
libraries may be used across Tcl versions, because of the consistent
API. Currently tests are written for Tcl 8.5.
Mac OS X:
Mac OS X developer tools are required.
Modify scripts/setup_apple.sh as necessary for your configuration and run from the base directory of this project.
Modify scripts/setup_apple.sh as necessary for your configuration and
run from the base directory of this project.
The file scripts/setup_osx_10.6.8.sh is also available for OS X version
10.6.8. Use "sw_vers -productVersion" to determine your OS X version.
cd osx_release
make -j2
Linux:
Modify scripts/setup_linux.sh as necessary for your configuration and run from the base directory of this project.
Modify scripts/setup_linux.sh as necessary for your configuration and
run from the base directory of this project. Ubuntu scripts are
available for the last two LTS releases:
scripts/setup_ubuntu_10.04.sh
scripts/setup_ubuntu_12.04.sh
Then go into the appropriate directory to build:
cd linux_x86_64_release
make -j2
Windows:
Windows is not set up for the new cmake configuration. In principle it should work.
Windows is not set up for the new cmake configuration, so modifications
will need to be made to get this to work.
Running the tests:
make test
@@ -33,9 +51,11 @@ To run on your scripts go into the bin directory
symdiff for python
symdiff_tcl for tclsh
These set up the appropriate environment for loading SYMDIFF into your intepreter.
These set up the appropriate environment for loading SYMDIFF into your
intepreter.
Documentation is in the doc directory. Examples are in the examples and testing directory.
Documentation is in the doc directory. Examples are in the examples
and testing directory.
View
3 README
@@ -1,5 +1,6 @@
SYMDIFF - Symbolic Differentiation Tool
Please see INSTALL file for installation instructions. Please see NOTICE and LICENSE files for copyright and license information.
Please see INSTALL file for installation instructions. Please see
NOTICE and LICENSE files for copyright and license information.
Documentation available in doc/symdiff.pdf.
View
@@ -5,7 +5,7 @@ CXX="/usr/bin/g++"
CC="/usr/bin/gcc"
TCL_ARCHIVE="/usr/lib/libtclstub.a"
TCL_INCLUDE="/usr/include/tcl8.5"
TCL_BIN="/usr/bin/tclsh"
TCL_BIN="/usr/bin/tclsh8.5"
PYTHON_ARCHIVE="/usr/lib/libpython2.7.so"
PYTHON_INCLUDE="/usr/include/python2.7"
PYTHON_BIN="/usr/bin/python"
@@ -0,0 +1,40 @@
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
CMAKE="/usr/bin/cmake"
CXX="/usr/bin/g++"
CC="/usr/bin/gcc"
TCL_ARCHIVE="/usr/lib/libtclstub8.5.a"
TCL_INCLUDE="/usr/include"
TCL_BIN="/usr/bin/tclsh"
PYTHON_ARCHIVE="/usr/lib/libpython2.6.dylib"
PYTHON_INCLUDE="/usr/include/python2.6"
PYTHON_BIN="/usr/bin/python"
for TYPE in debug release; do
NAME=osx_${TYPE}
mkdir ${NAME}
(cd $NAME; ${CMAKE} -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" -DCMAKE_BUILD_TYPE=${TYPE} -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_C_COMPILER=${CC} -DPYTHON_INCLUDE=${PYTHON_INCLUDE} -DPYTHON_ARCHIVE=${PYTHON_ARCHIVE} -DPYTHON_BIN=${PYTHON_BIN} -DTCL_INCLUDE=${TCL_INCLUDE} -DTCL_ARCHIVE=${TCL_ARCHIVE} -DTCL_BIN=${TCL_BIN} ..)
done
mkdir -p bin
cat << EOF > bin/symdiff
#!/bin/bash
set -e
progname="\$0"
curdir=\`dirname "\$progname"\`
export DYLD_LIBRARY_PATH=\${curdir}/../lib
export PYTHONPATH=\${curdir}/../lib
${PYTHON_BIN} \$*
EOF
chmod +x bin/symdiff
cat << EOF > bin/symdiff_tcl
#!/bin/bash
set -e
progname="\$0"
curdir=\`dirname "\$progname"\`
export DYLD_LIBRARY_PATH=\${curdir}/../lib
export TCLLIBPATH=\${curdir}/../lib
${TCL_BIN} \$*
EOF
chmod +x bin/symdiff_tcl
@@ -0,0 +1,40 @@
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
CMAKE="/usr/bin/cmake"
CXX="/usr/bin/g++"
CC="/usr/bin/gcc"
TCL_ARCHIVE="/usr/lib/libtclstub.a"
TCL_INCLUDE="/usr/include/tcl8.5"
TCL_BIN="/usr/bin/tclsh8.5"
PYTHON_ARCHIVE="/usr/lib/libpython2.6.so"
PYTHON_INCLUDE="/usr/include/python2.6"
PYTHON_BIN="/usr/bin/python"
for TYPE in debug release; do
ARCH=`uname -m`
# for ARCH in i386 x86_64; do
NAME=linux_${ARCH}_${TYPE}
mkdir ${NAME}
(cd $NAME; ${CMAKE} -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" -DCMAKE_BUILD_TYPE=${TYPE} -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_C_COMPILER=${CC} -DPYTHON_INCLUDE=${PYTHON_INCLUDE} -DPYTHON_ARCHIVE=${PYTHON_ARCHIVE} -DPYTHON_BIN=${PYTHON_BIN} -DTCL_INCLUDE=${TCL_INCLUDE} -DTCL_ARCHIVE=${TCL_ARCHIVE} -DTCL_BIN=${TCL_BIN} ..)
# done
done
mkdir -p bin
cat << EOF > bin/symdiff
#!/bin/bash
set -e
progname="\$0"
curdir=\`dirname "\$progname"\`
export PYTHONPATH=\${curdir}/../lib
${PYTHON_BIN} \$*
EOF
chmod +x bin/symdiff
cat << EOF > bin/symdiff_tcl
#!/bin/bash
set -e
progname="\$0"
curdir=\`dirname "\$progname"\`
export TCLLIBPATH=\${curdir}/../lib
${TCL_BIN} \$*
EOF
chmod +x bin/symdiff_tcl
@@ -0,0 +1,40 @@
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
CMAKE="/usr/bin/cmake"
CXX="/usr/bin/g++"
CC="/usr/bin/gcc"
TCL_ARCHIVE="/usr/lib/libtclstub.a"
TCL_INCLUDE="/usr/include/tcl8.5"
TCL_BIN="/usr/bin/tclsh8.5"
PYTHON_ARCHIVE="/usr/lib/libpython2.7.so"
PYTHON_INCLUDE="/usr/include/python2.7"
PYTHON_BIN="/usr/bin/python"
for TYPE in debug release; do
ARCH=`uname -m`
# for ARCH in i386 x86_64; do
NAME=linux_${ARCH}_${TYPE}
mkdir ${NAME}
(cd $NAME; ${CMAKE} -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" -DCMAKE_BUILD_TYPE=${TYPE} -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_C_COMPILER=${CC} -DPYTHON_INCLUDE=${PYTHON_INCLUDE} -DPYTHON_ARCHIVE=${PYTHON_ARCHIVE} -DPYTHON_BIN=${PYTHON_BIN} -DTCL_INCLUDE=${TCL_INCLUDE} -DTCL_ARCHIVE=${TCL_ARCHIVE} -DTCL_BIN=${TCL_BIN} ..)
# done
done
mkdir -p bin
cat << EOF > bin/symdiff
#!/bin/bash
set -e
progname="\$0"
curdir=\`dirname "\$progname"\`
export PYTHONPATH=\${curdir}/../lib
${PYTHON_BIN} \$*
EOF
chmod +x bin/symdiff
cat << EOF > bin/symdiff_tcl
#!/bin/bash
set -e
progname="\$0"
curdir=\`dirname "\$progname"\`
export TCLLIBPATH=\${curdir}/../lib
${TCL_BIN} \$*
EOF
chmod +x bin/symdiff_tcl

0 comments on commit 930a809

Please sign in to comment.