#!/bin/bash -e
-scriptDirName=$(dirname $(readlink -f $0) )
+
+#This code is Mac
+function EEDreadlink() {
+ DIR="${1%/*}"
+ (cd "$DIR" && echo "$(pwd -P)")
+}
+
+
+#EED 2120-08-25 This code is not working in MacOS so we use EEDreadlink()
+#EED scriptDirName=$(dirname $(Ereadlink -f $0) )
+scriptDirName=$(dirname $(Ereadlink $0) )/Linux
#########################################################################
############ Local Functions #######################################
if [ `checkVal $command all 3rd 3rd-gdcm` == true ] ; then
bigDisplay "INSTALL $gdcmVersion"
source scripts/ThirdParty-install-gdcm.sh
+ pwd
+ echo $scriptDirName
cd $scriptDirName
fi
##
## fi
- wget https://www.vtk.org/files/release/8.2/VTK-8.2.0.zip
- unzip VTK-8.2.0.zip
-
-
+ wget https://www.vtk.org/files/release/8.2/VTK-8.2.0.zip
+ unzip VTK-8.2.0.zip
#if [ $buildType = "Debug" ]
#then
if [ $OperatingSystem = "MacOS" ]
then
cmake -D CMAKE_CXX_COMPILER:FILE=/usr/bin/g++
+ echo
fi
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
cmake -D BUILD_SHARE_LIBS:BOOL=ON -D VTK_USE_CARBON:BOOL=OFF -D VTK_USE_COCOA:BOOL=ON CMakeCache.txt
cmake -D VTK_USE_TCL:BOOL=OFF CMakeCache.txt
CMakeCache.txt
+ echo
fi
cmake -D VTK_Group_Views:BOOL=ON -D VTK_Group_Qt:BOOL=ON CMakeCache.txt
wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm13_2018_05_28_vtk8.zip
unzip gdcm13_2018_05_28_vtk8.zip
+
# mv gdcm13_2018_05_28_vtk8 gdcm
if [ $buildType = "Debug" ]