View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010047VTK(No Category)public2009-12-14 03:572016-08-12 09:55
ReporterFlorianWilhelm 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0010047: Error with VTK and Python Wrapper on MacOSX 10.6
DescriptionWhen I compile VTK 5.4.2 with Python Wrapper under MacOS X 10.6 "Snow Leopard" Server with Xcode 3.2.1 and cmake 2.8.0 installed I always get following error:

CMake Error in

/Network/Servers/MY_SERVER/Network/Servers/MY_SERVER/Network/Servers/MY_SERVER/Network/Servers/MY_SERVER/Volumes/gwvolume/groups/g1/local/lib/VTK/Common/CMakeLists.txt:
   Cannot find source file "vtkCommonPythonInit.cxx". Tried extensions .c .C
   .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

I can't resolve this. The file vtkCommonPythonInit.cxx really doesn't exist only vtkCommonPythonInit.data.
Doing the same thing under Linux just works fine although there isn't any file named vtkCommonPythonInit.cxx either.

Following build options were set:
BUILD_SHARED_LIBS ON
VTK_WRAP_PYTHON ON
Additional InformationWhen configuring via ccmake I get the following Warning

 CMake Warning (dev) at

/Network/Servers/MY_SERVER/Network/Servers/MY_SERVER/Network/Servers/MY_SERVER/Volumes/gwvolume/groups/g1/local/lib/VTK/CMake/vtkDetermineCompilerFlags.cmake:98 (IF):
   given arguments:

     "TRUE"

   An argument named "TRUE" appears in a conditional statement. Policy CMP0012 is not set: if() recognizes numbers and boolean constants. Run
   "cmake --help-policy CMP0012" for policy details. Use the cmake_policy
   command to set the policy and suppress this warning.
 Call Stack (most recent call first):
   CMakeLists.txt:358 (INCLUDE)
 This warning is for project developers. Use -Wno-dev to suppress it.

which I include here only for completeness and has most likely nothing to do with the actual error.
Tagscasesensitive, macosx, python, xsan
Project
Type
Attached Files

 Relationships

  Notes
(0018898)
David Gobbi (developer)
2009-12-15 10:54

The "cmake policy" warning is indeed a completely separate issue and not part of this bug.

There have been many fixes for OS X 10.6 in vtk-cvs, and there are 10.6 dashboard machines now. These fixes will be released in the upcoming VTK 5.6.

In the meantime, I believe that the only way to use the python and tcl wrappers on 10.6 with VTK 5.4.2 is to force the python & tcl library/include paths to use Python2.5 and Tcl8.4.

Since the issue has been fixed in cvs, perhaps this bug can be closed?
(0018910)
FlorianWilhelm (reporter)
2009-12-16 02:56
edited on: 2009-12-16 02:57

@dgobbi:
I just downloaded the newest vtk-cvs revision and I run in the same error. So it doesn't seem to be fixed.
The warning is gone though.

(0018916)
David Gobbi (developer)
2009-12-16 09:09

Florian: I just did a test compile of vtk-cvs on my system with cmake-2.8.0, with BUILD_SHARED_LIBS=ON and VTK_WRAP_PYTHON=ON as the only non-default settings. It built without any errors, and there is a Common/vtkCommonPythonInit.cxx. I have XCode 3.2.1, OSX 10.6, and am using the system python 2.6 in /System/Library/Frameworks/Python.framework.

Please provide additional information about your system. Also, this is a shot in the dark, but can you try doing the build on the local machine instead of on a network drive?
(0018918)
FlorianWilhelm (reporter)
2009-12-16 10:08
edited on: 2009-12-16 10:23

@dgobbi:
Thanks for this hint, now it works. All I did was to copy over vtk-cvs from the network drive (which is an XSAN2 System if that helps) to /usr/local/lib and rerun ccmake again with BUILD_SHARED_LIBS=ON and VTK_WRAP_PYTHON=ON as the only non-default settings. The Makefiles were generated and right now it's compiling.
It's strange though that it doesn't work from a network share provided by XSAN2 which is quite a common configuration I guess.
I took a closer look at the cmake configuration when I try to build it on the XSAN volume directly (as my admin wants me to). There are a lot of lines like this:
CMAKE_RANLIB /Network/Servers/SERVERNAME/Network/Servers/SERVERNAME/Network/Servers/SERVERNAME/twork/Servers/SERVERNAME/usr/bin/ranlib
which seems odd because of these many recursive folders. Maybe this has something to do with it.
I'm happy that it works for me this way, but I think it should be cleared out why it doesn't work on an XSAN2 volume, because most users will have only on this volume write permission to build.

(0018919)
David Gobbi (developer)
2009-12-16 10:24

Florian: Please ask on the vtkusers list to see if other mac xsan users have similar problems.
(0018956)
FlorianWilhelm (reporter)
2009-12-21 05:26

@dgobbi:
I just sent following mail to the vtkusers:

"Hello,

has anyone encountered problems with building VTK on MacOS X 10.6 on an XSAN2 volume?
In my case I tried to configure VTK with python wrappers enabled on an XSAN2 volume and run into following error message:

CMake Error in

/Network/Servers/MY_SERVER/Network/Servers/MY_SERVER/Network/Servers/MY_SERVER/Network/Servers/MY_SERVER/Volumes/gwvolume/groups/g1/local/lib/VTK/Common/CMakeLists.txt:
   Cannot find source file "vtkCommonPythonInit.cxx". Tried extensions .c .C
   .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

Doing the same in /usr/local/ worked just fine. It seems that cmake gets confused if it is invoked on an XSAN2 volume because I have a lot of following lines in my cmake cache:

CMAKE_RANLIB /Network/Servers/SERVERNAME/Network/Servers/SERVERNAME/Network/Servers/SERVERNAME/twork/Servers/SERVERNAME/usr/bin/ranlib

Maybe anyone else has encountered this before and together we can help the VTK/Cmake developers to resolve this problem.
The corresponding bugreport 10047 can be found here:
http://public.kitware.com/Bug/view.php?id=10047 [^]

Best regards,

Florian Wilhelm"

Hopefully we'll get some useful insight.
(0018960)
Brad King (developer)
2009-12-21 10:44

Have you tried a simple CMake project? Let's separate this from VTK first:

  # CMakeLists.txt
  cmake_minimum_required(VERSION 2.6.3)
  project(MyProject)
  add_executable(hello hello.c)

  /* hello.c */
  int main() { return 0; }

What happens if you try building this project on your network path?

Does the network path have any ';' in it?
(0018961)
David Cole (developer)
2009-12-21 10:44

Is the file system on the XSAN2 volume a "case sensitive" one by any chance...?

(i.e. can you put two distinct files named "ReadMe.txt" and "README.TXT" in the same directory?)

If so, that is likely the source of the problem. CMake on the Mac does not presently support building on a case sensitive file system volume.

If not, then it's still a mystery...
(0018962)
FlorianWilhelm (reporter)
2009-12-21 11:13

@david.cole:
I just tried
touch test; touch Test; touch TEST
on the XSAN2 volume and it creates 3 different files.
'mount' says that the filesystem is acfs.
So if cmake doesn't support case sensitive file systems on MacOS then this is likely the source of the problem as you pointed out.
(0018963)
FlorianWilhelm (reporter)
2009-12-21 11:20

@brad.king:
Simple projects like this work, even VTK works if I set VTK_WRAP_PYTHON=OFF. It seems that if VTK_WRAP_PYTHON is set to ON it generates some wrapping sourcefiles on the fly and gets the case of the file names wrong.
At least together with david.cole's hint this sounds like a reasonable explanation.
(0037128)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2009-12-14 03:57 FlorianWilhelm New Issue
2009-12-14 04:01 FlorianWilhelm Tag Attached: python
2009-12-14 04:01 FlorianWilhelm Tag Attached: macosx
2009-12-15 10:54 David Gobbi Note Added: 0018898
2009-12-16 02:56 FlorianWilhelm Note Added: 0018910
2009-12-16 02:57 FlorianWilhelm Note Edited: 0018910
2009-12-16 09:09 David Gobbi Note Added: 0018916
2009-12-16 10:08 FlorianWilhelm Note Added: 0018918
2009-12-16 10:23 FlorianWilhelm Note Edited: 0018918
2009-12-16 10:24 David Gobbi Note Added: 0018919
2009-12-21 05:26 FlorianWilhelm Note Added: 0018956
2009-12-21 05:38 FlorianWilhelm Tag Attached: xsan
2009-12-21 10:44 Brad King Note Added: 0018960
2009-12-21 10:44 David Cole Note Added: 0018961
2009-12-21 11:13 FlorianWilhelm Note Added: 0018962
2009-12-21 11:20 FlorianWilhelm Note Added: 0018963
2009-12-21 11:30 FlorianWilhelm Tag Attached: casesensitive
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037128
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team