<div dir="ltr">Thank you!<div>The error resolved by including all the required library paths manually under project-> properties->Linker->Additional dependencies.</div><div>However now with successful build, when try to run the .exe file getting error as below</div><div><img src="cid:ii_14fd3c08d2c77e40" alt="Inline image 1" width="425" height="231" style="margin-right: 0px;"></div><div><br></div><div>Tried to resolve this issue as per wiki page(<a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines" style="white-space:pre-wrap">http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines</a>)</div><div><br></div><div>As I have been porting my application to VTK6.2 have added the macros in application header files with vtk instance.</div><div>"<span style="color:rgb(0,0,0);font-family:monospace,Courier;font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"> #include <vtkAutoInit.h></span><span style="color:rgb(0,0,0);font-family:monospace,Courier;font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"> VTK_MODULE_INIT(vtkRenderingOpenGL);"</span></div><div><span style="color:rgb(0,0,0);font-family:monospace,Courier;font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"><br></span></div><div><font color="#000000" face="monospace, Courier"><span style="font-size:12.7px;line-height:13.97px;background-color:rgb(249,249,249)">Still same error observed. Could you please correct me whether I am doing it wrong? Else if there are any workarounds kindly let me know.</span></font></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 12:57 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not using cmake in your code is fine.<div><br></div><div>In VTK's source, Utilities/Maintainance/WhatModules.py is a python script that scans code and figures out what modules(i.e. libraries) it needs. That should help. Otherwise you have to figure it out manually.<div><br></div><div>Also, your code now has to call some initialization functions that it didn't have to with VTK 5. Cmake based projects that use VTK 6 do this automatically. See the last part of the wiki page I pointed you at for more details.</div><div><br></div></div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Tue, Sep 15, 2015 at 2:47 PM, Kavya Bellur Padmesh <span dir="ltr"><<a href="mailto:kavyabellur.4@gmail.com" target="_blank">kavyabellur.4@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">David,<div><br></div><div>Thank you for the clarification. As I am porting the application with VS2013, all the lib file names are mentioned under Project-> Properties->Linker->Input-> Additional dependencies.</div><div>Now I have to replace included 'vtkCommon.lib' with new modularised .lib file for building my application.</div><div>The project I have been porting, is not created with cmake_lists.txt. In this scenario, how will I be able to port the application?</div><div><br></div><div>Kindly provide me some information.</div><div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 11:13 AM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Kavya,<div><br></div><div>The problem you see is that VTK 5's vtkCommon.lib was split in VTK 6 into vtkCommonDataModel.lib, vtkCommonColor.lib, vtkCommonComputatinalGeometry.lib, vtkCommonCore.lib, vtkCommonExecutionModel.lib, vtkCommonMath.lib, vtkCommonMisc.lib, vtkCommonSystem.lib, and vtkCommonTransforms.lib. This is the modularization John referred to and its purpose was to make it possible to link to only small parts of VTK if you don't need all of it.</div><div><br></div><div>See: <a href="http://www.vtk.org/Wiki/VTK/Build_System_Migration" target="_blank">http://www.vtk.org/Wiki/VTK/Build_System_Migration</a> for more information.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div>
<br><div class="gmail_quote"><div><div>On Tue, Sep 15, 2015 at 1:01 PM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><span>> I am new into VTK as well QT. I followed the installation procedure and<br>
> integrated VTK6.2 with QT5.5.0. As I am porting VTK5 application getting<br>
> linker error as "error LNL1104 Not able to open QVTK.lib, vtkCommon.lib' . I<br>
> have provided the path variables, still as library name doesnot match with<br>
> older version getting the error.<br>
><br>
> If anyone been successful in porting VTK5 to VTK6, could you please let me<br>
> know how did you modify the .lib files names?<br>
><br>
<br>
</span>It's much simpler to just use ${VTK_LIBRARIES} in your CMakeLists.txt<br>
instead of specifying individual libraries. There are quite a few<br>
libraries now with the modularization.<br>
<br>
John<br></div></div>
_______________________________________________<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>
</blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>