<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"><pasyte@hotmail.it></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 <vtkDEMReader.h><br>
#include <vtkImageData.h><br>
 <br>
// Constructor<br>
SimpleView::SimpleView()<br>
{<br>
 this->setupUi(this); <br>
<br>
 // Read the file<br>
 vtkSmartPointer<vtkDEMReader> reader =
vtkSmartPointer<vtkDEMReader>::New();<br>
  Â
reader->SetFileName("/usr/share/VTKData/Data/SainteHelens.dem");<br>
   reader->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>