From 8f439546eec74ecb08a8f3da6d248cdc33d5c7be Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 30 Dec 2015 12:14:53 +0100 Subject: [PATCH] #2787 creaToolsTools Bug New Normal - Fedora 23 : executable not linking with share libraries --- Linux/scripts/bbtkGEditorVariables.sh | 1 + Linux/scripts/bbtkVariables.sh | 2 +- Linux/scripts/creaBrukerVariables.sh | 2 +- Linux/scripts/creaContoursVariables.sh | 15 ++++++++------- Linux/scripts/creaImageIOVariables.sh | 10 ++++++---- Linux/scripts/creaMaracasVariables.sh | 2 ++ Linux/scripts/creaMiniToolsVariables.sh | 1 + Linux/scripts/creaRigidRegistrationVariables.sh | 3 +-- Linux/scripts/creaToolsVariables.sh | 2 +- Linux/scripts/creaVariables.sh | 2 +- Linux/scripts/creaVtkVariables.sh | 5 +++-- Linux/scripts/creaenvironmentVariables.sh | 2 +- 12 files changed, 27 insertions(+), 20 deletions(-) diff --git a/Linux/scripts/bbtkGEditorVariables.sh b/Linux/scripts/bbtkGEditorVariables.sh index ae12daa..5f8828c 100644 --- a/Linux/scripts/bbtkGEditorVariables.sh +++ b/Linux/scripts/bbtkGEditorVariables.sh @@ -28,6 +28,7 @@ binfolder=$2/creatools_bin/$1Bin cd $binfolder +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt cmake -D creaMaracasVisu_DIR:PATH=$2/creatools_bin/creaMaracasVisuBin CMakeCache.txt diff --git a/Linux/scripts/bbtkVariables.sh b/Linux/scripts/bbtkVariables.sh index 575fcd3..b9fa9a5 100644 --- a/Linux/scripts/bbtkVariables.sh +++ b/Linux/scripts/bbtkVariables.sh @@ -42,7 +42,7 @@ boolgdcm2=OFF boolgdcm1=ON fi -cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt echo ============================================================================================= echo cmake -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=$3 -D BUILD_BBTK_DOC_GUIDES_PDF:BOOL=$3 -D BUILD_BBTK_DOC_DOXYGEN:BOOL=$3 -D BUILD_BBTK_DOC_PACKAGE:BOOL=$3 CMakeCache.txt diff --git a/Linux/scripts/creaBrukerVariables.sh b/Linux/scripts/creaBrukerVariables.sh index 043218b..0a81b1e 100644 --- a/Linux/scripts/creaBrukerVariables.sh +++ b/Linux/scripts/creaBrukerVariables.sh @@ -43,7 +43,7 @@ boolgdcm1=ON fi #cmake -D BUILD_ALL:BOOL=OFF CMakeCache.txt -cmake -D BUILD_creaBruker_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D BUILD_creaBruker_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt diff --git a/Linux/scripts/creaContoursVariables.sh b/Linux/scripts/creaContoursVariables.sh index d79d7c3..df3e040 100644 --- a/Linux/scripts/creaContoursVariables.sh +++ b/Linux/scripts/creaContoursVariables.sh @@ -29,15 +29,16 @@ binfolder=$2/creatools_bin/$1Bin cd $binfolder -cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt -cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt -cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt +cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt +cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt +cmake -D BBTK_DIR:PATH=$2/creatools_bin/bbtkBin CMakeCache.txt cmake -D creaEnvironment_DIR:PATH=$2/creatools_bin/creaEnvironmentBin CMakeCache.txt cmake -D creaMaracasVisu_DIR:PATH=$2/creatools_bin/creaMaracasVisuBin CMakeCache.txt -cmake -D creaImageIO_DIR:PATH=$2/creatools_bin/creaImageIOBin CMakeCache.txt -cmake -D BUILD_BBTK_PACKAGE_creaContours:BOOL=ON CMakeCache.txt -cmake -D creaContours_DOC:BOOL=$3 CMakeCache.txt -cmake -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt +cmake -D creaImageIO_DIR:PATH=$2/creatools_bin/creaImageIOBin CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaContours:BOOL=ON CMakeCache.txt +cmake -D creaContours_DOC:BOOL=$3 CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt cmake CMakeCache.txt diff --git a/Linux/scripts/creaImageIOVariables.sh b/Linux/scripts/creaImageIOVariables.sh index 44febc9..077ddd1 100644 --- a/Linux/scripts/creaImageIOVariables.sh +++ b/Linux/scripts/creaImageIOVariables.sh @@ -43,10 +43,12 @@ boolgdcm2=OFF boolgdcm1=ON fi -cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt -cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt -cmake -D creaBruker_DIR:PATH=$currentdir/creatools_bin/creaBrukerBin CMakeCache.txt -cmake -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON CMakeCache.txt + +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt +cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt +cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt +cmake -D creaBruker_DIR:PATH=$currentdir/creatools_bin/creaBrukerBin CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON CMakeCache.txt cmake -D BUILD_creaImageIO_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt cmake -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt diff --git a/Linux/scripts/creaMaracasVariables.sh b/Linux/scripts/creaMaracasVariables.sh index d83569b..8ed7953 100644 --- a/Linux/scripts/creaMaracasVariables.sh +++ b/Linux/scripts/creaMaracasVariables.sh @@ -32,6 +32,8 @@ currentdir=$2 binfolder=$2/creatools_bin/$1Bin cd $binfolder + +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON CMakeCache.txt diff --git a/Linux/scripts/creaMiniToolsVariables.sh b/Linux/scripts/creaMiniToolsVariables.sh index 63c838b..c978ac1 100644 --- a/Linux/scripts/creaMiniToolsVariables.sh +++ b/Linux/scripts/creaMiniToolsVariables.sh @@ -32,6 +32,7 @@ currentdir=$2 binfolder=$2/creatools_bin/$1Bin cd $binfolder +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt cmake -D BUILD_BBTK_PACKAGE_creaMiniTools:BOOL=ON CMakeCache.txt diff --git a/Linux/scripts/creaRigidRegistrationVariables.sh b/Linux/scripts/creaRigidRegistrationVariables.sh index 63fde56..e1d89bc 100644 --- a/Linux/scripts/creaRigidRegistrationVariables.sh +++ b/Linux/scripts/creaRigidRegistrationVariables.sh @@ -29,8 +29,7 @@ binfolder=$2/creatools_bin/$1Bin cd $binfolder - -cmake -D crea_DIR:PATH=$currentdir$2 -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON -D BUILD_creaRigidRegistration_DOC:BOOL=$3 -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D crea_DIR:PATH=$currentdir$2 -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON -D BUILD_creaRigidRegistration_DOC:BOOL=$3 -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt cmake CMakeCache.txt cmake CMakeCache.txt diff --git a/Linux/scripts/creaToolsVariables.sh b/Linux/scripts/creaToolsVariables.sh index a38e73a..1d05435 100644 --- a/Linux/scripts/creaToolsVariables.sh +++ b/Linux/scripts/creaToolsVariables.sh @@ -29,7 +29,7 @@ binfolder=$2/creatools_bin/$1Bin cd $binfolder -cmake -D CREATOOLS_SOURCE_PATH:PATH=$currentdir/creatools_bin/ CMakeCache.txt +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D CREATOOLS_SOURCE_PATH:PATH=$currentdir/creatools_bin/ CMakeCache.txt cmake CMakeCache.txt diff --git a/Linux/scripts/creaVariables.sh b/Linux/scripts/creaVariables.sh index a2f8daa..e674dce 100644 --- a/Linux/scripts/creaVariables.sh +++ b/Linux/scripts/creaVariables.sh @@ -31,7 +31,7 @@ binfolder=$2/creatools_bin/$1Bin cd $binfolder -cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt cmake CMakeCache.txt cmake CMakeCache.txt diff --git a/Linux/scripts/creaVtkVariables.sh b/Linux/scripts/creaVtkVariables.sh index c7e7053..c9ee2ba 100644 --- a/Linux/scripts/creaVtkVariables.sh +++ b/Linux/scripts/creaVtkVariables.sh @@ -32,8 +32,9 @@ currentdir=$2 binfolder=$2/creatools_bin/$1Bin cd $binfolder -cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt -cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC CMakeCache.txt +cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt +cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt cmake -D BUILD_BBTK_PACKAGE_creaVtk:BOOL=ON CMakeCache.txt cmake -D creaVtk_DOC:BOOL=$3 CMakeCache.txt cmake -D BUILD_BBTK_PACKAGE_creaVtk_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt diff --git a/Linux/scripts/creaenvironmentVariables.sh b/Linux/scripts/creaenvironmentVariables.sh index 37469cf..d47474c 100644 --- a/Linux/scripts/creaenvironmentVariables.sh +++ b/Linux/scripts/creaenvironmentVariables.sh @@ -31,7 +31,7 @@ binfolder=$2/creatools_bin/$1Bin cd $binfolder -cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt +cmake -D CMAKE_CXX_FLAGS:STRING=-fPIC -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt cmake CMakeCache.txt -- 2.47.1