<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      no .pro file sorry.<br>
      <span id="result_box" class="" lang="en"><span class="hps">T</span><span
          class="hps">he source files</span> <span class="hps">in the</span>
        <span class="hps">wiki page</span></span> <span id="result_box"
        class="" lang="en"><span class="hps">were</span> <span
          class="hps">used. So the development chain is </span></span>QT
      + VTK + CMAKE.<br>
      <span id="result_box" class="short_text" lang="en"><span
          class="hps">The only changes</span> <span class="hps">to the
          sources are shown</span> <span class="hps">in the initial
          message</span></span>.<br>
      I can add for your request the linking output: (same for modified
      and unmodified versions)<br>
      <br>
      Linking CXX executable RenderWindowUIMultipleInheritance<br>
      /usr/bin/cmake -E cmake_link_script
      CMakeFiles/RenderWindowUIMultipleInheritance.dir/link.txt
      --verbose=1<br>
      /usr/bin/c++     -Wno-deprecated    
      CMakeFiles/RenderWindowUIMultipleInheritance.dir/RenderWindowUIMultipleInheritance.cxx.o
      CMakeFiles/RenderWindowUIMultipleInheritance.dir/SimpleViewUI.cxx.o
      CMakeFiles/RenderWindowUIMultipleInheritance.dir/moc_SimpleViewUI.cxx.o 
      -o RenderWindowUIMultipleInheritance -rdynamic
      /usr/lib/libQVTK.so.5.8.0 /usr/lib/libvtkViews.so.5.8.0
      /usr/lib/libvtkInfovis.so.5.8.0 /usr/lib/libvtkWidgets.so.5.8.0
      /usr/lib/libvtkHybrid.so.5.8.0
      /usr/lib/libvtkVolumeRendering.so.5.8.0
      /usr/lib/libvtkParallel.so.5.8.0 /usr/lib/libvtkRendering.so.5.8.0
      /usr/lib/libvtkGraphics.so.5.8.0 /usr/lib/libvtkImaging.so.5.8.0
      /usr/lib/libvtkIO.so.5.8.0 /usr/lib/libvtkFiltering.so.5.8.0
      /usr/lib/libvtkCommon.so.5.8.0 -lm /usr/lib/libvtksys.so.5.8.0
      -ldl /usr/lib/libvtkQtChart.so.5.8.0 -lQtGui -lQtSql -lQtNetwork
      -lQtCore -Wl,-rpath,/usr/lib/openmpi/lib
      -Wl,-rpath-link,/usr/lib/openmpi/lib <br>
      <br>
      <br>
      Il 28/07/2012 23:15, Elhassan Abdou ha scritto:<br>
    </div>
    <blockquote
      cite="mid:1343510118.2543.YahooMailNeo@web121304.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:arial,
        helvetica, sans-serif;font-size:10pt">
        <div>Hi</div>
        <div><br>
        </div>
        <div>Can you send the .pro file please <br>
        </div>
        <div>El-Hassan Mohamed <br>
          Biomedical engineering<br>
        </div>
        <div style="font-size: 10pt; font-family: arial, helvetica,
          sans-serif; ">
          <div style="font-size: 12pt; font-family: 'times new roman',
            'new york', times, serif; ">
            <div dir="ltr"> <font face="Arial" size="2">
                <hr size="1"> <b><span style="font-weight:bold;">From:</span></b>
                Pa Set <a class="moz-txt-link-rfc2396E" href="mailto:pasyte@hotmail.it">&lt;pasyte@hotmail.it&gt;</a><br>
                <b><span style="font-weight: bold;">To:</span></b>
                <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a> <br>
                <b><span style="font-weight: bold;">Sent:</span></b>
                Saturday, July 28, 2012 2:52 PM<br>
                <b><span style="font-weight: bold;">Subject:</span></b>
                [vtkusers] Segmentation fault with QT + vtkDEMReader<br>
              </font> </div>
            <br>
            <div id="yiv557876174">
              <div> Testing a QT program with  vtkDEMReader, compiled
                with no error but exits at runtime with â€œsegfault at 0
                ip b65f7d31 sp bf842720 error 6 in
                libvtkIO.so.5.8.0[b6529000+4ce000]”.<br>
                <span id="yiv557876174result_box" class="yiv557876174"
                  lang="en"><span class="yiv557876174hps">I'm</span> <span
                    class="yiv557876174hps">definitely</span> <span
                    class="yiv557876174hps">making</span> <span
                    class="yiv557876174hps">some mistakes</span><span>.</span>
                  <span class="yiv557876174hps">Can anyone</span> <span
                    class="yiv557876174hps">point out</span> <span
                    class="yiv557876174hps">the right way</span><span>,
                    please?</span> <br>
                  <span class="yiv557876174hps">Thanks</span> <span
                    class="yiv557876174hps">in advance</span> <span
                    class="yiv557876174hps yiv557876174alt-edited">for
                    all feedback</span></span>.<br>
                Paolo<br>
                <br>
                <u>Some infos for answers follow:</u><br>
                The starting point is this example program
                <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance</a>,

                modified in this way <b>only</b>: <br>
                â€¦.....<br>
                #include "vtkSmartPointer.h"<br>
                #include &lt;vtkDEMReader.h&gt;<br>
                #include &lt;vtkImageData.h&gt;<br>
                Â <br>
                // Constructor<br>
                SimpleView::SimpleView()<br>
                {<br>
                Â  this-&gt;setupUi(this); <br>
                <br>
                Â  // Read the file<br>
                Â  vtkSmartPointer&lt;vtkDEMReader&gt; reader =
                vtkSmartPointer&lt;vtkDEMReader&gt;::New();<br>
                Â Â Â 
                reader-&gt;SetFileName("/usr/share/VTKData/Data/SainteHelens.dem");<br>
                Â Â Â  reader-&gt;Update();<br>
                â€¦...<br>
                <br>
                <u>OS and debug:</u><br>
                Ubuntu 12.04 with QT + VTK from repos.<br>
                Last Debug gdb:<br>
                <br>
                Thread [1] 7178 [core: 2] (Suspended : Signal :
                SIGSEGV:Segmentation fault)    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkDEMReader::ReadProfiles() at
                0xb6e3fd31    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkDEMReader::RequestData() at 0xb6e40bbc   
                <br>
                Â Â Â  Â Â Â  Â Â Â  vtkImageAlgorithm::ProcessRequest() at
                0xb7aa6af3    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkExecutive::CallAlgorithm() at
                0xb7a64d93    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkDemandDrivenPipeline::ExecuteData() at
                0xb7a580e6    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkDemandDrivenPipeline::ProcessRequest() at
                0xb7a5b74f    <br>
                Â Â Â  Â Â Â  Â Â Â 
                vtkStreamingDemandDrivenPipeline::ProcessRequest() at
                0xb7bac111    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkDemandDrivenPipeline::UpdateData() at
                0xb7a59fca    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkStreamingDemandDrivenPipeline::Update()
                at 0xb7badbf3    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkExecutive::Update() at 0xb7a654d6    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkDemandDrivenPipeline::Update() at
                0xb7a58f6b    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkStreamingDemandDrivenPipeline::Update()
                at 0xb7ba8ffb    <br>
                Â Â Â  Â Â Â  Â Â Â  vtkAlgorithm::Update() at 0xb79fcb43    <br>
                Â Â Â  Â Â Â  Â Â Â  SimpleView::SimpleView() at 0x804bb59    <br>
                Â Â Â  Â Â Â  Â Â Â  main() at 0x804b95c    <br>
                <br>
                <br>
                <u><span id="yiv557876174result_box"
                    class="yiv557876174short_text" lang="en"><span
                      class="yiv557876174hps">Both default versions work</span></span>:</u><br>
                Â Â Â  <a moz-do-not-send="true" rel="nofollow"
                  class="yiv557876174moz-txt-link-freetext"
                  target="_blank"
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUIMultipleInheritance</a><br>
                Â Â Â 
                <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/DEMReader">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/DEMReader</a> (
                <span id="yiv557876174result_box"
                  class="yiv557876174short_text" lang="en"><span
                    class="yiv557876174hps">some tweaking from </span></span><span
                  id="yiv557876174result_box"
                  class="yiv557876174short_text" lang="en"><span
                    class="yiv557876174hps"></span></span>vtkImageMapper3D


                to vtkImageMapper )<br>
                <br>
                Â Â Â  <br>
                <br>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at <a
              moz-do-not-send="true"
              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
              moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="http://www.vtk.org/mailman/listinfo/vtkusers"
              target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
            <br>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>