Giter Club home page Giter Club logo

Comments (17)

pyushkevich avatar pyushkevich commented on July 20, 2024

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

I am trying to build a conda-forge package for convert3d and only ITK 5 is available hence my request.

So far, I am stuck with the MorphologicalContourInterpolation dependency which is not available right now. It is still a ITK Remote module and they are not built by default on conda-forge.

Have you got any plans to merge it to the main branch at some point and tag a new release?

from c3d.

pyushkevich avatar pyushkevich commented on July 20, 2024

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

I added a CMake option CONVERT3D_USE_ITK_REMOTE_MODULES

Brilliant. Thank you so much.

Progress on the conda-forge package is here btw:

conda-forge/staged-recipes#15090

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

@pyushkevich fyi, you've got a few deprecated usage of VNL:

2021-06-02T13:50:33.0095954Z ../utilities/AffineTransformTool.cxx: In function 'void quart_print(MatrixType&)':
2021-06-02T13:50:33.0103364Z ../utilities/AffineTransformTool.cxx:224:22: warning: 'vnl_matrix_fixed<T, num_rows, num_cols>::operator const vnl_matrix_ref<T>() const [with T = double; unsigned int num_rows = 3; unsigned int num_cols = 3]' is deprecated: Implicit cast conversion is dangerous.\nUSE: .as_matrix() or .as_ref() member function for clarity. [-Wdeprecated-declarations]
2021-06-02T13:50:33.0109852Z   224 |   vnl_qr<double> qr(A);
2021-06-02T13:50:33.0115455Z       |                      ^
2021-06-02T13:50:33.0122988Z In file included from $PREFIX/include/ITK-5.2/vnl/vnl_matrix_fixed.hxx:9,
2021-06-02T13:50:33.0138077Z                  from $PREFIX/include/ITK-5.2/itkMatrix.h:25,
2021-06-02T13:50:33.0139307Z                  from $PREFIX/include/ITK-5.2/itkImageBase.h:34,
2021-06-02T13:50:33.0140319Z                  from $PREFIX/include/ITK-5.2/itkNeighborhoodAccessorFunctor.h:22,
2021-06-02T13:50:33.0141315Z                  from $PREFIX/include/ITK-5.2/itkImage.h:28,
2021-06-02T13:50:33.0142074Z                  from ../itkextras/itkOrientedRASImage.h:4,
2021-06-02T13:50:33.0142942Z                  from ../utilities/AffineTransformTool.cxx:26:
2021-06-02T13:50:33.0143874Z $PREFIX/include/ITK-5.2/vnl/vnl_matrix_fixed.h:687:3: note: declared here
2021-06-02T13:50:33.0144879Z   687 |   operator const vnl_matrix_ref<T>() const { return  this->as_ref(); }
2021-06-02T13:50:33.0145535Z       |   ^~~~~~~~
2021-06-02T13:50:33.0146426Z ../utilities/AffineTransformTool.cxx: In function 'void irtk_write(MatrixStack&, const char*)':
2021-06-02T13:50:33.0148302Z ../utilities/AffineTransformTool.cxx:353:22: warning: 'vnl_matrix_fixed<T, num_rows, num_cols>::operator const vnl_matrix_ref<T>() const [with T = double; unsigned int num_rows = 3; unsigned int num_cols = 3]' is deprecated: Implicit cast conversion is dangerous.\nUSE: .as_matrix() or .as_ref() member function for clarity. [-Wdeprecated-declarations]
2021-06-02T13:50:33.0149572Z   353 |   vnl_qr<double> qr(A);
2021-06-02T13:50:33.0150115Z       |                      ^
2021-06-02T13:50:33.0150942Z In file included from $PREFIX/include/ITK-5.2/vnl/vnl_matrix_fixed.hxx:9,
2021-06-02T13:50:33.0151939Z                  from $PREFIX/include/ITK-5.2/itkMatrix.h:25,
2021-06-02T13:50:33.0152883Z                  from $PREFIX/include/ITK-5.2/itkImageBase.h:34,
2021-06-02T13:50:33.0154181Z                  from $PREFIX/include/ITK-5.2/itkNeighborhoodAccessorFunctor.h:22,
2021-06-02T13:50:33.0155183Z                  from $PREFIX/include/ITK-5.2/itkImage.h:28,
2021-06-02T13:50:33.0156182Z                  from ../itkextras/itkOrientedRASImage.h:4,
2021-06-02T13:50:33.0156924Z                  from ../utilities/AffineTransformTool.cxx:26:
2021-06-02T13:50:33.0158004Z $PREFIX/include/ITK-5.2/vnl/vnl_matrix_fixed.h:687:3: note: declared here
2021-06-02T13:50:33.0159361Z   687 |   operator const vnl_matrix_ref<T>() const { return  this->as_ref(); }
2021-06-02T13:50:33.0160026Z       |   ^~~~~~~~

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

There is also an occurrence of: FIND_LIBRARY(FFTW_LIB fftw3f) but it looks like it's not used anywhere directly and the conda-forge tooling complains of overlinkage.

Aren't FFT features provided by ITK in your case?

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

Apart from that, the binaries build fine on the conda-forge infrastructure so we are quite close modulo the overlinking issue.

from c3d.

pyushkevich avatar pyushkevich commented on July 20, 2024

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

Actually, you've got and explicit dependency on FFTW here.

from c3d.

pyushkevich avatar pyushkevich commented on July 20, 2024

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

Thanks, I am rebasing the package onto your latest commit.

Do you want to be added as co-maintainer of the conda-forge repo?

from c3d.

pyushkevich avatar pyushkevich commented on July 20, 2024

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

The conda-forge package is ready for review. @pyushkevich would you mind tagging the current version of the code with a new one (v1.3.0?) so I can reference a proper release tarball in the conda-forge recipe?

Cheers.

from c3d.

pyushkevich avatar pyushkevich commented on July 20, 2024

from c3d.

hubutui avatar hubutui commented on July 20, 2024

I check the conda-forge recipe, and found:

export CFLAGS="${CFLAGS} -I ${PREFIX}/include/eigen3"
export CXXFLAGS="${CXXFLAGS} -I ${PREFIX}/include/eigen3"

so, why not add -I ${PREFIX}/include/eigen3 to https://github.com/pyushkevich/c3d/blob/master/CMakeLists.txt?
add this line:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/eigen3")

to https://github.com/pyushkevich/c3d/blob/master/CMakeLists.txt line 18.

from c3d.

ghisvail avatar ghisvail commented on July 20, 2024

Forgot to close this issue. A conda package has been available for a while now.

from c3d.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.