Compiling is a lot of time even compiling only the modified module, so detecting an error in a .wrap file when trying to change python wrappers is a pain.
Is there any way to test .wrap files without compiling?
If not, any way to detecting the error faster?
There is not way to fully test the wrap file without compiling it. It would be great to have such a mechanism, but it needs to be implemented. One thing you can do though is to try to debug it without the compilation being fully done.
message() statements in the file to see at configuration time if the filter types expand to what you expect.
- Find the
cxx file(s) corresponding to your filter(s) in the build directory. The files that are generated are created in the
Wrapping subfolder. Looking at this file will allow you to see if you are wrapping the types you expect.
Hope this helps,
It is helpful to just build a module and its dependencies. There is a makefile target called
<module-name>-all for all ITK modules. For example:
will just build the tests and wrapping for the