Build error due to missing -I flags to Utilities/ftgl/src
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
VTK Developers,
I was having build problems with VTK due to header files that could not be found.
Here is the solution that fixed the problem for me:
cvs -q diff Index: vtkIncludeDirectories.cmake
RCS file: /cvsroot/VTK/VTK/vtkIncludeDirectories.cmake,v retrieving revision 1.31 diff -r1.31 vtkIncludeDirectories.cmake 89a90,93 > # Access to vtkftglConfig.h > SET(VTK_INCLUDE_DIRS_BUILD_TREE ${VTK_INCLUDE_DIRS_BUILD_TREE} ${VTK_BINARY_DIR}/Utilities/ftgl) > # Access to FTLibrary.h FTGLPixmapFont.h > SET(VTK_INCLUDE_DIRS_SOURCE_TREE ${VTK_INCLUDE_DIRS_SOURCE_TREE} ${VTK_SOURCE_DIR}/Utilities/ftgl/src) Index: Utilities/ftgl/CMakeLists.txt
RCS file: /cvsroot/VTK/VTK/Utilities/ftgl/CMakeLists.txt,v retrieving revision 1.34 diff -r1.34 CMakeLists.txt 168c168 < ${VTKFTGL_BINARY_DIR}/vtkftglConfig.h)
> ${VTKFTGL_BINARY_DIR}/vtkftglConfig.h IMMEDIATE )
Here is the cmake command that describes the options used:
-DCMAKE_INSTALL_PREFIX:PATH=$(INSTALL_PREFIX)
-DCMAKE_CXX_COMPILER:FILEPATH="$(CXX) "
-DCMAKE_CXX_FLAGS:STRING="$(CXXFLAGS) "
-DCMAKE_C_COMPILER:FILEPATH="$(CC) "
-DCMAKE_C_FLAGS:STRING="$(CFLAGS) "
-DCMAKE_EXE_LINKER_FLAGS:STRING="$(LDFLAGS) "
-DCMAKE_MODULE_LINKER_FLAGS:STRING="$(LDFLAGS) $(CXX_ARFLAGS_SHARED) "
-DCMAKE_SHARED_LINKER_FLAGS:STRING="$(LDFLAGS) $(CXX_ARFLAGS_SHARED)"
-DVTK_EXECUTABLE_PATH:PATH=(INSTALL_DESTDIR)
(INSTALL_PREFIX)/bin
-DVTK_LIBRARY_PATH:PATH=(INSTALL_DESTDIR)
(INSTALL_PREFIX)/lib
-DVTK_BINARY_DIR:PATH=$(BUILDDIR)
-DINSTALL_DESTDIR:STRING=$(INSTALL_DESTDIR)
-DBUILD_SHARED_LIBS:BOOL=$(LOCAL_ITKSHARED)
-DCMAKE_SKIP_RPATH:BOOL=ON
-DVTK_USE_X:BOOL=ON
-DVTK_USE_COCOA:BOOL=OFF
-DVTK_USE_CARBON:BOOL=OFF
-DVTK_USE_RENDERING:BOOL=ON
cmake ../VTK Would you please double check these changes, and if appropriate commit them to VTK?
Thanks, Hans