Skip to content

Commit 8a8530e

Browse files
authored
Merge pull request #2418 from SCIInstitute/try_itk-5.4.4
Upgrade to ITK 5.4.4, fixes for GCC 13
2 parents d80558b + 9285806 commit 8a8530e

File tree

10 files changed

+31
-9
lines changed

10 files changed

+31
-9
lines changed

.github/workflows/build-linux-debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: cmake
7575
shell: bash -l {0}
76-
run: conda activate shapeworks && mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS=-g -DITK_DIR=$HOME/install/lib/cmake/ITK-5.3 -DVTK_DIR=$HOME/install/lib/cmake/vtk-9.5 -DXLNT_DIR=$HOME/install -DLIBIGL_DIR=$HOME/install -DOpenVDB_DIR=$HOME/install/lib/cmake/OpenVDB -DGEOMETRYCENTRAL_DIR=$HOME/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBuild_Studio=ON -DJKQTCommonSharedLib_DIR=$HOME/install/lib/cmake/JKQTCommonSharedLib -DJKQTMathTextSharedLib_DIR=$HOME/install/lib/cmake/JKQTMathTextSharedLib -DJKQTPlotterSharedLib_DIR=$HOME/install/lib/cmake/JKQTPlotterSharedLib -DACVD_DIR=$HOME/install -DCMAKE_PREFIX_PATH=${CONDA_PREFIX} -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/shapeworks-install -DUSE_ORIGIN_RPATH=ON ..
76+
run: conda activate shapeworks && mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS=-g -DITK_DIR=$HOME/install/lib/cmake/ITK-5.4 -DVTK_DIR=$HOME/install/lib/cmake/vtk-9.5 -DXLNT_DIR=$HOME/install -DLIBIGL_DIR=$HOME/install -DOpenVDB_DIR=$HOME/install/lib/cmake/OpenVDB -DGEOMETRYCENTRAL_DIR=$HOME/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBuild_Studio=ON -DJKQTCommonSharedLib_DIR=$HOME/install/lib/cmake/JKQTCommonSharedLib -DJKQTMathTextSharedLib_DIR=$HOME/install/lib/cmake/JKQTMathTextSharedLib -DJKQTPlotterSharedLib_DIR=$HOME/install/lib/cmake/JKQTPlotterSharedLib -DACVD_DIR=$HOME/install -DCMAKE_PREFIX_PATH=${CONDA_PREFIX} -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/shapeworks-install -DUSE_ORIGIN_RPATH=ON ..
7777

7878
- name: Check space6
7979
run: df -h

.github/workflows/build-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272

7373
- name: cmake
7474
shell: bash -l {0}
75-
run: conda activate shapeworks && mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS=-g -DITK_DIR=$HOME/install/lib/cmake/ITK-5.3 -DVTK_DIR=$HOME/install/lib/cmake/vtk-9.5 -DXLNT_DIR=$HOME/install -DLIBIGL_DIR=$HOME/install -DOpenVDB_DIR=$HOME/install/lib/cmake/OpenVDB -DGEOMETRYCENTRAL_DIR=$HOME/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBuild_Studio=ON -DJKQTCommonSharedLib_DIR=$HOME/install/lib/cmake/JKQTCommonSharedLib -DJKQTMathTextSharedLib_DIR=$HOME/install/lib/cmake/JKQTMathTextSharedLib -DJKQTPlotterSharedLib_DIR=$HOME/install/lib/cmake/JKQTPlotterSharedLib -DACVD_DIR=$HOME/install -DCMAKE_PREFIX_PATH=${CONDA_PREFIX} -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/shapeworks-install -DUSE_ORIGIN_RPATH=ON -DGA_MEASUREMENT_ID=$GA_MEASUREMENT_ID -DGA_API_SECRET=$GA_API_SECRET ..
75+
run: conda activate shapeworks && mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS=-g -DITK_DIR=$HOME/install/lib/cmake/ITK-5.4 -DVTK_DIR=$HOME/install/lib/cmake/vtk-9.5 -DXLNT_DIR=$HOME/install -DLIBIGL_DIR=$HOME/install -DOpenVDB_DIR=$HOME/install/lib/cmake/OpenVDB -DGEOMETRYCENTRAL_DIR=$HOME/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBuild_Studio=ON -DJKQTCommonSharedLib_DIR=$HOME/install/lib/cmake/JKQTCommonSharedLib -DJKQTMathTextSharedLib_DIR=$HOME/install/lib/cmake/JKQTMathTextSharedLib -DJKQTPlotterSharedLib_DIR=$HOME/install/lib/cmake/JKQTPlotterSharedLib -DACVD_DIR=$HOME/install -DCMAKE_PREFIX_PATH=${CONDA_PREFIX} -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/shapeworks-install -DUSE_ORIGIN_RPATH=ON -DGA_MEASUREMENT_ID=$GA_MEASUREMENT_ID -DGA_API_SECRET=$GA_API_SECRET ..
7676

7777
- name: Check space5
7878
run: df -h

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
# Note the current convention is to use the -S and -B options here to specify source
110110
# and build directories, but this is only available with CMake 3.13 and higher.
111111
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
112-
run: conda activate shapeworks && cmake $GITHUB_WORKSPACE -DCMAKE_CXX_FLAGS="-FS" -DCMAKE_C_FLAGS="-FS" -DCMAKE_CXX_FLAGS_RELEASE="-FS /Zm500 /Zi /GL /MD /O2 /Ob3 /DNDEBUG /EHsc" -DCMAKE_C_FLAGS_RELEASE="-FS /Zi /GL /MD /O2 /Ob3 /DNDEBUG /EHsc" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="-LTCG /DEBUG" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-LTCG /DEBUG" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DITK_DIR="C:\deps\lib\cmake\ITK-5.3" -DVTK_DIR="C:\deps\lib\cmake\vtk-9.5" -DXLNT_DIR="C:\deps" -DLIBIGL_DIR="C:\deps" -DJKQTCommonSharedLib_DIR="C:/deps/lib/cmake/JKQTCommonSharedLib" -DJKQTMathTextSharedLib_DIR="C:/deps/lib/cmake/JKQTMathTextSharedLib" -DJKQTPlotterSharedLib_DIR="C:/deps/lib/cmake/JKQTPlotterSharedLib" -DOpenVDB_DIR="C:\deps\lib\cmake\OpenVDB" -DGEOMETRYCENTRAL_DIR="C:\deps" -DACVD_DIR="C:\deps" -DBuild_Studio=ON -DGA_MEASUREMENT_ID=$GA_MEASUREMENT_ID -DGA_API_SECRET=$GA_API_SECRET
112+
run: conda activate shapeworks && cmake $GITHUB_WORKSPACE -DCMAKE_CXX_FLAGS="-FS" -DCMAKE_C_FLAGS="-FS" -DCMAKE_CXX_FLAGS_RELEASE="-FS /Zm500 /Zi /GL /MD /O2 /Ob3 /DNDEBUG /EHsc" -DCMAKE_C_FLAGS_RELEASE="-FS /Zi /GL /MD /O2 /Ob3 /DNDEBUG /EHsc" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="-LTCG /DEBUG" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-LTCG /DEBUG" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DITK_DIR="C:\deps\lib\cmake\ITK-5.4" -DVTK_DIR="C:\deps\lib\cmake\vtk-9.5" -DXLNT_DIR="C:\deps" -DLIBIGL_DIR="C:\deps" -DJKQTCommonSharedLib_DIR="C:/deps/lib/cmake/JKQTCommonSharedLib" -DJKQTMathTextSharedLib_DIR="C:/deps/lib/cmake/JKQTMathTextSharedLib" -DJKQTPlotterSharedLib_DIR="C:/deps/lib/cmake/JKQTPlotterSharedLib" -DOpenVDB_DIR="C:\deps\lib\cmake\OpenVDB" -DGEOMETRYCENTRAL_DIR="C:\deps" -DACVD_DIR="C:\deps" -DBuild_Studio=ON -DGA_MEASUREMENT_ID=$GA_MEASUREMENT_ID -DGA_API_SECRET=$GA_API_SECRET
113113

114114
- name: Build
115115
working-directory: "C:/build"

Libs/Optimize/Container/GenericContainer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class GenericContainer : public itk::DataObject {
2828
itkNewMacro(Self);
2929

3030
/** Run-time type information (and related methods). */
31-
itkTypeMacro(ParticleContainer, itk::DataObject);
31+
itkTypeMacro(GenericContainer, itk::DataObject);
3232

3333
/** Returns a reference to the object associated with index k. If the index
3434
k does not already exist, this method inserts a new entry for k. */

Libs/Optimize/Container/GenericContainerArray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GenericContainerArray : public std::vector<typename GenericContainer<T>::P
3030
itkNewMacro(Self);
3131

3232
/** Run-time type information (and related methods). */
33-
itkTypeMacro(ParticleContainer, Observer);
33+
itkTypeMacro(GenericContainerArray, Observer);
3434

3535
/** Callbacks that may be defined by a subclass. If a subclass defines one
3636
of these callback methods, the corresponding flag in m_DefinedCallbacks

Libs/Optimize/Container/MeanCurvatureContainer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MeanCurvatureContainer : public GenericContainerArray<TNumericType> {
3131
itkNewMacro(Self);
3232

3333
/** Run-time type information (and related methods). */
34-
itkTypeMacro(ParticleMeanCurvatureAttribute, GenericContainerArray);
34+
itkTypeMacro(MeanCurvatureContainer, GenericContainerArray);
3535

3636
void SetVerbosity(unsigned int val) { m_verbosity = val; }
3737

Libs/Optimize/GradientDescentOptimizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class GradientDescentOptimizer : public itk::Object {
4343
typedef shapeworks::ImageDomainWithGradients<TGradientNumericType> DomainType;
4444

4545
/** Run-time type information (and related methods). */
46-
itkTypeMacro(ParticleGradientDescentPositionOptimizer, Object);
46+
itkTypeMacro(GradientDescentOptimizer, Object);
4747

4848
/** Dimensionality of the domain of the particle system. */
4949
itkStaticConstMacro(Dimension, unsigned int, VDimension);

Support/xlnt.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/include/xlnt/cell/phonetic_run.hpp b/include/xlnt/cell/phonetic_run.hpp
2+
index cbf62ea7..9f20384e 100644
3+
--- a/include/xlnt/cell/phonetic_run.hpp
4+
+++ b/include/xlnt/cell/phonetic_run.hpp
5+
@@ -24,6 +24,7 @@
6+
#pragma once
7+
8+
#include <string>
9+
+#include <cstdint>
10+
11+
#include <xlnt/xlnt_config.hpp>
12+

Testing/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# GTest setup
22
#find_package(GTest REQUIRED)
33

4+
set(BUILD_SHARED_LIBS_SAVED ${BUILD_SHARED_LIBS})
5+
set(BUILD_SHARED_LIBS OFF)
6+
47
# fetch googletest
58
include(FetchContent)
69
FetchContent_Declare(
@@ -14,6 +17,10 @@ if(NOT googletest_POPULATED)
1417
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
1518
endif()
1619

20+
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
21+
22+
# Restore BUILD_SHARED_LIBS
23+
set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_SAVED})
1724

1825
# NOTE: must call enable_testing() before this in the top-level CMakeLists.txt
1926

build_dependencies.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ BUILD_TYPE="Release"
2222
BUILD_LOG="build_dependencies.log"
2323
VTK_VER="v9.5.0"
2424
VTK_VER_STR="9.5"
25-
ITK_VER="v5.3.0"
26-
ITK_VER_STR="5.3"
25+
ITK_VER="v5.4.4"
26+
ITK_VER_STR="5.4"
2727
QT_MIN_VER="5.15.4"
2828
XLNT_VER="538f80794c7d736afc0a452d21313606cc5538fc"
2929
JKQTPLOTTER_VER="v2022.11.30-refix-rpath"
@@ -201,6 +201,9 @@ build_xlnt()
201201
# move conflicting file out of the way so it builds on osx
202202
mv third-party/libstudxml/version third-party/libstudxml/version.bak
203203

204+
# Fix for GCC 13
205+
echo '#include <cstdint>' >> include/xlnt/xlnt_config.hpp
206+
204207
# fix rpath
205208
sed -i'.original' -e 's/INSTALL_NAME_DIR.*/)/' source/CMakeLists.txt
206209

0 commit comments

Comments
 (0)