[vtkusers] VTK 6.3 in Qt Creator

Gib Bogle g.bogle at auckland.ac.nz
Sun Nov 15 21:43:01 EST 2015


Hi David,

On this page http://www.vtk.org/Wiki/VTK/Build_System_Migration#How_Implementation_Modules_Are_Initialized
I found these lines

#include <vtkAutoInit.h>

VTK_MODULE_INIT(vtkRenderingOpenGL);

VTK_MODULE_INIT(vtkInteractionStyle);


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.
I'll take it, though.


Cheers
Gib

________________________________
From: David Gobbi [david.gobbi at gmail.com]
Sent: Monday, 16 November 2015 3:10 p.m.
To: Gib Bogle
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] VTK 6.3 in Qt Creator

Hi Gib,

The error might go away if you link to the vtkRenderingOpenGL library.
For more info, see the following web page:
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines

I set up one of the students here to use QtCreator with a cmake project,
and it worked quite well (especially because it allowed the student to
use the Qt graphical debugger).  The cmake/QtCreator combination
is not as straightforward as qmake/QtCreator, but it's probably a better
solution for VTK apps.

 - David

On Sun, Nov 15, 2015 at 6:58 PM, Gib Bogle <g.bogle at auckland.ac.nz<mailto:g.bogle at auckland.ac.nz>> wrote:
Getting there ... the linking now completes without error.  But when I run the program I get this:

Generic Warning: In ..\..\..\VTK-6.3.0\Rendering\Core\vtkRenderer.cxx, line 46
Error: no override found for 'vtkRenderer'.

Generic Warning: In ..\..\..\VTK-6.3.0\Rendering\Core\vtkRenderWindow.cxx, line 40
Error: no override found for 'vtkRenderWindow'.

Can some kind soul explain what this means?

Thanks
Gib
________________________________________
From: vtkusers [vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org>] on behalf of Gib Bogle [g.bogle at auckland.ac.nz<mailto:g.bogle at auckland.ac.nz>]
Sent: Monday, 16 November 2015 2:54 p.m.
To: harshad1; vtkusers at vtk.org<mailto:vtkusers at vtk.org>
Subject: [FORGED] Re: [vtkusers] VTK 6.3 in Qt Creator

I use cmake everywhere except for building Qt programs, so I understand what you are saying.  I really like Qt Creator, though.

I have linked a lot more libraries, and now I'm down to only 3 unresolved externals:

vtkRenderingCore-6.3.lib(vtkAreaPicker.obj) : error LNK2019: unresolved external symbol "public: static class vtkExtractSelectedFrustum * __cdecl vtkExtractSelectedFrustum::New(void)" (?New at vtkExtractSelectedFrustum@@SAPAV1 at XZ) referenced in function "protected: __thiscall vtkAreaPicker::vtkAreaPicker(void)" (??0vtkAreaPicker@@IAE at XZ)
vtkRenderingCore-6.3.lib(vtkAreaPicker.obj) : error LNK2019: unresolved external symbol "public: void __thiscall vtkExtractSelectedFrustum::CreateFrustum(double * const)" (?CreateFrustum at vtkExtractSelectedFrustum@@QAEXQAN at Z) referenced in function "protected: void __thiscall vtkAreaPicker::DefineFrustum(double,double,double,double,class vtkRenderer *)" (?DefineFrustum at vtkAreaPicker@@IAEXNNNNPAVvtkRenderer@@@Z)
vtkRenderingCore-6.3.lib(vtkAreaPicker.obj) : error LNK2019: unresolved external symbol "public: int __thiscall vtkExtractSelectedFrustum::OverallBoundsTest(double *)" (?OverallBoundsTest at vtkExtractSelectedFrustum@@QAEHPAN at Z) referenced in function "protected: int __thiscall vtkAreaPicker::ABoxFrustumIsect(double * const,double &)" (?ABoxFrustumIsect at vtkAreaPicker@@IAEHQANAAN at Z)
release\scell_GUI.exe : fatal error LNK1120: 3 unresolved externals

I'm trying to track down the required library.
________________________________________
From: vtkusers [vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org>] on behalf of harshad1 [hsriniv2 at ncsu.edu<mailto:hsriniv2 at ncsu.edu>]
Sent: Monday, 16 November 2015 2:50 p.m.
To: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
Subject: Re: [vtkusers] VTK 6.3 in Qt Creator

For what it's worth, I gave up on this after an hour of trying and switched
to cmake. Haven't looked back since...



--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-3-in-Qt-Creator-tp5734989p5734990.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151116/63df14d2/attachment.html>


More information about the vtkusers mailing list