baseDir="$(pwd)"
source scripts/config.sh
-dnf -y install \
- autoconf automake bash bison bzip2 flex gcc-c++ \
- gdk-pixbuf2-devel gettext git gperf intltool make \
- sed libffi-devel libtool openssl-devel p7zip patch \
- perl pkgconfig python ruby scons unzip wget xz
+#dnf -y install \
+# autoconf automake bash bison bzip2 flex gcc-c++ \
+# gdk-pixbuf2-devel gettext git gperf intltool make \
+# sed libffi-devel libtool openssl-devel p7zip patch \
+# perl pkgconfig python ruby scons unzip wget xz
mkdir $creatoolsBase
cd $creatoolsBase
-git clone https://github.com/mxe/mxe.git
-cd mxe
-make -j$corenumber MXE_TARGETS='x86_64-w64-mingw32.shared' boost vtk itk wxwidgets wt
+
+################### STEP 1 ######################
+#git clone https://github.com/mxe/mxe.git
+#cd mxe
+#make -j$corenumber MXE_TARGETS='x86_64-w64-mingw32.shared' boost vtk itk wxwidgets wt
+
+
+
+################### STEP 2 ######################
+
+rm -rf $creatoolsBase/tplb
+rm -rf $creatoolsBase/tpli
+
+
+dirBin=$creatoolsBase/tplb/gdcm-Bin
+
+mkdir $creatoolsBase/tpls
+mkdir -p $dirBin
+mkdir -p $installPrefixThird
+
+cd $creatoolsBase/tpls
+
+wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm_10_Mars_2017-vtk7.tar.gz
+tar -xvzf gdcm_10_Mars_2017-vtk7.tar.gz
+cd $dirBin
+
+
+$cmakeVar -G"Unix Makefiles" -H../../tpls/gdcm -B$dirBin/
+$cmakeVar -D CMAKE_BUILD_TYPE:STRING=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
+##$cmakeVar -D VTK_DIR:PATH=$VTK_DIR CMakeCache.txt
+$cmakeVar -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
+##$cmakeVar -D CMAKE_CXX_FLAGS:STRING=-std=${stdCompiler} CMakeCache.txt
+
+make -j $corenumber
+make -j $corenumber install
+cd ..
cd $baseDir