Package Details: insight-toolkit 5.3.0-2

Git Clone URL: (read-only, click to copy)
Package Base: insight-toolkit
Description: Cross-platform system that provides developers with an extensive suite of software tools for image analysis
Upstream URL:
Licenses: Apache
Submitter: joelsc
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 37
Popularity: 0.000005
First Submitted: 2008-11-16 19:36 (UTC)
Last Updated: 2023-08-13 15:11 (UTC)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

userfriendly commented on 2023-07-05 18:32 (UTC)

Thanks for fixing :-)

userfriendly commented on 2023-07-05 16:29 (UTC) (edited on 2023-07-05 16:32 (UTC) by userfriendly)

The requested URL returned error: 404 ==> ERROR: Error while downloading

Thanks for fixing :-)

F1729 commented on 2023-06-02 16:43 (UTC)

The current state of the package (5.2.1-15) is not compatible with the upgrade to GCC 13.1. It can be built by temporarily downgrading to GCC 12.2.

hottea commented on 2022-08-15 08:17 (UTC) (edited on 2022-08-15 08:17 (UTC) by hottea)

@crmullins Or you could delete this pkg, and continue to contribute to itk.

crmullins commented on 2022-08-15 06:56 (UTC)

@hottea I encountered this, thanks for pointing it out. Would like to push forward your/m-pilia’s split package contribution, so I’ll keep an eye on this or find a workaround.

hottea commented on 2022-08-15 06:25 (UTC)

@crmullins You might wanna check this itk on AUR, and this upstream issue.

crmullins commented on 2022-08-14 20:29 (UTC)

Sorry this fell off my radar. I'm running into some issues testing entshuld's contribution, but will update this today if I'm able to get it built and packaged.

entshuld commented on 2022-01-27 03:25 (UTC) (edited on 2022-01-28 05:19 (UTC) by entshuld)

I have some amendments to share

  • 1. Allow Python wrappers independent of locale.
  • 2. ```makepkg -C``` exists to clean if the user so wishes
  • 3. use pkgname and pkgver instead of InsightToolkit

@@ -23,19 +23,56 @@ optdepends=('python2: build python wrapping'
             'clang: for swig'
        'castxml-git: for ITK')
 makedepends=('cmake' 'git')

+safe_flags+=" -fcf-protection -fno-plt"
+safe_flags+=" -fstack-clash-protection -Wformat"
+safe_flags+=" -Werror=format-security"
+generic_flags="-pipe -fno-plt -fPIC -fopenmp"
+generic_flags+=" -march=native"
+generic_flags+=" -mtune=native ${safe_flags}"
+opt_flags="${generic_flags} -O3"
+generic_flags="${generic_flags} -O2"
+export COPTFLAGS="${opt_flags}"
+export CPPFLAGS="$generic_flags"
+export CFLAGS="$generic_flags"
+export FFLAGS="$generic_flags"
+export FCFLAGS="$generic_flags"
+export F90FLAGS="$generic_flags"
+export F77FLAGS="$generic_flags"
+export LANG=C
+export OMPI_MCA_opal_cuda_support=0
+export OMPI_MCA_mpi_oversubscribe=0
+# from here:
+prepare() {
+  cd "$srcdir"
+  [[ -d InsightToolkit-"${pkgver}" ]] &&
+    mv InsightToolkit-"${pkgver}" "${pkgname}"-"${pkgver}"

 build() {
   cd "$srcdir"
-  rm -rf build
-  mkdir build
-  cd build

-  cmake \
+  cmake -S "${srcdir}/${pkgname}-${pkgver}" \
+    -B "${srcdir}/${pkgname}-${pkgver}"/build \
@@ -56,16 +93,25 @@ build() {
     -DModule_ITKIOTransformMINC:BOOL=ON \
-    -DModule_SimpleITKFilters:BOOL=ON \
-    ../InsightToolkit-${pkgver}
+    -DModule_SimpleITKFilters:BOOL=ON

-  make
+  # 4: to your liking
+  make -j4 -s -C "${srcdir}/${pkgname}-${pkgver}"/build

 package() {
-  cd "$srcdir"/build
+  cd "${srcdir}/${pkgname}-${pkgver}"/build
+  make -C "${srcdir}"/"${pkgname}-${pkgver}"/build DESTDIR="${pkgdir}" install

-  make DESTDIR="${pkgdir}" install
+  # Based on AUR's itk-git package
+  # (quick fix for
+  install -dm755 "${pkgdir}"/usr/lib
+  _pyver=$(python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))')
+  find "${pkgdir}" -type d -name "python${_pyver}" -print0 -quit | xargs -0 mv -vt "${pkgdir}/usr/lib"
+  python -O -m compileall "${pkgdir}/usr/lib"

hottea commented on 2022-01-01 06:26 (UTC)

@m-pilia @crmullins Maybe merge insight-toolkit, itk, and python-itk, and keep only itk and python-itk? I currently maintain itk-git and python-itk-git here.

m-pilia commented on 2021-12-31 13:17 (UTC)

Hi @crmullins! I was wondering if we could improve a bit the Python distribution of ITK.

The current situation is: the Python wheels can be built from your PKGBUILD but are disabled by default and require manual intervention. There is also a separate package for the Python part only (python-itk, that I maintain) but it does not make sense to build the wheels separately from insight-toolkit, since it is a lot of duplicated build time. (context in this comment).

The best solution would be to turn insight-toolkit into a split package, so that it is possible to build both insight-toolkit and python-itk from the same PKGBUILD.

Hottea has kindly created a split PKGBUILD here. Could you consider updating this package to use Hottea's approach? (pushing the split package will require to delete python-itk first: feel free to nominate my package for deletion because of this reason).