<font color="#000000"><font size="2"><font face="tahoma,sans-serif">Hi<br><br>I just found this thread which answers my question: <a href="http://www.cmake.org/pipermail/cmake/2004-December/005906.html">http://www.cmake.org/pipermail/cmake/2004-December/005906.html</a> <br>
<br>I put the ParaView bin directory in my System Path (Environment variable) and my application is able to start.<br><br>Thanks.<br></font></font></font><br><div class="gmail_quote">On Fri, Feb 18, 2011 at 7:08 PM, Alexis Chan <span dir="ltr"><<a href="mailto:alexisc@stanfordalumni.org">alexisc@stanfordalumni.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="#000000"><font size="2"><font face="tahoma,sans-serif">Hi<br><br></font></font></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif">I set BUILD_SHARED_LIBS in CMAKE to TRUE when configuring ParaView. <br>
<br>My test application uses the VTK library from ParaView. Here's the CMAKE entry:<br><br>FIND_PACKAGE( VTK REQUIRED )<br>INCLUDE( ${VTK_USE_FILE} ) <br>SET( VTK_LIBS vtkRendering vtkIO)<br><br>CMAKE autoloads the VTK directory as D:/alexisc/CompiledParaview/VTK<br>
<br>I checked that all the required dlls and libs are in D:\alexisc\CompiledParaview\bin\Release<br><br>But when I compile my application in Microsoft Visual Studio I get the following errors:<br></font></font></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif"><br>
<font size="1">Creating library D:\alexisc\CompiledVTKInteractionDevice\lib\Release\vtkInteractionDevice.lib and object D:\alexisc\CompiledVTKInteractionDevice\lib\Release\vtkInteractionDevice.exp<br>1>vtkVRPNTrackerStyleCamera.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int __cdecl vtkObject::IsTypeOf(char const *)" (__imp_?IsTypeOf@vtkObject@@SAHPBD@Z)<br>
1>vtkWiiMoteStyleCamera.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int __cdecl vtkObject::IsTypeOf(char const *)" (__imp_?IsTypeOf@vtkObject@@SAHPBD@Z)<br>1>vtkWiiMoteStyle.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int __cdecl vtkObject::IsTypeOf(char const *)" (__imp_?IsTypeOf@vtkObject@@SAHPBD@Z)<br>
1>vtkWin32RenderWindowDeviceInteractor.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int __cdecl vtkObject::IsTypeOf(char const *)" (__imp_?IsTypeOf@vtkObject@@SAHPBD@Z)</font><br>
<br><br>If I set the Configuration Properties->General->Project Defaults->Configuration Type from .dll to .lib, the compilation works. <br><br>This means that it was able to detect vtkRendering.lib which is in </font></font></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif">D:\alexisc\CompiledParaview\bin\Release</font></font></font><br>
<font color="#000000"><font size="2"><font face="tahoma,sans-serif"><br>But the application will not start because of missing vtkRendering.dll which is also in </font></font></font><font color="#000000"><font size="2"><font face="tahoma,sans-serif">D:\alexisc\CompiledParaview\bin\Release<br>
<br>Do you have any idea why the application is not able to detect vtkRendering.dll?<br><br>Thanks.<br></font></font></font><div><div></div><div class="h5"><br><div class="gmail_quote">On Fri, Feb 18, 2011 at 4:12 PM, David Partyka <span dir="ltr"><<a href="mailto:david.partyka@kitware.com" target="_blank">david.partyka@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Yes, all libraries that ParaView builds including VTK will also be built shared. Let us know if you need any more help.<br>
<br><div class="gmail_quote"><div><div></div><div>On Fri, Feb 18, 2011 at 4:09 PM, Alexis Chan <span dir="ltr"><<a href="mailto:alexisc@stanfordalumni.org" target="_blank">alexisc@stanfordalumni.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div><font color="#000000"><font size="2"><font face="tahoma,sans-serif">Hi<br>
<br>I set BUILD_SHARED_LIBS in CMAKE to TRUE when building ParaView. Does that mean that when it's building VTK for ParaView, the VTK is built with shared libraries?<br>
<br><br>I am building a test application that uses the VTK from ParaView and it would only compile when I changed the setting for the test application to static libraries (instead of shared libraries).<br><br>Thanks.</font></font></font><br>
<font color="#888888">
-- <br>Alexis YL Chan <br>
</font><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 <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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Alexis YL Chan <br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Alexis YL Chan<br><a href="http://alexisylchan.wordpress.com/" target="_blank">http://alexisylchan.wordpress.com/</a><a href="http://sites.google.com/site/alexisylchan/" target="_blank"></a><br>