<div dir="ltr">Hi Davis,<br><br>Please see my responses inline below:<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 15, 2014 at 4:31 PM, DVigneault <span dir="ltr"><<a href="mailto:davis.vigneault@gmail.com" target="_blank">davis.vigneault@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All--<br>
<br>
I ran into some problems while trying to run t his Wiki example<br>
<<a href="http://www.itk.org/Wiki/ITK/Examples/Developer/ImageFilterMultipleInputs" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Developer/ImageFilterMultipleInputs</a> ><br>
, and had to make the following changes in order to get it to run:<br></blockquote><div><br></div><div>Thank you for the detailed report!<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1. The source file name in the CMakeLists.txt file did not match the actual<br>
.cxx file name. Changing the .cxx file from " ImageFilterMultipleInput.cxx"<br>
(extraneous space intentional) to "ImageFilterMultipleInputs.cxx" fixed<br>
this.<br></blockquote><div><br></div><div>Fixed.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. Building the code created a .app file (I'm on Mac) that unexpectedly<br>
quit upon opening. Changing my CMakeLists.txt file to the one copied below<br>
fixed this.<br></blockquote><div><br></div><div>Hm, this one I couldn't reproduce (I'm on Linux). The only problem I saw were due to your #3 and #4 below.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. Only one input was set, though two were required. Adding a second<br>
reader and changing the input calls to SetInputImage and SetInputMask fixed<br>
this.<br></blockquote><div><br></div><div>Fixed.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
4. Upon wrapping the update calls in try/catch blocks, I got a "use of<br>
undeclared identifier 'SetNthInput'" error. Adding this-> before the<br>
SetNthInput calls in the .txx file fixed this.<br></blockquote><div><br></div><div>Fixed. (This must have not been required by the compiler(s) we used when this example was created?)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
With these changes, the example is now running as expected. My questions<br>
are:<br>
--Was I doing something wrong that caused me to encounter these problems?<br></blockquote><div><br></div><div>Nope (except for perhaps #2 ?). The "Developer/" examples are a little more relaxed than the non "Developer/" examples because they have a less common structure. We'll clean them up as you continue to point out problems :)<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--If not, should the Wiki example be updated?<br></blockquote><div><br></div><div>I have done so. Note that the wiki is scraped nightly to produce the tar files, so you might need to wait until tomorrow to verify that the changes fixed all of the problems. In the future, please don't hesitate to edit the wiki if you find any more issues like this (or anything else)!<br>
</div><div><br></div><div>Thanks again for the detailed report - it makes things really easy to fix :)<br><br></div><div>David<br></div></div></div></div></div>