Coder Social home page Coder Social logo

Comments (10)

poretga99 avatar poretga99 commented on July 17, 2024 1

This question is not directly related to the functionality or code behavior of this repository. I suggest it should be closed.

As for debugging, @xem123 I'd suggest you check some general tutorials on how to debug in Visual Studio in combination with CMake.

from itk.

xem123 avatar xem123 commented on July 17, 2024

I encountered these errors when compiling ITK and RTK, but I ignored them and did not solve the issues. Is it related to the error that I cannot access the hxx and h files? Is it necessary to solve it? How can I solve it?
image

from itk.

xem123 avatar xem123 commented on July 17, 2024

I didn't choose debug, I chose release. Is it because I made the wrong choice that caused this?
image

from itk.

dzenanz avatar dzenanz commented on July 17, 2024

Release build mode does not have debug information. RelWithDebInfo has some debug symbols, but many things are optimized away. For full debugging access, you need to build in Debug mode, which you seem be to already doing. But you need a successful build, without any errors.

For Visual Studio generator, CMAKE_BUILD_TYPE is unimportant. The list in CMAKE_CONFIGURATION_TYPES is important. And then selecting build mode in Visual Studio.

from itk.

xem123 avatar xem123 commented on July 17, 2024

Thanks!
When I compiled ITK, I checked the FFTW related options as shown in Figure 1, but during the build process, I encountered many errors related to FFTW as shown in Figure 2. What is the reason for this? Do I need to configure the FFTW path separately in the environment variables, or should I configure the FFTW related libraries in the all_build properties?
1716342366740_92F9B542-FD3E-4354-95FC-DBED9C27C26F
1716342352851_D54B1532-7A16-44dd-8E97-386775D44E96

from itk.

dzenanz avatar dzenanz commented on July 17, 2024

FFTW can be compiled by ITK on Linux (and maybe Mac), but not Windows. If you want to use FFTW on Windows, you have to compile it yourself, or get a pre-compiled version.

You seem to be trying to use CUFFT, which is the least tested back-end by far. Therefore finnicky, and possibly now broken. In my experience, MKL works the best on Windows.

from itk.

xem123 avatar xem123 commented on July 17, 2024

Thank you very mach

from itk.

dzenanz avatar dzenanz commented on July 17, 2024

Close this issue if appropriate.

from itk.

xem123 avatar xem123 commented on July 17, 2024

Thanks!I followed your advice and compiled the FFTW library separately before compiling it with ITK. Then, the Build and install processes were completed smoothly without any errors. Then, I placed my project code into the ITK solution in order to access the RTK source code during runtime, as shown in Figure 1. However, I encountered a problem. I cannot use breakpoints to access the source code of rtkFFTProjectionsConvolutionImageFilter.hxx. I added cout to this hxx source code and recompiled it. The cout in this hxx can print to the console normally as shown in Figure 2, but I still cannot access the hxx source code as shown in Figure 3 and Figure 4. And I hope to output the image after padding, so I added some code to save the image in the source code as shown in Figure 5. However, after normal operation, the image I specified was not saved. Why is that?
The ability to print cout to the console indicates that the function in hxx is running, but why can't the breakpoint be entered? Why doesn't the code to save the image execute?
image
image
image
image
image

from itk.

xem123 avatar xem123 commented on July 17, 2024

I'm sorry to have caused you trouble, as this is my first time using cmake to compile the ITK and RTK libraries, so I'm not sure how to handle some of the issues. Sorry

from itk.

Related Issues (20)

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.