[vtkusers] compiling with cmake

Charles James Leonardo Quarra Cappiello charsquarra at hotmail.com
Thu Oct 30 15:20:50 EST 2003


hi there,

  i extracted the .spec file of the available srpm for vtk. in this file im 
trying to compile it with this

export CC='gcc'
export CXX='g++'
export MAKE='make -j3'
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated"
cmake '/usr/src/redhat/BUILD/VTK/'   \
        -DLIBRARY_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK/lib \
        -DEXECUTABLE_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK/bin \
        -DCMAKE_INSTALL_PREFIX:PATH=/usr \
        -DCMAKE_SKIP_RPATH:BOOL=ON \
        -DPYTHON_INCLUDE_PATH:PATH=$(python2 -c"import os,sys; print 
os.path.join(sys.exec_prefix, 'include', 'python' + sys.version[:3])") \
        -DPYTHON_LIBRARY:FILEPATH=$(python2 -c"import os,sys; print 
os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3], 
'config/libpython' + sys.version[:3] + '.a')") \
        -DVTK_DATA_ROOT:PATH=%{_docdir}/vtk-data-%{version} \
        -DVTK_WRAP_PYTHON:BOOL=ON \
        -DVTK_WRAP_JAVA:BOOL=OFF \
        -DVTK_WRAP_TCL:BOOL=ON \
        -DVTK_USE_HYBRID:BOOL=ON \
        -DVTK_USE_PARALLEL:BOOL=ON \
        -DVTK_USE_PATENTED:BOOL=ON \
        -DVTK_USE_RENDERING:BOOL=ON \
        -DVTK_USE_MPI:BOOL=OFF \
        -DVTK_USE_X:BOOL=ON \
        -DVTK_USE_GL2PS:BOOL=ON \
        -DBUILD_DOCUMENTATION:BOOL=ON \
        -DBUILD_EXAMPLES:BOOL=ON \
        -DBUILD_SHARED_LIBS:BOOL=ON \
        -DBUILD_TESTING:BOOL=ON \
        -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
        -DCMAKE_C_COMPILER:FILEPATH=$CC

it stops with this error:

CMake Error: The source directory does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.


where /usr/src/redhat/BUILD/VTK is where VTK source was extracted and 
DEFINITELY there is a CMakeLists.txt.

CMake is the 1.8.1 version


  any ideas whats the problem here?  thanks so much!!!!

cheers

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail




More information about the vtkusers mailing list