Permalink
Browse files

update install notes and apple setup

  • Loading branch information...
tcaduser committed Dec 13, 2013
1 parent 332606e commit 4f90362daa44b8cabc31e8ec7475fdd4439e2306
Showing with 16 additions and 3 deletions.
  1. +2 −2 INSTALL
  2. +14 −1 scripts/setup_osx_10.9.sh
View
@@ -22,7 +22,7 @@ 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
Modify scripts/setup_osx_10.9.sh as necessary for your configuration and
run from the base directory of this project.
The file scripts/setup_osx_10.9.sh is also available for OS X version
10.9. Use "sw_vers -productVersion" to determine your OS X version.
@@ -33,8 +33,8 @@ Linux:
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
scripts/setup_redhate_6.5.sh
Then go into the appropriate directory to build:
cd linux_x86_64_release
View
@@ -1,6 +1,7 @@
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
CMAKE="/usr/bin/cmake"
CMAKE_CXX_FLAGS=""
CXX="/usr/bin/g++"
CC="/usr/bin/gcc"
TCL_ARCHIVE="/usr/lib/libtclstub8.5.a"
@@ -12,7 +13,19 @@ 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} ..)
(cd $NAME; ${CMAKE} \
-DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
-DCMAKE_CXX_FLAGS:STRING="${CMAKE_CXX_FLAGS}" \
-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

0 comments on commit 4f90362

Please sign in to comment.