Please keep on list...<div><br></div><div>If is difficult, but not impossible, to build VTK apps without CMake.</div><div><br></div><div>VTK6 has over 100 libraries. I suspect you are missing vtkRendering/OpenGL needed for VTK6&#39;s factory mechanism.</div>
<div><br><br><div class="gmail_quote">On Mon, Oct 15, 2012 at 9:59 AM, Doug Hoppes <span dir="ltr">&lt;<a href="mailto:dhoppes@mbfbioscience.com" target="_blank">dhoppes@mbfbioscience.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Yes, this is an app that I’m building outside of VTK.  It’s a QT application built with Visual studio 2008.  I’m not using a CmakeList.txt file.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Bill Lorensen [mailto:<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>]
<br>
<b>Sent:</b> Monday, October 15, 2012 9:55 AM<br>
<b>To:</b> Doug Hoppes<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] Latest nightly build: QT<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Is this an application you are building outside of VTK? If so, can you share your CMakeLists.txt file?<u></u><u></u></p>
<div>
<p class="MsoNormal">On Mon, Oct 15, 2012 at 9:37 AM, Doug Hoppes &lt;<a href="mailto:dhoppes@mbfbioscience.com" target="_blank">dhoppes@mbfbioscience.com</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">                Okay, got the latest nightly build and trying out the QT implementation (there’s a bug fix with destructor order in QT that I need).    With the latest change (vtkTDxConfigure.h
 being copied), I can get the code to compile.  However, running into a new issue: The renderwindow isn’t built.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">                My code (I have a class called VTKView which is subclassed from QVTKWidget). In my QT window, I have placed a QWidget and promoted it to VTKView.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#010001">VTKView</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">::<span style="color:#010001">VTKView</span>(<span style="color:#010001">QWidget</span> *<span style="color:#010001">pParent</span>)</span><u></u><u></u></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">:<span style="color:#010001">QVTKWidget</span>(<span style="color:#010001">pParent</span>),
<span style="color:#010001">m_pUIProcessor</span>(<span style="color:#010001">NULL</span>),
<span style="color:#010001">m_pSolidsImage</span>(<span style="color:#010001">NULL</span>)</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">{</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">            <span style="color:#010001">
m_pUIProcessor</span> = <span style="color:blue">new</span> <span style="color:#010001">
VTKSceneManager</span>(<span style="color:#010001">GetRenderWindow</span>());</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">}</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">In QVTKWidget, it calls the function:</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#010001">vtkRenderWindow</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">*
<span style="color:#010001">QVTKWidget</span>::<span style="color:#010001">GetRenderWindow</span>()</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">{     </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.0in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      <span style="color:blue">
if</span> (!<span style="color:blue">this</span>-&gt;<span style="color:#010001">mRenWin</span>)</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.0in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      {</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      <span style="color:green">
// create a default vtk window</span></span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      <span style="color:#010001">
vtkRenderWindow</span>* <span style="color:#010001">win</span> = <span style="color:#010001">
vtkRenderWindow</span>::<span style="color:#010001">New</span>();</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      <span style="color:blue">
this</span>-&gt;<span style="color:#010001">SetRenderWindow</span>(<span style="color:#010001">win</span>);</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      <span style="color:#010001">
win</span>-&gt;<span style="color:#010001">Delete</span>();</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.0in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      }</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      <span style="color:blue">
return</span> <span style="color:blue">this</span>-&gt;<span style="color:#010001">mRenWin</span>;</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">}</span><u></u><u></u></p>
<p class="MsoNormal">               
<u></u><u></u></p>
<p class="MsoNormal">                However, the software crashes because the variable “win” is null, after calling the vtkRenderWindow::New().<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Also, as a side note, I had to comment out a lot of function calls (should I not be using these any more?):<u></u><u></u></p>
<p class="MsoNormal">               
<span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&#39;SetScalarTypeToUnsignedChar&#39; : is not a member of &#39;vtkImageData&#39;</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&#39;vtkImageData::SetNumberOfScalarComponents&#39; : function does not take 1 arguments</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&#39;vtkImageData::AllocateScalars&#39; : no overloaded function takes 0 arguments</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&#39;SetInput&#39; : is not a member of &#39;vtkImageShiftScale&#39;</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&#39;SetInput&#39; : is not a member of &#39;vtkImageActor&#39;</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&#39;SetInput&#39; : is not a member of &#39;vtkOutlineFilter&#39;</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&#39;SetInput&#39; : is not a member of &#39;vtkPolyDataMapper&#39;</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:.5in">
<span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&#39;SetInput&#39; : is not a member of &#39;vtkSmartVolumeMapper&#39;</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Doug<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">---------------------------------------------------<u></u><u></u></p>
<p class="MsoNormal">Doug Hoppes
<a href="http://doug@mbfbioscience.com" target="_blank">doug@mbfbioscience.com</a><u></u><u></u></p>
<p class="MsoNormal">Senior Software Engineer<u></u><u></u></p>
<p class="MsoNormal">MBF Bioscience (Microbrightfield, Inc.)<u></u><u></u></p>
<p class="MsoNormal"><a href="tel:%2B1.802.288.9290%20ext%3A119" target="_blank">+1.802.288.9290 ext:119</a><u></u><u></u></p>
<p class="MsoNormal"><a href="http://www.mbfbioscience.com" target="_blank">www.mbfbioscience.com</a><u></u><u></u></p>
<p class="MsoNormal">---------------------------------------------------<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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>
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><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">-- <br>
Unpaid intern in BillsBasement at noware dot com<u></u><u></u></p>
</div></div></div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</div>