]> Creatis software - creaToolsTools.git/commitdiff
#3154creaToolsToolsFeatureNewNormalbranch mxecc mxecc
authorEduardo DAVILA <davila@localhost.localdomain>
Fri, 14 Sep 2018 07:59:00 +0000 (09:59 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Fri, 14 Sep 2018 07:59:00 +0000 (09:59 +0200)
Linux-mxe/compile-3rd.sh
Linux-mxe/scripts/config.sh

index 2b0c7b419aa39d776ff72df49802e8cdffc901e8..42b80ca1deb8c0803baa1b5437d91e20144c9db0 100644 (file)
@@ -1,14 +1,47 @@
 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
index 2cda9e7f08fe3c9d5b4e975b132314859f41b41b..78e98e258c89c0728397dd9137b496d927502573 100644 (file)
@@ -19,3 +19,5 @@ creatoolsInstall=$creatoolsBase/ci
 creatoolsBin=$creatoolsBase/cb
 cmakeVar=$creatoolsBase/mxe/usr/bin/x86_64-w64-mingw32.shared-cmake
 corenumber=`getncore`
+buildType=Release
+installPrefixThird=$creatoolsBase/tpli