[vtkusers] How to create stand alone executable file

William A. Hoffman billlist at nycap.rr.com
Mon Jun 2 15:20:34 EDT 2003


The problem is in the way you built VTK, not in the way you built
the executable.   You need to re-run cmake on VTK and set the
cache value BUILD_SHARED_LIBS to OFF, then rebuild VTK.   Then re-link
your executable.

-Bill


At 10:54 AM 6/2/2003, Li, Guosong (G.) wrote:

>Thanks to Nigel Nunn, Garrett Cope, and  Qing Hu for their kindly reply.
>
>I still have problem.
>
>When I start CMake, there are only four lines of Cache values:
>
>CMAKE_BACKWARDS_COMPATIBILITY
>EXECUTABLE_OUTPUT_PATH
>LIBRARY_OUTPUT_PATH
>VTK_DIR
>
>Many cache values as show in the User's Guide such as
>
>BUILD_EXAMPLES
>BUILD_SHARED_LIBS
>BUILD_TESTING
>DART_ROOT
>VTK_DATA_ROOT
>.....
>
>does not appear in the CMake interface window, so I 
>cannot change "BUILD_SHARED_LIBS" value from "On" to "OFF".
>
>Even I check Show Advanced Values box, those cache items still
>does not appear. 
>
>I installed CMake using a CD from VTK. The version is "CMake 1.6 - patch 5".
>
>Thanks you for your help!
>
>Guosong Li
>
>
>
>Thanks,
>
>Guosong Li 
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers 





More information about the vtkusers mailing list