<div dir="ltr">Hi,<div><br></div><div>All libraries are by default (and hence in my case) installed in C:\Program Files (x86)\VTK\lib. That path is already added to the linker path. I even added \VTK\bin path to the linker path (though i do not know the logic behind it). Nothing works. I built VTK with Shared_LIBS ON.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 30, 2014 at 3:01 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">You have not specified all of the required VTK libraries.<br>
<div class="HOEnZb"><div class="h5"><br>
On Sat, Mar 29, 2014 at 2:18 PM, UJJWAL aryan <<a href="mailto:meetukme@gmail.com">meetukme@gmail.com</a>> wrote:<br>
> Hi Bill,<br>
><br>
> I have not written any CMakeLists.txt file. I just wrote a simple VTK<br>
> program and made a visual studio project using the configuration of x64 in<br>
> Release mode. When I try to do the build, it gives at the end a linker error<br>
> which I mentioned in my initial mail.<br>
><br>
><br>
> On Sun, Mar 30, 2014 at 2:46 AM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Please share the CMakeLists.txt file for your project.<br>
>><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<br>
>> > 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<br>
>> > not<br>
>> > happen because I end up with a linker error like this :<br>
>> ><br>
>> > vtk_1.obj : error LNK2019: unresolved external symbol<br>
>> > "__declspec(dllimport)<br>
>> > public: void __cdecl vtkRenderer::AddActor(class vtkProp *)"<br>
>> > (__imp_?AddActor@vtkRenderer@@QEAAXPEAVvtkProp@@@Z) referenced in<br>
>> > 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<br>
>> > 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>
>> > _______________________________________________<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>
>><br>
>><br>
>><br>
>> --<br>
>> Unpaid intern in BillsBasement at noware dot com<br>
><br>
><br>
><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>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div></div></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>