<div dir="ltr">Hi Bill,<div><br></div><div>I have not written any CMakeLists.txt file. I just wrote a simple VTK program and made a visual studio project using the configuration of x64 in Release mode. When I try to do the build, it gives at the end a linker error which I mentioned in my initial mail.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 30, 2014 at 2:46 AM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please share the CMakeLists.txt file for your project.<br>
<div><div class="h5"><br>
<br>
On Sat, Mar 29, 2014 at 1:36 PM, UJJWAL aryan <<a href="mailto:meetukme@gmail.com">meetukme@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I built VTK 6.1.0 from source on Windows 7 64-bit system with Visual Studio<br>
> 2012 Professional version installed. After building the ALL_BUILD and<br>
> INSTALL projects in VTK/build I wrote a simple VTK program (I set up<br>
> appropriate include and library directories, so I know that it is not a<br>
> problem with paths). When I try to build this project , the build does not<br>
> happen because I end up with a linker error like this :<br>
><br>
> vtk_1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)<br>
> public: void __cdecl vtkRenderer::AddActor(class vtkProp *)"<br>
> (__imp_?AddActor@vtkRenderer@@QEAAXPEAVvtkProp@@@Z) referenced in function<br>
> main<br>
><br>
> There are about 20 such linker errors. I have checked following things :<br>
><br>
> a) build configuration is x64 in release mode ( problem remains the same<br>
> same in the debug mode and win32 mode)<br>
><br>
> b) Compiler configuration change from /MD to /Mt does not change anything.<br>
><br>
> c) Adding \VTK\bin to system path also does not work.<br>
><br>
> Can somebody help ?<br>
><br>
> --<br>
> Ujjwal<br>
> IIIT Hyderabad<br>
> Mob - 8142265628<br>
> <a href="mailto:ujjwal@research.iiit.ac.in">ujjwal@research.iiit.ac.in</a><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <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:<br>
> <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><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Ujjwal<div>IIIT Hyderabad </div><div>Mob - 8142265628</div><div><a href="mailto:ujjwal@research.iiit.ac.in" target="_blank">ujjwal@research.iiit.ac.in</a><br>
<br><br></div>
</div>