[Rtk-users] How do I compile the files in the wrapping folder?

Simon Rit simon.rit at creatis.insa-lyon.fr
Tue Jan 18 04:49:03 EST 2022


Hi,
To compile python packages, you must turn on ITK_WRAP_PYTHON. For example,
I use
cmake $SCRIPT_PATH/itk \
    -DITKPythonPackage_ITK_BINARY_REUSE:BOOL=OFF \
    -DITKPythonPackage_WHEEL_NAME:STRING="itk" \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DBUILD_EXAMPLES=OFF \
    -DBUILD_SHARED_LIBS=OFF \
    -DBUILD_TESTING=OFF \
    -DITK_WRAP_PYTHON=ON \
    -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH \
    -DModule_RTK:BOOL=ON \
    -DModule_RTK_GIT_TAG="" \
    -DRTK_USE_CUDA:BOOL=ON \
    -DRTK_BUILD_APPLICATIONS:BOOL=OFF \
    -DPY_SITE_PACKAGES_PATH:STRING=${BINDINGS_PATH} \
    -DITK_WRAP_unsigned_short:BOOL=ON \
    -DITK_WRAP_double:BOOL=ON \
    -DITK_WRAP_complex_double:BOOL=ON \
    -DITK_WRAP_IMAGE_DIMS:STRING="2;3;4"
to reproduce the options used by ITK to create module python packages.
Simon

On Mon, Jan 17, 2022 at 11:27 PM 雅之 服部 <masayuki.h.0215 at gmail.com> wrote:

> Dear rtk-users
>
> I look at the following question and I want to compile the python
> wrappings.
>
> But I didn't know how to do it. I haven't used ITK so much, so I don't know.
>
> I would appreciate it if you could tell me..
>
> Thank you.
>
> [Rtk-users] Python RTK + CUDA  <https://public.kitware.com/pipermail/rtk-users/2021-September/011102.html>  *Gabriele Belotti in *September2021
>
> ”””Hi Gabriele,
>
> You can check the example here
> <https://github.com/SimonRit/RTK/blob/master/examples/FirstReconstruction/FirstCudaReconstruction.py>.
> Note, however, that the CUDA python packages are still not distributed. The
> ones on pypi only have CPU code. So you would need to compile the python
> wrappings, which would require the three CMake options ITK_WRAP_PYTHON=ON,
> Module_RTK=ON, RTK_USE_CUDA=ON.
> Simon
>
> ”””
>
>
>
>
>
>
>  _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> https://public.kitware.com/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20220118/6223d5c8/attachment.htm>


More information about the Rtk-users mailing list