[vtkusers] compiling vtk 5 with tcl on mac intel
    Martin Costabel 
    costabel at wanadoo.fr
       
    Fri Sep  7 09:50:27 EDT 2007
    
    
  
Donald Johnson wrote:
> I have been trying to compile vtk on a mac book with running MacOSX 
> 10.4.10, gcc v 4.01. If i just try to build then library and examples 
> everything works correctly, however if i try to make the tcl bindings 
> cmake gives the following error durring configuring and exits.
> 
> RegularExpression::compile(): Nested *?+.
> RegularExpression::compile(): Error in compile.
> CMake Error: Error in cmake code at
> /Users/nalkar/Projects/C++/VTk/VTK 
> 5.0.2/Utilities/TclTk/internals/CMakeLists.txt:4:
> IF had incorrect arguments: "${TK_INTERNAL_PATH}" MATCHES 
> "${CMAKE_CURRENT_SOURCE_DIR}/tk${TCL_TK_VERSION}" (Regular expression 
> "/Users/nalkar/Projects/C++/VTk/VTK 
> 5.0.2/Utilities/TclTk/internals/tk8.4" cannot compile).
This looks like a bug in the VTK sources. They should use STREQUAL 
instead of MATCHES. From man cmake:
         IF(variable MATCHES regex)
         IF(string MATCHES regex)
   True if the given string or variable's value matches
   the given regular expression.
The second argument needs to be a regex, which pathnames aren't, in general.
-- 
Martin
    
    
More information about the vtkusers
mailing list