[vtkusers] How to create stand alone executable file

Nigel Nunn nNunn at ausport.gov.au
Fri May 30 17:21:27 EDT 2003


Hi Guosong Li, 
 
> I can compile and build the executable file. 
> However, the executable file can only be run on 
> current computer. When I copy the executable to
> another computer, it doesn't work because it need 
> many vtk****.dll files.  How can I create a stand 
> alone executable file which is not dependent on 
> other ***.dll files? 
 
IN CMake, set [ BUILD_SHARED_LIBS ]   to   [ OFF ] 
 
The build process will then create "static" libs. When you 
build your application, all the necessary Vtk code will be 
linked into the executable file...  no DLLs required :-) 
 
Nigel 
 
 

**********************************************************************
This message is intended for the addressee named and may contain 
confidential and privileged information. If you are not the intended 
recipient please note that any form of distribution, copying or use of
this communication or the information in it is strictly prohibited and
may be unlawful. If you receive this message in error, please delete it
and notify the sender.

Keep up to date with what's happening in Australian sport.
Visit http://www.ausport.gov.au
**********************************************************************



More information about the vtkusers mailing list