<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=218342517-20012003><FONT face=Arial color=#0000ff size=2>Here's
a link that describes changes to vtkwin32header to build a vtk as a static
lib.</FONT></SPAN></DIV>
<DIV><SPAN class=218342517-20012003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=218342517-20012003><FONT face=Arial color=#0000ff size=2><A
href="http://public.kitware.com/pipermail/vtkusers/2002-September/013413.html">http://public.kitware.com/pipermail/vtkusers/2002-September/013413.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=218342517-20012003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=218342517-20012003><FONT face=Arial color=#0000ff
size=2>-psj.</FONT></SPAN></DIV>
<DIV><SPAN class=218342517-20012003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
vtkusers-admin@public.kitware.com
[mailto:vtkusers-admin@public.kitware.com]<B>On Behalf Of
</B>sbe<BR><B>Sent:</B> 20/01/2003 10:45 AM<BR><B>To:</B> Joseph
Griffin<BR><B>Cc:</B> vtkusers@public.kitware.com<BR><B>Subject:</B> Re:
[vtkusers] lib or dll?<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>thank you for your help but it did not work, it
looks like the header force to do a dynamic link?!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>if you look in vtkwin32header.h:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>it include vtkconfigure.h which has:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>#define BUILD_SHARED_LIBS<BR>#ifdef
BUILD_SHARED_LIBS<BR>#define VTKDLL<BR>#else<BR>#define
VTKSTATIC<BR>#endif<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>then back to vtkwin32header.h:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#if defined(WIN32) &&
!defined(VTKSTATIC)<BR> #define VTK_EXPORT __declspec( dllexport
)</FONT></DIV>
<DIV><FONT face=Arial size=2>........</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#else</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #define
VTK_COMMON_EXPORT<BR>......</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>so, I don't know which these are doing there?
even if I comment out the BUILD_SHARED_LIBS and leave VTK_STATIC, it still
search for dll (I did rename vtkcommon.dll to vtkcommon2.dll to test
that).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anyways, that's not my main problem, but if it
could be solve, I would appreciate any help!</FONT></DIV>
<DIV><FONT face=Arial size=2>thank you.</FONT></DIV>
<DIV><FONT face=Arial size=2><BR> </DIV></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jgriffin@pclnet.net href="mailto:jgriffin@pclnet.net">Joseph
Griffin</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=sbe@harfangmicro.com
href="mailto:sbe@harfangmicro.com">sbe</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=vtkusers@public.kitware.com
href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, January 17, 2003 6:39
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [vtkusers] lib or
dll?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=504102823-17012003>Serge,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=504102823-17012003>Try this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=504102823-17012003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=504102823-17012003>In
the menus go Tools->Options->Show directories for:"Library Files" and
add the directory path to the libs.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=504102823-17012003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=504102823-17012003>Now go Project->Settings, click the Link Tab and
type in the name of each *.lib that is in the directory path you added above
(except the Python libs of course)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=504102823-17012003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=504102823-17012003>You can also use CMake to have a project generated
for you auto-magically. Joseph</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> <A
href="mailto:vtkusers-admin@public.kitware.com">vtkusers-admin@public.kitware.com</A>
[mailto:vtkusers-admin@public.kitware.com]<B>On Behalf Of
</B>sbe<BR><B>Sent:</B> Friday, January 17, 2003 3:18 PM<BR><B>To:</B>
vtkusers@public.kitware.com<BR><B>Subject:</B> [vtkusers] lib or
dll?<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>When using vc 6.0 under windows, I create a
simple project, add an example picked from the examples directory, add all
the static library (*.lib), then run it and the application ask for dll!?
how come? how can I link statically without using the dll's?</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Serge Béland<BR>Responsable produit, station
d'analyse</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>tél: (418) 683-6222 poste
202<BR> 1-866-HARFANG<BR>fax:(418)
683-7032</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.harfangmicro.com">http://www.harfangmicro.com</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>HARFANG Microtechniques inc.<BR>420 Boul.
Charest Est Suite 200<BR>Quebec (Que)<BR>G1K
8M4<BR>Canada</FONT></DIV></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>