<div dir="ltr">Hi Jatin, <div><br></div><div>Its missing an include generated by the VTK. Have a look at the IO/GDAL/vtkGDALVectorReader.cxx</div><div><br></div><div>- Aashish</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jun 26, 2014 at 10:47 AM, Jatin Parekh <span dir="ltr"><<a href="mailto:jatinparekh93@gmail.com" target="_blank">jatinparekh93@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi!</div><div>I have implemented a GeoJSON format reader in the vtkGeoJSONReader class.<br></div><div>The reader works correctly by manual testing. Currently I am trying to write tests for the reader.</div>
<div>However, while running the tests using ctest, it gives me the following error.</div><div><br></div><div>On running </div><div>[ ctest -R vtkIOGeoJSON-HeaderTest -V ]</div><div>it gives me multiple includes error:</div>
<div><br></div><div>//////////////Terminal Output//////////////////////////////////////////////</div><div><br></div><div><span style="white-space:pre-wrap"> </span>test 480</div><div><span style="white-space:pre-wrap"> </span> Start 480: vtkIOGeoJSON-HeaderTest</div>
<div><br></div><div><span style="white-space:pre-wrap"> </span>480: Test command: /usr/bin/python "/media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/Testing/Core/HeaderTesting.py" "/media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON" "VTKIOGEOJSON_EXPORT"</div>
<div><span style="white-space:pre-wrap"> </span>480: Test timeout computed to be: 1500</div><div><span style="white-space:pre-wrap"> </span>480: Use export macro: VTKIOGEOJSON_EXPORT</div><div><span style="white-space:pre-wrap"> </span>480: </div>
<div><span style="white-space:pre-wrap"> </span>480: File: /media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON/vtkGeoJSONFeature.h has 2 includes: </div><div><span style="white-space:pre-wrap"> </span>480: 24: #include "vtkDataObject.h"</div>
<div><span style="white-space:pre-wrap"> </span>480: 25: #include "vtk_jsoncpp.h"</div><div><span style="white-space:pre-wrap"> </span>480: </div><div><span style="white-space:pre-wrap"> </span>480: File: /media/newVolume/College_Files/Git_Repo/GeoScienceVTK/VTK/IO/GeoJSON/vtkGeoJSONReader.h has 2 includes: </div>
<div><span style="white-space:pre-wrap"> </span>480: 24: #include "vtkPolyDataAlgorithm.h"</div><div><span style="white-space:pre-wrap"> </span>480: 25: #include "vtk_jsoncpp.h"</div><div>
<span style="white-space:pre-wrap"> </span>480: </div><div><span style="white-space:pre-wrap"> </span>480: There were errors:</div><div><span style="white-space:pre-wrap"> </span>480: * Multiple includes</div>
<div><span style="white-space:pre-wrap"> </span>1/1 Test #480: vtkIOGeoJSON-HeaderTest ..........***Failed 0.17 sec</div><div><br></div><div><span style="white-space:pre-wrap"> </span>0% tests passed, 1 tests failed out of 1</div>
<div><br></div><div><span style="white-space:pre-wrap"> </span>Total Test time (real) = 0.46 sec</div><div><br></div><div><span style="white-space:pre-wrap"> </span>The following tests FAILED:</div><div><span style="white-space:pre-wrap"> </span>480 - vtkIOGeoJSON-HeaderTest (Failed)</div>
<div><span style="white-space:pre-wrap"> </span>Errors while running CTest</div><div><br></div><div>////////////////////////////////////////////////////////////////////////////////</div><div><br></div><div>I have verified the reader by testing it on various json files, and the reader gives correct output. (Tested and added here: <a href="https://github.com/jatin3893/vtkDataSetReaders" target="_blank">https://github.com/jatin3893/vtkDataSetReaders</a>).</div>
<div><br></div><div>Can someone please help me to remove the error in the HeaderTest?</div><div>I have attached my entire VTKSource/IO/GeoJSON folder along with this message for reference.</div><div>Please specify if I need to provide any more information.</div>
<div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div>Jatin</div></font></span></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div>
<i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div>
</div>