<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi David,<br>
<br>
On this page http://www.vtk.org/Wiki/VTK/Build_System_Migration#How_Implementation_Modules_Are_Initialized<br>
I found these lines<br>
<br>
<span style=" color:#000080;">#include</span><span style=" color:#c0c0c0;"> </span>
<span style=" color:#008000;"><vtkAutoInit.h></span>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">VTK_MODULE_INIT<span style=" color:#000000;">(</span>vtkRenderingOpenGL<span style=" color:#000000;">);</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">VTK_MODULE_INIT<span style=" color:#000000;">(</span>vtkInteractionStyle<span style=" color:#000000;">);<br><br></span></pre>
<pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font face="Arial">which when added to the source file using VTK solved the problem. I confess it's beyond my level of C++ understanding, so this was just luck.<br>I'll take it, though.<br><br></font></pre>
<font face="Arial"></font>
<pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font face="Arial">Cheers<br>Gib<br></font></pre>
<font face="Arial"><br>
</font>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px"><font face="Arial"></font>
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF749578"><font color="#000000" size="2" face="Tahoma"><b>From:</b> David Gobbi [david.gobbi@gmail.com]<br>
<b>Sent:</b> Monday, 16 November 2015 3:10 p.m.<br>
<b>To:</b> Gib Bogle<br>
<b>Cc:</b> vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] VTK 6.3 in Qt Creator<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi Gib,
<div><br>
</div>
<div>The error might go away if you link to the vtkRenderingOpenGL library.</div>
<div>For more info, see the following web page:</div>
<div><a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines" target="_blank">http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines</a></div>
<div><br>
</div>
<div>I set up one of the students here to use QtCreator with a cmake project,</div>
<div>and it worked quite well (especially because it allowed the student to</div>
<div>use the Qt graphical debugger). The cmake/QtCreator combination</div>
<div>is not as straightforward as qmake/QtCreator, but it's probably a better</div>
<div>solution for VTK apps.</div>
<div><br>
</div>
<div> - David</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Nov 15, 2015 at 6:58 PM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Getting there ... the linking now completes without error. But when I run the program I get this:<br>
<br>
Generic Warning: In ..\..\..\VTK-6.3.0\Rendering\Core\vtkRenderer.cxx, line 46<br>
Error: no override found for 'vtkRenderer'.<br>
<br>
Generic Warning: In ..\..\..\VTK-6.3.0\Rendering\Core\vtkRenderWindow.cxx, line 40<br>
Error: no override found for 'vtkRenderWindow'.<br>
<br>
Can some kind soul explain what this means?<br>
<br>
Thanks<br>
Gib<br>
________________________________________<br>
From: vtkusers [<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] on behalf of Gib Bogle [<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>]<br>
Sent: Monday, 16 November 2015 2:54 p.m.<br>
To: harshad1; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Subject: [FORGED] Re: [vtkusers] VTK 6.3 in Qt Creator<br>
<div class="HOEnZb">
<div class="h5"><br>
I use cmake everywhere except for building Qt programs, so I understand what you are saying. I really like Qt Creator, though.<br>
<br>
I have linked a lot more libraries, and now I'm down to only 3 unresolved externals:<br>
<br>
vtkRenderingCore-6.3.lib(vtkAreaPicker.obj) : error LNK2019: unresolved external symbol "public: static class vtkExtractSelectedFrustum * __cdecl vtkExtractSelectedFrustum::New(void)" (?New@vtkExtractSelectedFrustum@@SAPAV1@XZ) referenced in function "protected:
__thiscall vtkAreaPicker::vtkAreaPicker(void)" (??0vtkAreaPicker@@IAE@XZ)<br>
vtkRenderingCore-6.3.lib(vtkAreaPicker.obj) : error LNK2019: unresolved external symbol "public: void __thiscall vtkExtractSelectedFrustum::CreateFrustum(double * const)" (?CreateFrustum@vtkExtractSelectedFrustum@@QAEXQAN@Z) referenced in function "protected:
void __thiscall vtkAreaPicker::DefineFrustum(double,double,double,double,class vtkRenderer *)" (?DefineFrustum@vtkAreaPicker@@IAEXNNNNPAVvtkRenderer@@@Z)<br>
vtkRenderingCore-6.3.lib(vtkAreaPicker.obj) : error LNK2019: unresolved external symbol "public: int __thiscall vtkExtractSelectedFrustum::OverallBoundsTest(double *)" (?OverallBoundsTest@vtkExtractSelectedFrustum@@QAEHPAN@Z) referenced in function "protected:
int __thiscall vtkAreaPicker::ABoxFrustumIsect(double * const,double &)" (?ABoxFrustumIsect@vtkAreaPicker@@IAEHQANAAN@Z)<br>
release\scell_GUI.exe : fatal error LNK1120: 3 unresolved externals<br>
<br>
I'm trying to track down the required library.<br>
________________________________________<br>
From: vtkusers [<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] on behalf of harshad1 [<a href="mailto:hsriniv2@ncsu.edu" target="_blank">hsriniv2@ncsu.edu</a>]<br>
Sent: Monday, 16 November 2015 2:50 p.m.<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] VTK 6.3 in Qt Creator<br>
<br>
For what it's worth, I gave up on this after an hour of trying and switched<br>
to cmake. Haven't looked back since...<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-6-3-in-Qt-Creator-tp5734989p5734990.html" rel="noreferrer" target="_blank">
http://vtk.1045678.n5.nabble.com/VTK-6-3-in-Qt-Creator-tp5734989p5734990.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>