<div dir="ltr"><span style="font-size:12.8px">Dear all, </span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have build ITK as described in post 912 <a href="http://www.kitware.com/blog/home/post/912" target="_blank">http://www.kitware.com/blog/home/post/912</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">However, I did not use ninja and I added the flag -D_LARGEFILE64_SOURCE=1, i.e.,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">flags=' -Wno-warn-absolute-paths --memory-init-file 0 -s DISABLE_EXCEPTION_CATCHING=0 -s ALLOW_MEMORY_GROWTH=1 -D_LARGEFILE64_SOURCE=1'</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)">cmake -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} \
  "-DCMAKE_CXX_FLAGS=$flags" "-DCMAKE_C_FLAGS=$flags" \
  -DBUILD_EXAMPLES=OFF \</pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)">    ../ITK</pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><br></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)">make</pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><br></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">This flag is needed to avoid the error while compiling itkhdf5:</font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><span style="line-height:16.8px;font-family:arial,sans-serif"><b><br></b></span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><span style="line-height:16.8px;font-family:arial,sans-serif"><b>/usr/src/ITK/Modules/ThirdParty/HDF5/src/itkhdf5/src/H5FDstdio.c:192:5: </b></span><span style="line-height:16.8px;font-family:arial,sans-serif"><b>error: </b></span><span style="line-height:16.8px;font-family:arial,sans-serif"><b>use of undeclared identifier 'off64_t'</b></span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><br></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">After I added the flag, the compilation is successful. </font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">Now, I'm trying to build a project using ITK. </font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">The cmake configuration process is similar to ITK, and the compilation is also successful. The javascript file is generated as expected. </font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><br></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">However, the execution produces the following error while on the docker machine:</font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:16.8px;text-align:justify;background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><font color="#333333"><span style="line-height:16.8px"><font face="monospace, monospace">Could not create IO object for reading file someImage.nrrd
The file doesn't exist. 
Filename = someImage.nrrd</font><font face="arial, helvetica, sans-serif"><br></font></span></font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><br></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><font face="arial, helvetica, sans-serif">The image file is in the same built directory (not a problem of read-write permissions). </font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><font color="#333333" face="arial, helvetica, sans-serif"><span style="line-height:16.8px">I also tried executing it outside the virtual machine (in Mac OSX) which gives </span></font><span style="line-height:16.8px;color:rgb(51,51,51);font-family:arial,helvetica,sans-serif">the following error:</span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><font color="#333333" face="arial, helvetica, sans-serif"><span style="line-height:16.8px"><br></span></font></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><font color="#333333" face="monospace, monospace"><span style="line-height:16.8px"><some path>/ComponentSizeRLE.js:91
      throw ex;
            ^
7015448
</span></font></pre><div style="text-align:justify"><font color="#333333" face="arial, helvetica, sans-serif"><span style="line-height:16.8px"><br></span></font></div><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><br></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><font color="#333333" face="arial, helvetica, sans-serif"><span style="line-height:16.8px">I tried to traced the error and there is a problem while reading the data. How should I proceed on fixing this issue? or i</span></font><span style="line-height:16.8px;color:rgb(51,51,51);font-family:arial,helvetica,sans-serif">s this a known issue? Are there any size restrictions for the images? In the example shown in post 912 the images are 2D. Is there any examples using 3D images? </span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><span style="line-height:16.8px;color:rgb(51,51,51);font-family:arial,helvetica,sans-serif"><br></span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><span style="line-height:16.8px;color:rgb(51,51,51);font-family:arial,helvetica,sans-serif">Any comment or suggestion will be greatly appreciated. </span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><span style="line-height:16.8px;color:rgb(51,51,51);font-family:arial,helvetica,sans-serif"><br></span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><span style="line-height:16.8px;color:rgb(51,51,51);font-family:arial,helvetica,sans-serif">Best regards, </span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><span style="line-height:16.8px;color:rgb(51,51,51);font-family:arial,helvetica,sans-serif"><br></span></pre><pre style="white-space:pre-wrap;padding:0px;margin-top:0px;margin-bottom:0px;text-align:justify;background-color:rgb(250,250,250)"><span style="line-height:16.8px;color:rgb(51,51,51);font-family:arial,helvetica,sans-serif">Juan Carlos Prieto</span></pre></div></div>