<div dir="ltr"><div><div>Hi there,<br></div><br>so I finally got to successfully configure and generate the ITKSoftwareGuide project, provided that the ITKSoftwareGuide_SUPERBUILD flag is ON.<br><br></div><div>However, it failed to compile (on Visual Studio 2010) :-S Although the ITK superbuild compiled OK, the SW Guide generation failed. It took almost 19 hours to compile the whole thing on an Intel Core i5-2320 @ 3.00 GHz, 4 GB of RAM, 64-bit Win 7. I cannot remember ITK having taken so long to compile on its own... Besides, it needed around 36 GB of my HDD. My goodness. <br>
<br></div><div>Anyway, there seems to be some error with a python command according to the build output (sorry, I should have set the system to send the compilation result to the dashboard :-S):<br></div><div><br>3> ========== Build: 602 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========<br>
3> <br>3> No install step for 'ITKv4'<br>3> Completed 'ITKv4'<br>8>------ Build started: Project: ITKSoftwareGuide, Configuration: Debug x64 ------<br>8> Building Custom Rule C:/SDKs/ITK/ITKSoftwareGuide/CMakeLists.txt<br>
8> CMake does not need to re-run because C:\SDKs\ITK\itkSoftwareGuideBin\CMakeFiles\generate.stamp is up-to-date.<br>8> Creating directories for 'ITKSoftwareGuide'<br>8> No download step for 'ITKSoftwareGuide'<br>
8> No update step for 'ITKSoftwareGuide'<br>8> No patch step for 'ITKSoftwareGuide'<br>8> Performing configure step for 'ITKSoftwareGuide'<br>8> Not searching for unused variables given on the command line.<br>
8> -- PRE_RUN_PYTHON ART GENERATION.<br>8> -- Running: C:/Python33/python.exe C:/SDKs/ITK/ITKSoftwareGuide/SoftwareGuide/Examples/RunExamples.py --itkSource C:/SDKs/ITK/itkSoftwareGuideBin/ITKv4 --itkBuildDir C:/SDKs/ITK/itkSoftwareGuideBin/ITKv4-build --itkExecDir C:/SDKs/ITK/itkSoftwareGuideBin/bin/Debug --SWGuidBaseOutput C:/SDKs/ITK/itkSoftwareGuideBin/ITKSoftwareGuide-build/SoftwareGuide <br>
8> File "C:/SDKs/ITK/ITKSoftwareGuide/SoftwareGuide/Examples/RunExamples.py", line 186<br>8> print self.GetCommandLine()<br>8> ^<br>8> SyntaxError: invalid syntax<br>8> CMake Error at SoftwareGuide/CMakeLists.txt:161 (message):<br>
8> POST_RUN_PYTHON ART GENERATION 1.<br>8> <br>8> <br>8> -- Configuring incomplete, errors occurred!<br>8>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.<br>
9>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------<br>9>Project not selected to build for this solution configuration <br>========== Build: 2 succeeded, 1 failed, 0 up-to-date, 6 skipped ==========<br>
<br><br></div><div><br></div><div>On the other hand, the process fails to be configured when the ITKSoftwareGuide_SUPERBUILD flag is OFF and I decide to use an external ITK (USE_SYSTEM_ITK flag ON) may have already compiled (including examples) in my HDD (ITK 4.2.1). In this case, CMake yields the following error:<br>
<br>
PRE_RUN_PYTHON ART GENERATION.
<p style="margin:0px;text-indent:0px">Running: C:/Python33/python.exe C:/SDKs/ITK/ITKSoftwareGuide/SoftwareGuide/Examples/RunExamples.py --itkSource C:/SDKs/ITK/itk-4.2.1 --itkBuildDir C:/SDKs/ITK/itkBin-4.2.1 --itkExecDir C:/SDKs/ITK/itkBin-4.2.1/bin --SWGuidBaseOutput C:/SDKs/ITK/itkSoftwareGuideBin_/SoftwareGuide </p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">CMake Error at SoftwareGuide/CMakeLists.txt:161 (message):</span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)"> POST_RUN_PYTHON ART GENERATION 1.</span></p>
<p style="margin:0px;text-indent:0px">Configuring incomplete, errors occurred!</p><br><br></div><div>So again, it seems a problem with a python script.<br></div><div><br></div><div>Any thoughts?<br><br></div><div>Thank you,<br>
</div><div>JON HAITZ<br><br><i><br>P.S.: This is part of a recent conversation I was holding with some of the ITK community members about the ITK Software Guide generation process. Matt McCormick <span dir="ltr"></span>suggested moving it to the mailing list (which was the primary purpose, but my original message to the list got held by a moderator approval message due to its length; did not include the original attachment here). You will find the history of the conversation from its very beginning further below.<br>
</i></div><div><i>Sorry for the length.</i><br></div><div><div><div><div class="gmail_extra"><br><br><br><div class="gmail_quote">On 25 September 2013 21:41, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jon,<br>
<br>
The FindLATEX.cmake patch has been merged, so<br>
<br>
cd /c/path/to/ITKSoftwareGuide<br>
git checkout master<br>
git pull<br>
<br>
should make it possible to do a clean build without issues related to<br>
ITK_EXECUTABLES_DIR or ps2pdf.<br>
<br>
We should probably start moving these conversations to the<br>
insight-users mailing list so other can benefit from them, too.<br>
<br>
Thanks,<br>
Matt<br>
<div><div><br>
On Wed, Sep 25, 2013 at 3:09 PM, Constantine Z <<a href="mailto:mnkz@leeds.ac.uk" target="_blank">mnkz@leeds.ac.uk</a>> wrote:<br>
> Hi Jon.<br>
><br>
>> OK, as for the ITK_EXECUTABLES_DIR variable, it is indeed in<br>
>> SoftwareGuide/CMakeLists.txt. However, it is somehow not exposed to the<br>
>> user in CMake. Furthermore, Matt's pointed patch was replacing<br>
>> /find_path(ITK_EXECUTABLES_DIR/ for /find_file(ITK_EXECUTABLES_DIR/,<br>
>><br>
>> which I am not so sure was intended.<br>
><br>
><br>
> That's definitely the right thing to do. find_path sorta guesses the bin<br>
> directory with all examples executables by looking just for one of the<br>
> examples.<br>
><br>
> Regards,<br>
> Constantine<br>
><br>
><br>
</div></div></blockquote></div><br><br><br>---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Constantine Z</b> <span dir="ltr"><<a href="mailto:mnkz@leeds.ac.uk" target="_blank">mnkz@leeds.ac.uk</a>></span><br>
Date: 25 September 2013 17:09<br>Subject: Re: Fwd: [ITK] Software Guide generation process problems<br>To: Jon Haitz Legarreta <<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>><br>
Cc:
<br><br><br>Hi Jon.<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
OK, as for the ITK_EXECUTABLES_DIR variable, it is indeed in<br>
SoftwareGuide/CMakeLists.txt. However, it is somehow not exposed to the<br>
user in CMake. Furthermore, Matt's pointed patch was replacing<br></div>
/find_path(ITK_EXECUTABLES_DIR/ for /find_file(ITK_EXECUTABLES_DIR/,<div><br>
which I am not so sure was intended.<br>
</div></blockquote>
<br>
That's definitely the right thing to do. find_path sorta guesses the bin
directory with all examples executables by looking just for one of the
examples.<br>
<br>
Regards,<br>
Constantine<br><br><br><br>---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Constantine Z</b> <span dir="ltr"><<a href="mailto:mnkz@leeds.ac.uk" target="_blank">mnkz@leeds.ac.uk</a>></span><br>
Date: 25 September 2013 17:06<br>
Subject: Re: Fwd: [ITK] Software Guide generation process problems<br>To: Jon Haitz Legarreta <<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>><br>Cc:
<br><br><br>Hi John,<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
As for the super-build, I understand that it allows to build ALL ITK<br>
from the SoftwareGuide project/solution. Correct me if I am wrong and if<br>
it just builds the ITK examples.<br>
</blockquote>
<br></div>
No, you are right. ITK gets downloaded and built in the binary output directory for the ITKSoftwareGuide project.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I used patches Matt was mentioning in hist first email:<br>
<br>
[1]<br>
<a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/commit/2e5c7375b80cc3fee54ab062043a2afa47b5f986" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/commit/2e5c7375b80cc3fee54ab062043a2afa47b5f986</a><br>
</blockquote>
<br></div>
Those are old patches, which have been committed to the build by now [I'm pretty sure].<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
However, there are things that I do not get to understand: In the above<br>
patch the SoftwareGuide/CMakeLists.txtis different from the<br>
SoftwareGuide/CMakeLists.txtin the patch above (the one you point<br>
Constantine).<br>
<br>
Furthermore, there are no such files (present in the patch you point<br>
Constantine) in my clone:<br>
SoftwareGuide/CMake/FindLATEX.cmake<br>
SoftwareGuide/Latex/CMakeLists.txt<br>
</blockquote>
<br></div>
That's why you need to get this patch I mentioned earlier:<br>
<br>
<a href="http://review.source.kitware.com/#/c/12774/" target="_blank">http://review.source.kitware.com/#/c/12774/</a><br>
<br>
On the patch page (mid-way through the page) there's a git command line
with the word 'Download' net to it which would get the patch on your
system. There's even a button to copy it in the buffer! :) When you get
(git) that patch, you'll find the missing FindLATEX.cmake where it's
supposed to be.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
When configuring the CMake, since I have not yet switched to git for<br>
ITK, and I usually download the sources as a .zip and then build them, I<br>
have chosen to use an external ITK. To be precise, I am using ITK 4.2.1.<br>
Thus, I checked USE_SYSTEM_ITK and set<br>
<br>
ITK_BINARY_DIR<br>
C:/SDKs/ITK/itkBin-4.2.1 (contains the project created by CMake and<br>
compiler's output)<br>
ITK_DIR<br>
C:/SDKs/ITK/itkBin-4.2.1 (contains the project created by CMake and<br>
compiler's output)<br>
ITK_SOURCE_DIR<br>
C:/SDKs/ITK/itk-4.2.1 (contains the source code)<br>
</blockquote>
<br></div>
I didn't try it with external compiled ITK, so I can't comment, but what you say looks OK.<div><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
As to what Matt said, there is no ITK_EXECUTABLES_DIR variable as far as<br>
I can see, but the compiler complains about it: the generation seemed to<br>
be successful, but when compiling the project, Visual Studio (2010)<br>
yielded the following error:<br>
<br>
8>------ Build started: Project: ITKSoftwareGuide, Configuration: Debug<br>
x64 ------<br>
8> Building Custom Rule C:/SDKs/ITK/ITKSoftwareGuide/CMakeLists.txt<br>
8> CMake does not need to re-run because<br>
C:\SDKs\ITK\itkSoftwareGuideBin\CMakeFiles\generate.stamp is up-to-date.<br>
8> Creating directories for 'ITKSoftwareGuide'<br>
8> No download step for 'ITKSoftwareGuide'<br>
8> No update step for 'ITKSoftwareGuide'<br>
8> No patch step for 'ITKSoftwareGuide'<br>
8> Performing configure step for 'ITKSoftwareGuide'<br>
8> Not searching for unused variables given on the command line.<br>
8> -- PRE_RUN_PYTHON ART GENERATION.<br>
8> -- Running: C:/Python33/python.exe<br>
C:/SDKs/ITK/ITKSoftwareGuide/SoftwareGuide/Examples/RunExamples.py<br>
--itkSource C:/SDKs/ITK/itk-4.2.1 --itkBuildDir C:/SDKs/ITK/itkBin-4.2.1<br>
--itkExecDir ITK_EXECUTABLES_DIR-NOTFOUND --SWGuidBaseOutput<br>
C:/SDKs/ITK/itkSoftwareGuideBin/ITKSoftwareGuide-build/SoftwareGuide<br>
8> File<br>
"C:/SDKs/ITK/ITKSoftwareGuide/SoftwareGuide/Examples/RunExamples.py",<br>
line 186<br>
8> print self.GetCommandLine()<br>
8> ^<br>
8> SyntaxError: invalid syntax<br>
8> CMake Error at SoftwareGuide/CMakeLists.txt:159 (message):<br>
8> POST_RUN_PYTHON ART GENERATION 1.<br>
8><br>
8><br>
8> -- Configuring incomplete, errors occurred!<br>
</blockquote>
<br></div></div>
The ITK_EXECUTABLES_DIR is initialised in SoftwareGuide/CMakeLists.txt. Maybe try without external ITK for now?<div></div>
<br>
Regards,<br>
Constantine<br><br><br><br>On 25 September 2013 15:13, Jon Haitz Legarreta <span dir="ltr"><<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>></span> wrote:<br>Dear Constantine,<br>
<br>many thanks for your answer.<br><br><div class="gmail_extra"><br><div class="gmail_quote"><div>On 25 September 2013 13:48, Constantine Zakkaroff <span dir="ltr"><<a href="mailto:mnkz@leeds.ac.uk" target="_blank">mnkz@leeds.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I'm not sure if anyone mentioned this, but it seems to me you are using
an older version of the SoftwareGuide code? ANYONE, PLEASE CORRECT ME IF
I'M WRONG. I see nothing like that in the code available through git:<br>
<br>
git clone <a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide.git" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide.git</a><br>
<br>
Do you follow the instructions in:<br>
<br>
<a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/blob/master/README.md" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/blob/master/README.md</a><br>
<br>
I had to figure out git and such to get started. The project is
configured as a super-build project, where the dependencies (ITK) are
built firs at then the examples are run to generate the images and
figures for the Software Guide. <br>
</blockquote></div><div><br>Yes you are right; I was using the old
SoftwareGuide generation system, which dated back to 2004 :-S I was just
not aware that there was a new system under git.<br><br>I followed the instructions and apparently successfully cloned the repository.<br>
<br>As for the super-build, I
understand that it allows to build ALL ITK from the
SoftwareGuide project/solution. Correct me if I am wrong and if it just
builds the ITK examples.<br><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<br></div>
Matt fixed it the latest patch (FindLATEX.cmake):<br>
<br>
<a href="http://review.source.kitware.com/#/c/12774/" target="_blank">http://review.source.kitware.com/#/c/12774/</a><br>
</blockquote></div></div><br><br>I used patches Matt was mentioning in hist first email:<br><br>[1] <a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/commit/2e5c7375b80cc3fee54ab062043a2afa47b5f986" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/commit/2e5c7375b80cc3fee54ab062043a2afa47b5f986</a><br>
<br><br></div><div class="gmail_extra">However, there are things that I do not get to understand: In the above patch the <span title="SoftwareGuide/CMakeLists.txt">
SoftwareGuide/CMakeLists.txtis different from the </span><span title="SoftwareGuide/CMakeLists.txt">SoftwareGuide/CMakeLists.txtin the patch above (the one you point Constantine).<br><br></span></div>
<div class="gmail_extra"><span title="SoftwareGuide/CMakeLists.txt">Furthermore, there are no such files (present in the patch you point Constantine) in my clone:<br>SoftwareGuide/CMake/FindLATEX.cmake <br>SoftwareGuide/Latex/CMakeLists.txt<br>
</span></div><br><br>When configuring the
CMake, since I have
not yet switched to git for ITK, and I usually download the sources as a
.zip and then build them, I have chosen to use an external ITK. To be
precise, I am using ITK 4.2.1. Thus, I checked USE_SYSTEM_ITK and set<br><br>ITK_BINARY_DIR <br>C:/SDKs/ITK/itkBin-4.2.1 (contains the project created by CMake and compiler's output)<br>
ITK_DIR <br>C:/SDKs/ITK/itkBin-4.2.1 (contains the project created by CMake and compiler's output)<br>ITK_SOURCE_DIR<br>C:/SDKs/ITK/itk-4.2.1 (contains the source code)<br><br><br>As
to what Matt said, there is no ITK_EXECUTABLES_DIR variable as far as I
can see, but the compiler complains about it: the generation seemed to
be successful, but when compiling the project, Visual Studio (2010)
yielded the following error: <br><br>8>------ Build started: Project: ITKSoftwareGuide, Configuration: Debug x64 ------<br>8> Building Custom Rule C:/SDKs/ITK/ITKSoftwareGuide/<div class="gmail_extra">CMakeLists.txt<br>
8> CMake does not need to re-run because C:\SDKs\ITK\itkSoftwareGuideBin\CMakeFiles\generate.stamp is up-to-date.<br>
8> Creating directories for 'ITKSoftwareGuide'<br>8> No download step for 'ITKSoftwareGuide'<br>8> No update step for 'ITKSoftwareGuide'<br>8> No patch step for 'ITKSoftwareGuide'<br>
8> Performing configure step for 'ITKSoftwareGuide'<br>8> Not searching for unused variables given on the command line.<br>8> -- PRE_RUN_PYTHON ART GENERATION.<br>8>
-- Running: C:/Python33/python.exe
C:/SDKs/ITK/ITKSoftwareGuide/SoftwareGuide/Examples/RunExamples.py
--itkSource C:/SDKs/ITK/itk-4.2.1 --itkBuildDir C:/SDKs/ITK/itkBin-4.2.1
--itkExecDir ITK_EXECUTABLES_DIR-NOTFOUND --SWGuidBaseOutput
C:/SDKs/ITK/itkSoftwareGuideBin/ITKSoftwareGuide-build/SoftwareGuide <br>8> File "C:/SDKs/ITK/ITKSoftwareGuide/SoftwareGuide/Examples/RunExamples.py", line 186<br>8> print self.GetCommandLine()<br>
8> ^<br>8> SyntaxError: invalid syntax<br>8> CMake Error at SoftwareGuide/CMakeLists.txt:159 (message):<br>8> POST_RUN_PYTHON ART GENERATION 1.<br>8> <br>8> <br>8> -- Configuring incomplete, errors occurred!<br>
<br><br>Thanks again.<br><br>Sincerely,<br>JON HAITZ<br><br></div><br><br>On 25 September 2013 13:48, Constantine Zakkaroff <span dir="ltr"><<a href="mailto:mnkz@leeds.ac.uk" target="_blank">mnkz@leeds.ac.uk</a>></span> wrote:<br>
Hi Jon,<br>
<br>
Yes, I've been grinding away trying to get the ITK Software Guide built
on Windows, in collaboration with Matt. I think we are getting there.<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
1.- First, the /SoftwareGuide/Examples/CMakeLists.txt contains<br>
references to some examples that no longer exist (either because there<br>
is no Patent folder in ITK4 or because the examples themselves no<br>
longer exist/have been moved elsewhere):<br>
<br></div>
* ${ITK_SOURCE_DIR}/Examples/Patented/IterativeClosestPoint1.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Patented/IterativeClosestPoint2.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Patented/IterativeClosestPoint3.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Patented/FuzzyConnectednessImageFilter.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Patented/HybridSegmentationFuzzyVoronoi.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Statistics/EuclideanDistance.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Statistics/GaussianDensityFunction.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Statistics/ImageToListAdaptor.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Statistics/ListSampleToHistogramFilter.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Statistics/ListSampleToHistogramGenerator.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Statistics/PointSetToListAdaptor.cxx<br>
* ${ITK_SOURCE_DIR}/Examples/Statistics/SampleToHistogramProjectionFilter.cxx<br>
</blockquote>
<br>
I'm not sure if anyone mentioned this, but it seems to me you are using
an older version of the SoftwareGuide code? ANYONE, PLEASE CORRECT ME IF
I'M WRONG. I see nothing like that in the code available through git:<br>
<br>
git clone <a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide.git" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide.git</a><br>
<br>
Do you follow the instructions in:<br>
<br>
<a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/blob/master/README.md" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/blob/master/README.md</a><br>
<br>
I had to figure out git and such to get started. The project is
configured as a super-build project, where the dependencies (ITK) are
built firs at then the examples are run to generate the images and
figures for the Software Guide.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2.- According to the /SoftwareGuide/README.txt, some additional data<br>
should be downloaded in order to successfully insert some figures. This<br>
data was originally found at <a href="ftp://public.kitware.com/pub/itk/Data/BrainWeb/" target="_blank">ftp://public.kitware.com/pub/itk/Data/BrainWeb/</a><br>
<br>
However, the link seems not to be working. Thus, I hoped to continue<br>
working without it.<br>
</blockquote>
<br></div>
Manual downloading in not require any longer. The data from BraindWed is downloaded automatically as a part of the super-build.<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
3.- I have installed all required components for Windows:<br>
<br></div>
* Latex, BibTeX (MiKTeX 2.9)<br>
* Perl (ActiveState Perl, downloaded from here<br>
<<a href="http://www.perl.org/get.html" target="_blank">http://www.perl.org/get.html</a>>)<br>
* ImageMagick (ImageMagick-6.8.6-9-Q16-x64-dll, downloaded from here<br>
<<a href="http://www.imagemagick.org/script/binary-releases.php" target="_blank">http://www.imagemagick.org/script/binary-releases.php</a>>)<br>
* fig2dev (fig2dev3.2.3d, downloaded from here<br>
<<a href="http://tams-www.informatik.uni-hamburg.de/applets/jfig/download.html" target="_blank">http://tams-www.informatik.uni-hamburg.de/applets/jfig/download.html</a>>)<br>
* transfig (TransFig 3.2.4, downloaded from here<br>
<<a href="http://www.tucows.com/preview/8734/TransFig" target="_blank">http://www.tucows.com/preview/8734/TransFig</a>> :-S found no other<br>
"better" place)<br>
* ps2pdf, dvipdf, ps2pdf, dvips (these are bundled in MiKTeX),<br>
Ghostscript (9.10) libraries<br>
</blockquote>
<br>
fig2dev and transfig are not required any longer. Gohstscript is not required if MiKTex is installed.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
However, the /SoftwareGuide/CMakeLists.txt seems not to look<br>
for/configure the location of neither transfig nor Ghostscript (although<br>
this last is also bundled in MiKTeX).<br>
</blockquote>
<br></div>
Matt fixed it the latest patch (FindLATEX.cmake):<br>
<br>
<a href="http://review.source.kitware.com/#/c/12774/" target="_blank">http://review.source.kitware.com/#/c/12774/</a><br>
<br>
I'm planning to update the instructions for the top-level README.md file once the build is working.<br>
<br>
I think the wiki page on the subject of building Software Guide perhaps
can be updated with more detailed instructions and notes.<br>
<br>
Many thanks,<br>
Constantine<br><br><br><br>On 21 September 2013 18:52, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><div dir="ltr">Hi Jon,<div>
<br></div><div>Sorry we missed your message, and thanks for your interest in contributing!</div><div><br></div><div>Hans
Johnson has done a lot of work updating the build process. There is
now a superbuild (it automatically builds/configures ITK), and the build
system is now in Python instead of Perl, which make things much easier.</div>
<div><br></div><div>Constantine has been helping test the Windows build.
This week, we merged a patch that allows us to build on Windows again
[1], although Windows does take more effort. Manual setting of the
CMake configuration variable ITK_EXECUTABLES_DIR may still be required.
The dependencies have changed slightly. Hans may correctly, but I
think fig2dev and transfig are no longer required. An additional
requirement is pygments for one of the MikTeX syntax highlighting
packages -- a link on how to install that can be found in
SoftwareGuide/README.txt.</div>
<div><br></div><div>The contribution process is the same as ITK with Gerrit Code Review [2]</div><div><br></div><div>Please let us know if you have any questions or issues.</div><div><br></div><div>Thanks,</div><div>Matt</div>
<div><br></div><div><br></div><div>[1] <a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/commit/2e5c7375b80cc3fee54ab062043a2afa47b5f986" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/commit/2e5c7375b80cc3fee54ab062043a2afa47b5f986</a></div>
<div>[2] <a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/blob/master/README.md" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide/blob/master/README.md</a></div></div>
<br><br>On Sat, Sep 21, 2013 at 8:59 AM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>></span> wrote:<br>
<div dir="ltr">Hi Jon,<div><br></div><div>Thanks for your interest in the ITK Software Guide.</div><div><br></div><div>The Guide is currently being restructured.</div><div><br></div><div>You will find its current form in Github at:</div>
<div><a href="https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide" target="_blank">https://github.com/InsightSoftwareConsortium/ITKSoftwareGuide</a><br></div><div><br></div><div><br></div><div> Thanks</div><div>
<br></div><div>
<br></div><div> Luis</div><div><br></div></div><br>---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Jon Haitz Legarreta</b> <span dir="ltr"><<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>></span><br>
Date: 10 September 2013 11:00<br>Subject: [ITK] Software Guide generation process problems<br>To: Insight-users <<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>><br><br><br>
<div>Hi there,<br>
I was trying to inspire a software user's guide generation process on ITK's Software Guide generation process.<br><br>I have read some old post concerning the issue:<br><a href="http://itk-users.7.n7.nabble.com/Insight-Users-Guide-PDF-Generation-td767.html" target="_blank">http://itk-users.7.n7.nabble.com/Insight-Users-Guide-PDF-Generation-td767.html</a><br>
<br>And found the software generation repository at this address:<br><a href="http://www.itk.org/cgi-bin/viewcvs.cgi/SoftwareGuide/?root=InsightDocuments" target="_blank">http://www.itk.org/cgi-bin/viewcvs.cgi/SoftwareGuide/?root=InsightDocuments</a><br>
<br>I have noticed that it has not been changed since some time. I guess
this is due to the fact that all itk users (including me until very
recently) use the on-line PDF document or the doxygen-generated
documentation. <br>
<br>I don't know whether anybody has tried to reproduce the software
guide generation process or whether kitware no longer supports this
feature.<br><br>The thing is that CMake fails to correctly configure the SoftwareGuide project.<br>
<br>I am using Windows 7 64-bit and ITK 4.2.1. I am not using Cygwin.<br><br>There are several issues here, some related to ITKv4 compatibility/migration issues:<br><br></div><div>1.- First, the /SoftwareGuide/Examples/CMakeLists.txt
contains references to some examples that no longer exist (either
because there is no Patent folder in ITK4 or because the examples
themselves no longer exist/have been moved elsewhere):<br>
<ul><li>${ITK_SOURCE_DIR}/Examples/Patented/IterativeClosestPoint1.cxx</li><li>${ITK_SOURCE_DIR}/Examples/Patented/IterativeClosestPoint2.cxx</li><li>${ITK_SOURCE_DIR}/Examples/Patented/IterativeClosestPoint3.cxx</li><li>
${ITK_SOURCE_DIR}/Examples/Patented/FuzzyConnectednessImageFilter.cxx</li><li>${ITK_SOURCE_DIR}/Examples/Patented/HybridSegmentationFuzzyVoronoi.cxx</li><li>${ITK_SOURCE_DIR}/Examples/Statistics/EuclideanDistance.cxx</li>
<li>${ITK_SOURCE_DIR}/Examples/Statistics/GaussianDensityFunction.cxx</li><li>${ITK_SOURCE_DIR}/Examples/Statistics/ImageToListAdaptor.cxx</li><li>${ITK_SOURCE_DIR}/Examples/Statistics/ListSampleToHistogramFilter.cxx</li>
<li>${ITK_SOURCE_DIR}/Examples/Statistics/ListSampleToHistogramGenerator.cxx</li><li>${ITK_SOURCE_DIR}/Examples/Statistics/PointSetToListAdaptor.cxx</li><li>${ITK_SOURCE_DIR}/Examples/Statistics/SampleToHistogramProjectionFilter.cxx</li>
</ul><p>Commenting or deleting these entries from the CMakeLists.txt is enough to solve this issue, at least apparently.<br></p></div><div>2.-
According to the /SoftwareGuide/README.txt, some additional data should
be downloaded in order to successfully insert some figures. This data
was originally found at <a href="ftp://public.kitware.com/pub/itk/Data/BrainWeb/" target="_blank">ftp://public.kitware.com/pub/itk/Data/BrainWeb/</a><br>
<br>However, the link seems not to be working. Thus, I hoped to continue working without it.<br><br>3.- I have installed all required components for Windows: <br><ul><li> Latex, BibTeX (MiKTeX 2.9) </li><li> Perl (ActiveState Perl, downloaded from <a href="http://www.perl.org/get.html" target="_blank">here</a>)</li>
<li> ImageMagick (ImageMagick-6.8.6-9-Q16-x64-dll, downloaded from <a href="http://www.imagemagick.org/script/binary-releases.php" target="_blank"><span></span><span></span>here</a>)</li><li> fig2dev (fig2dev3.2.3d, downloaded from <a href="http://tams-www.informatik.uni-hamburg.de/applets/jfig/download.html" target="_blank">here</a>)</li>
<li> transfig (TransFig 3.2.4, downloaded from <a href="http://www.tucows.com/preview/8734/TransFig" target="_blank">here</a> :-S found no other "better" place)</li><li> ps2pdf, dvipdf, ps2pdf, dvips (these are bundled in MiKTeX), Ghostscript (9.10) libraries<br>
</li></ul>However, the /SoftwareGuide/CMakeLists.txt seems not to look
for/configure the location of neither transfig nor Ghostscript (although
this last is also bundled in MiKTeX).<br><br>4.- Once the CMake has all
the variables set, the configuration process fails due to some invalid
escape sequences introduced by the /SoftwareGuide/Examples/CMakeLists.txt. The CMake configuration result is attached as a txt file.<br>
<br>I have been looking for some forward slash in that CMakeLists.txt
that may be causing these problems at the lines pointed in the CMake
configuration result, but found none.<br><br>Any help would be highly appreciated.<br>
<br>Sincerely,<br>JON HAITZ<br><br><br></div>P.S.: Sorry for the length of the message.<br><br><br></div></div></div></div></div>