From 54e0f059e3e4fdaee9e39a59d1bbe5faaf5f2ae4 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 14 Sep 2018 09:59:00 +0200 Subject: [PATCH] #3154creaToolsToolsFeatureNewNormalbranch mxecc --- Linux-mxe/compile-3rd.sh | 49 +++++++++++++++++++++++++++++++------ Linux-mxe/scripts/config.sh | 2 ++ 2 files changed, 43 insertions(+), 8 deletions(-) diff --git a/Linux-mxe/compile-3rd.sh b/Linux-mxe/compile-3rd.sh index 2b0c7b4..42b80ca 100644 --- a/Linux-mxe/compile-3rd.sh +++ b/Linux-mxe/compile-3rd.sh @@ -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 diff --git a/Linux-mxe/scripts/config.sh b/Linux-mxe/scripts/config.sh index 2cda9e7..78e98e2 100644 --- a/Linux-mxe/scripts/config.sh +++ b/Linux-mxe/scripts/config.sh @@ -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 -- 2.45.1