[Fwd: Re: [vtkusers] Building with Python on Mac OS X 10.2]

Karl Garsha garsha at itg.uiuc.edu
Fri Mar 14 17:22:44 EST 2003


-------- Original Message --------
Subject: Re: [vtkusers] Building with Python on Mac OS X 10.2
Date: Fri, 14 Mar 2003 11:55:43 -0600
From: Karl Garsha <garsha at itg.uiuc.edu>
To: Drew McCormack <cormack at chem.vu.nl>
References: <8B7F2D96-5610-11D7-9A68-003065BD3BD8 at chem.vu.nl>



Greetings Drew,
It is probably worthwhile to download the Python 2.2.2 distribution and 
do a framework build from source--this will give you the "right stuff" 
for building VTK on OS X.  Building Python on OS X is a matter of : 
configure --enable-framework=/Library/Frameworks ...make...sudo make 
frameworkinstall.
    Before building VTK do a make clean, run CMake again (with Python 
support enabled in CMakeCache.txt), and your PYTHON_LIBRARY should be 
-framework Python.  
-Karl

Drew McCormack wrote:

> I'm trying to compile VTK with python wrapping for the first time on 
> Mac OS X 10.2.4. I have cmake 1.6 and VTK 4.2.1 downloaded. Cmake 
> seems to work OK, but I get the following build error:
>
>
> Building shared module 
> /Users/cormack/Develop/VTK421/VTKBuild/bin/libvtkCommonPython.so...
> ld: can't map file: /sw/lib/python2.2 ((os/kern) invalid argument)
> make[3]: *** 
> [/Users/cormack/Develop/VTK421/VTKBuild/bin/libvtkCommonPython.so] 
> Error 1
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Common] Error 2
> make: *** [default_target] Error 2
>
>
> I think I am setting the PYTHON_LIBRARY entry in CMakeCache.txt 
> incorrectly, but I don't know what it should be. I have tried using 
> the standard OS X version of python (/usr/lib/python2.2) and the fink 
> version (/sw/lib/python2.2). Both give the same error.
>
> Can someone tell me which library needs to be entered? I can't find 
> any libpython.a or anything like that on my hard disk. Do I need to 
> recompile python or something like that?
>
> Drew
>
> ========================================
>  Dr. Drew McCormack (Kmr. R153)
>  Afd. Theoretische Chemie
>  Faculteit Exacte Wetenschappen
>  Vrije Universiteit Amsterdam
>  De Boelelaan 1083
>  1081 HV Amsterdam
>  The Netherlands
>
>  Email        cormack at chem.vu.nl
>  Telephone      +31 20 44 47623
>  Mobile        +31 6 483 21307
>  Fax           +31 20 44 47629
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers


-- 
Karl Garsha
Light Microscopy Specialist
Imaging Technology Group
Beckman Institute for Advanced Science and Technology
University of Illinois at Urbana-Champaign
405 North Mathews Avenue
Urbana, IL 61801
Office: B650J
Phone: 217.244.6292
Fax: 217.244.6219
Mobile: 217.390.1874
www.itg.uiuc.edu




-- 
Karl Garsha
Light Microscopy Specialist
Imaging Technology Group
Beckman Institute for Advanced Science and Technology
University of Illinois at Urbana-Champaign
405 North Mathews Avenue
Urbana, IL 61801
Office: B650J
Phone: 217.244.6292
Fax: 217.244.6219
Mobile: 217.390.1874
www.itg.uiuc.edu





More information about the vtkusers mailing list