[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] Python-Imaging
From: |
Norman Khine |
Subject: |
[Swftools-common] Python-Imaging |
Date: |
Tue, 31 Mar 2009 11:18:54 +0200 |
Hello,
On my mac os x 10.4.11 I have successfully installed the swftools
library and it seems to work well. I tried to build it with fink
originaly but fink failed when trying to build the kde stuff. So I
compiled it from source.
Anyhow, just a question.
When running:
$./configure
...
checking for Python.h... 2.6
checking whether we can compile the python test program... yes
checking for Python-Imaging... no
checking for missing libraries...
configure: creating ./config.status
It displays the there is no Python-Imaging, but from:
$ python2.6
Python 2.6.1 (r261:67515, Mar 30 2009, 14:21:45)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PIL
>>>
In the configure file, I had to change:
10835c10835
< elif test -f
"/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
---
> elif test -f
> "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10839,10840c10839,10840
< if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
< PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
---
> if test -f
> "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
> PYTHON_LIB2="$PYTHON_LIB
> /Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so"
10845c10845
<
PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
---
>
> PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
For it to work on the python2.6 install.
And for the python 2.3 which came with OSX 10.4, here is my diff:
10839,10840c10839,10840
< if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
< PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
---
> if test -f
> "/Library/Python/2.$v/site-packages/PIL/_imaging.so";then
> PYTHON_LIB2="$PYTHON_LIB
> /Library/Python/2.$v/site-packages/PIL/_imaging.so"
Norman
- [Swftools-common] Python-Imaging,
Norman Khine <=