[vtkusers] BUILD_EXAMPLES doesn't build all examples

Brent Goodrick bgoodrick at ipns.com
Sun Feb 23 19:43:55 EST 2003


Hi,

Yes, its another cmake newbie question: Shouldn't the BUILD_EXAMPLES
cmake variable cause the build process to go down into, say,
Examples/Tutorial/Step1/Cxx/Cone.cxx and compile the Cone executable
there?  It doesn't for me.  What am I missing?

No, this is not a big deal, as I _am_ able to cd down into that
directory and reapply the ccmake incantation (see below) and make
sequence just fine (have to set VTK_DIR properly of course), so I'm
not held up, but was curious as to if this was a bug in the VTK build
environment.

This is using a fresh CVS update of the VTK source on Feb 23 2003. My
ccmake/make incantation is:

  # I'm wrapping using Python 2.2.1:
  PYTHONHOME=/scratch1/overflow/Python-2.2.1; export PYTHONHOME
  PATH="$PYTHONHOME/bin:$PATH"; export PATH

  # I'm compiling using GCC 3.2.1:
  GCC_HEAD=/scratch1/gcc-3.2.1/Linux_2_4_18_3
  LD_LIBRARY_PATH=${GCC_HEAD}/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH

  # The ccmake incantation:
  ccmake . \
    -DVTK_USE_ANSI_STDLIB:BOOL=ON \
    -DCMAKE_BACKWARDS_COMPATIBILITY:STRING=1.2 \
    -DCMAKE_CXX_COMPILER:STRING=${GCC_HEAD}/bin/c++ \
    -DCMAKE_C_COMPILER:STRING=${GCC_HEAD}/bin/gcc \
    -DCMAKE_C_COMPILER_FULLPATH:STRING=${GCC_HEAD}/bin/gcc \
    -DVTK_WRAP_PYTHON:BOOL=ON \
    -DBUILD_EXAMPLES:BOOL=ON \
    -DBUILD_SHARED_LIBS:BOOL=ON

  # Run make:
  make


Thanks,
Brent Goodrick





More information about the vtkusers mailing list