The built examples will be in the bin directory of your VTK.<br><br>A more extensive set of examples are on the Wiki:<br><a href="http://vtk.org/Wiki/VTK/Examples/Cxx">http://vtk.org/Wiki/VTK/Examples/Cxx</a><br><br>each has a valid CMakeLists.txt file.<br>
<br>You can also build them all by following these instructions: <a href="http://vtk.org/Wiki/VTK/Examples/Instructions/ForUsers">http://vtk.org/Wiki/VTK/Examples/Instructions/ForUsers</a><br><br>Bill<br><br><div class="gmail_quote">
On Tue, Aug 14, 2012 at 1:48 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
PLease keep repiles on the list.<br><br>For VTK6 use:<br><br>${VTK_LIBRARIES} instead of vtkRendering<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Tue, Aug 14, 2012 at 1:02 PM, Trevor Irons <span dir="ltr">&lt;<a href="mailto:trevorirons@gmail.com" target="_blank">trevorirons@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bill! Wow. <br><br>I guess this is the underlying question. I enabled build examples in CMake. But I honestly can&#39;t find where these are compiled to. My example is from <br>

<br>VTKSOURCE/Examples/Tutorial/Step1/Cxx/Cone.cxx<br>
<br>And the CMakeLists there specifies <br><br>PROJECT (Step1)<br><br>IF(NOT VTK_BINARY_DIR)<br>FIND_PACKAGE(VTK REQUIRED)<br>IF(NOT VTK_USE_RENDERING)<br>  MESSAGE(FATAL_ERROR &quot;Example ${PROJECT_NAME} requires VTK_USE_RENDERING.&quot;)<br>


ENDIF(NOT VTK_USE_RENDERING)<br>INCLUDE(${VTK_USE_FILE})<br>ENDIF(NOT VTK_BINARY_DIR)<br><br>ADD_EXECUTABLE(Cone Cone.cxx)<br>TARGET_LINK_LIBRARIES(Cone vtkRendering)<br><br>But vtkRendering I think is a pre 6.0 library? Where in the build directory are the Examples built? Is there an updated CmakeLists file there?<br>


<br>Thanks so much,<br><br clear="all">-- Trevor<div><div><br><br>
<br><br><div class="gmail_quote">On 14 August 2012 16:51, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Have you tried building your example with CMake. I suspect you are missing some libraries.<br><br><div class="gmail_quote"><div><div>On Tue, Aug 14, 2012 at 11:47 AM, Trevor Irons <span dir="ltr">&lt;<a href="mailto:trevorirons@gmail.com" target="_blank">trevorirons@gmail.com</a>&gt;</span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Sorry if this has been asked before, but I couldn&#39;t find it. <br><br>I am having trouble porting an application over to VTK 6.0. I followed the guide at <br>




<a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guide" target="_blank">http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guide</a><br clear="all">

<br>I am able to get my project to compile but I hit a seg fault at execution. As a minimal example consider a pared down Cone.cxx from the Examples <br><br>// First include the required header files for the VTK classes we are using.<br>





#include &quot;vtkConeSource.h&quot;<br>#include &quot;vtkPolyDataMapper.h&quot;<br><br>int main()<br>{<br><br>  vtkConeSource *cone = vtkConeSource::New();<br>  cone-&gt;SetHeight( 3.0 );<br>  cone-&gt;SetRadius( 1.0 );<br>





  cone-&gt;SetResolution( 10 );<br><br>  vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();<br>  coneMapper-&gt;SetInputConnection( cone-&gt;GetOutputPort() );<br>  //coneMapper-&gt;SetInputData( cone-&gt;GetOutput() );                         // I tried this too<br>





<br>  exit(0);<br><br>} <br><br>I have been compiling with <br><br>g++ Cone.cxx -g -g3  -o testit  -I/usr/local/include/vtk-6.0/   -lvtkRenderingCore-6.0  -lvtkFiltersSources-6.0 -lvtkCommonExecutionModel-6.0 <br><br>on <br>





<br>g++ --version<br>g++ (GCC) 4.7.1 20120721 (prerelease)<br>Copyright (C) 2012 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.  There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>





<br>And when I execute, I just see a segmentation fault. I assume I am doing something wrong, but I can&#39;t figure out what. <br><br>I ran it through gdb, but it just said the fault was in SetInputConnection, or SetInputData, I tried both. This is with the tip of VTK from the git repository.<br>





<br>Thanks for any suggestions. <br><span><font color="#888888"><br>-- Trevor<br><br>
</font></span><br></div></div>_______________________________________________<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>