Commit Graph

91 Commits

Author SHA1 Message Date
f35943a8a7 Tidying up CGAL and boost inclusion. Removed the CGAL_PATH variable, using
CGAL_SRC for everything.  Changed location of CGAL_FILES "files".

Updated old meshers with new options.

in .bashrc using this environment:

~~~~~~~~~~~
export BOOST_LIB_VERSION=1_39
export BOOST_PATCH_LEVEL=_0
export BOOST_COMPILER=gcc43

export BOOST_VERSION=$BOOST_LIB_VERSION$BOOST_PATCH_LEVEL
export BOOST_ROOT=$WM_THIRD_PARTY_DIR/boost_$BOOST_VERSION

export CGAL_VERSION=3.4
export CGAL_SRC=$WM_THIRD_PARTY_DIR/CGAL-$CGAL_VERSION
~~~~~~~~~~~

and have written a script call makeCGAL to build and configure boost and CGAL:

~~~~~~~~~~~

BOOST_ARCH_PATH=${BOOST_ROOT}/platforms/${WM_OPTIONS}

cd ${BOOST_ROOT}

rm -rf ${BOOST_ARCH_PATH}

./bootstrap.sh \
    --with-libraries=thread \
    --libdir=$BOOST_ARCH_PATH/lib \
    --includedir=$BOOST_ROOT/include

if [ -r /proc/cpuinfo ]
then
    WM_NCOMPPROCS=$(egrep "^processor" /proc/cpuinfo | wc -l)
    [ $WM_NCOMPPROCS -le 8 ] || WM_NCOMPPROCS=8

    time ./bjam -j $WM_NCOMPPROCS install
else
    time ./bjam install
fi

    echo "Done boost"

    cd ${CGAL_SRC}

BOOST_VERSION_NO=`grep "#define BOOST_VERSION " \
    ${BOOST_ROOT}/include/boost-${BOOST_LIB_VERSION}/boost/version.hpp \
    | cut -d " " -f 3`

cmake \
    -DGMP_INCLUDE_DIR=${WM_THIRD_PARTY_DIR}/gmp-4.2.4 \
    -DGMP_LIBRARIES_DIR=${WM_THIRD_PARTY_DIR}/gmp-4.2.4/platforms/${WM_ARCH}${WM_COMPILER_ARCH}/lib \
    -DGMP_LIBRARIES=${WM_THIRD_PARTY_DIR}/gmp-4.2.4/platforms/${WM_ARCH}${WM_COMPILER_ARCH}/lib/libgmp.so \
    -DMPFR_INCLUDE_DIR=${WM_THIRD_PARTY_DIR}/mpfr-2.4.1 \
    -DMPFR_LIBRARIES_DIR=${WM_THIRD_PARTY_DIR}/mpfr-2.4.1/platforms/${WM_ARCH}${WM_COMPILER_ARCH}/lib \
    -DMPFR_LIBRARIES=${WM_THIRD_PARTY_DIR}/mpfr-2.4.1/platforms/${WM_ARCH}${WM_COMPILER_ARCH}/lib/libmpfr.so \
    -DBoost_INCLUDE_DIR=${BOOST_ROOT}/include/boost-${BOOST_LIB_VERSION} \
    -DBoost_LIBRARY_DIRS=$BOOST_ARCH_PATH/lib \
    -DBoost_THREAD_LIBRARY=$BOOST_ARCH_PATH/lib/libboost_thread-${BOOST_COMPILER}-mt-${BOOST_LIB_VERSION}.so \
    -DBoost_THREAD_LIBRARY_RELEASE=$BOOST_ARCH_PATH/lib/libboost_thread-${BOOST_COMPILER}-mt-${BOOST_LIB_VERSION}.so \
    -DBoost_VERSION=$BOOST_VERSION_NO \
    ${CGAL_SRC}

echo "\${CGAL_SRC}/src/CGAL/assertions.cpp" > ${CGAL_SRC}/src/CGAL/files
echo "\${CGAL_SRC}/src/CGAL/MP_Float.cpp" >> ${CGAL_SRC}/src/CGAL/files
echo "\${CGAL_SRC}/src/CGAL/Random.cpp" >> ${CGAL_SRC}/src/CGAL/files
echo "\${CGAL_SRC}/src/CGAL/io.cpp" >> ${CGAL_SRC}/src/CGAL/files

echo "Done CGAL"
2009-05-28 20:39:03 +01:00
901bd023c3 Modifying options for building with boost to make sure that the ThirdParty
version is being used.
2009-05-28 17:35:47 +01:00
8416ec4ebc merging master, fixing conflict in surfaceFeatureExtract. 2009-05-20 18:40:50 +01:00
428d629d95 Merge branch 'master' into cvm 2009-05-18 11:59:50 +01:00
20c1a673e7 'rebrand' OSspecific Unix -> POSIX
- change name of environment variable from $WM_OS -> $WM_OSTYPE
  as a better description
2009-05-18 10:26:11 +02:00
1cdbeb29d7 minor tweak to wmake
- place wmkdep and dirToString executables under
  utilbin/$(WM_ARCH)$(WM_COMPILER).
  This helps somewhat when copying rules about, and might help when creating
  general rules.
2009-05-06 15:56:29 +02:00
51f443a345 Merge commit 'OpenCFD/master' into olesenm
Conflicts:
	applications/utilities/mesh/manipulation/createBaffles/createBaffles.C

Can't use [0] to assign the first value of a DynamicList unless it has been
preceded by a setSize() - use append() instead.
2009-05-06 09:33:38 +02:00
d781dcf38c Merge branch 'master' into cvm 2009-05-01 10:11:25 +01:00
433b209702 update to openmpi-1.3.2, prepare for newly released gcc-4.4
- added rules for gcc-4.3 in preparation for switching to gcc-4.4

- added 'clean' target for wmake/src/Makefile
  It is probably reasonable to separate the binaries from the rules (TODO)
2009-04-30 08:32:48 +02:00
b773710d06 remove opteron and no-gcse switch
modified:   SiCortex64Gcc/cOpt
	modified:   SunOS64Gcc/cOpt
	modified:   linux64Gcc/c++Opt
	modified:   linux64Gcc/cOpt
	modified:   linux64Gcc/general
	modified:   linux64Gcc42/c++Opt
	modified:   linux64Gcc42/cOpt
	modified:   linuxGcc/c++
	modified:   linuxGcc/cDebug
	modified:   linuxGcc/general
	modified:   linuxIA64Gcc/cOpt
2009-04-28 22:20:12 +01:00
3e445d422c Modifying decompositionMethods Make/options to add librt, required on 64bit
openSUSE 11.1.  Added 20 to the template depth for all architectures for CGAL.
2009-04-28 11:07:19 +01:00
ff66dc68d4 Merge branch 'master' into cvm 2009-04-25 13:47:54 +01:00
de2a74b2fa use gcc, not g++ for flex 2009-04-23 16:20:57 +01:00
2c48a69e50 scotch decomposition method 2009-04-23 14:44:23 +01:00
ef1c6a201f Merge branch 'master' into cvm 2009-04-03 18:16:53 +01:00
9c95fd034b Added initial support for LinuxPPC. 2009-04-02 12:26:41 +01:00
76210e7dff Merge branch 'master' into cvm 2009-04-01 17:15:07 +01:00
4dedd47382 Changed the option to select the generation of a C++ scanner to the backward compatible -+. 2009-03-31 20:14:40 +01:00
67f828d299 Changed to gcc 4.3.3, linking mpfr from ThirdParty to CV3DMesher. 2009-03-30 17:00:28 +01:00
6218702064 Merge branch 'master' into cvm 2009-03-30 16:48:32 +01:00
b2ad57c69b Added basic support for QsNet. 2009-03-28 19:53:06 +00:00
444ba19c00 Changing to boost 1.38 installed in ThirdParty. Setting template depth to 60, again. 2009-03-18 10:12:37 +00:00
47bd172682 pushed too soon before fixing typo on wmakeLnInclude 2009-03-04 14:31:37 +01:00
db8febe9f9 wmakeLnInclude -f now also changes the default linking to 'ln -sf'
- this seems to be the most sensible solution.
  The changed time stamps on the links doesn't seem to bother make at all.
2009-03-04 13:14:11 +01:00
f80012000b removed checking since overwrites files 2009-02-27 10:43:18 +00:00
d3ec38f0aa Merge commit 'OpenCFD/master' into olesenm 2009-02-06 10:40:19 +01:00
b79ccb9293 sunos changes 2009-02-05 09:30:26 +00:00
5afc0db5a8 Solaris port 2009-02-02 12:23:41 +00:00
5ba68da75b wmake script cosmetics 2009-01-10 08:25:31 +01:00
0061e9ed03 added Foam::FOAMbuild to Foam::FOAMversion
- avoids problems with finding files based on FOAMversion
  (reported by Mattijs)
2009-01-09 09:11:50 +01:00
1cd18ce0b5 added wmakeLnIncludeAll - can be quite useful after a wcleanLnIncludeAll 2009-01-07 21:06:08 +01:00
cdd2266467 Merge commit 'OpenCFD/master' into olesenm
Conflicts:

	src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C
	src/OpenFOAM/db/IOstreams/Pstreams/OPstream.C
2009-01-07 09:39:17 +01:00
eb2e37b296 SiCortex port 2009-01-06 21:41:20 +00:00
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
7386e4c94d Changed "flex++" to "flex --c++" to avoid the need to create the link from "flex" to "flex++" after installing "flex". 2008-12-30 19:02:45 +00:00
d3ab1df730 fixed silly mistakes in wmakePrintBuild 2008-12-19 19:04:09 +01:00
14314fc126 correcting script for refs/heads/master instead of HEAD
- if local repo is up to date, HEAD and origin/HEAD are the same
  so id was returned twice
2008-12-19 16:39:35 +00:00
0c5571519f changes to build version string
- version is WM_PROJECT_VERSION prefix + SHA1 from current git head
- move double quotes from make rules to global.Cver for extra safety
2008-12-19 13:20:14 +01:00
5f7d2acb9c tweaked build version strings
- added wmakePrintBuild -check, -update, -version options
- only update .build cache when explictly requested and
  from within the wmake Cver rules
- use -check option to avoid unnecessary remake in src/Allwmake
2008-12-19 12:13:08 +01:00
6a4b83bc43 Added wmakePrintBuild for determining the build version
- the $WM_PROJECT_DIR/.build file is automatically updated.
  This file is (and must be) ignored by git.
2008-12-19 11:11:20 +01:00
b5f06a3833 use git describe for header version, but use existing wmake framework 2008-12-18 19:54:13 +01:00
367639bf02 Merge commit 'OpenCFD/master' into olesenm 2008-11-19 18:57:15 +01:00
16e9f10e22 Added support for HP-MPI. 2008-11-19 14:57:06 +00:00
9a2c1adb79 wmakeLnInclude : also ignore 'noLink' directories
- useful for avoiding links on older versions, or for 'hiding' contents
2008-11-12 23:33:51 +01:00
50427d7712 leave *~ files alone in wcleanAll and drop wcleanAlmostAll 2008-10-23 08:16:43 +02:00
50a2ddfcc7 bin/ wmake/ script updates
- send error messages to stderr
  - added -h/-help options where some were missing
  - changed 3-space to 4-space indentation
  - where possible, allow multiple directories from the command-line
2008-10-22 14:33:59 +02:00
135c6d0536 colouring; indentation 2008-10-22 09:23:59 +01:00
bd78708543 just use plain ssh for GridEngine compilation 2008-10-20 17:28:33 +02:00
1bc24ee3b8 Removed the host prefix as this inhibits correct error parsing by intelligent editors. 2008-10-16 21:50:09 +01:00
1f8bf1bac8 Removed the host prefix as this inhibits correct error parsing by intelligent editors. 2008-10-16 21:44:01 +01:00