[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] making the SWF python module on OS X
From: |
Daichi Shinozaki |
Subject: |
Re: [Swftools-common] making the SWF python module on OS X |
Date: |
Mon, 10 Jan 2005 14:42:49 +0900 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 |
Hi,
I've built a python(2.3) module for MacOS X successfully,
all pyswf examples runs without any problems.
You can download it from following URL:
http://shield.jp/~dseg/swftools/binaries/0.6.2-pyswf-py23-osx10.3.tar.gz
For building a python module, I tried a bit diffirent way,
wrote a simple "setup.py" and building a module by issuing
"python setup.py build_ext".
Python automatically choose correct settings(linker flags, etc)
for compilation and linkage.
setup.py which I used is downloadable from:
http://shield.jp/~dseg/swftools/setup.py
Here is my terminal session:
$ tar xvfz swftools-0.6.2.tar.gz
$ configure
$ make
$ cd lib/python
$ curl -O http://shield.jp/~dseg/swftools/setup.py
$ python setup.py build_ext
running build_ext
[...]
$ python setup.py install
running install
running build
running build_ext
running install_lib
copying build/lib.darwin-7.7.0-Power_Macintosh-2.3/SWF.so ->
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
P.S.
My environment:
SWFTools 0.6.2
MacOS X 10.3.7
GCC 3.3 (20030304)
Python 2.3
PIL 1.1.5b1
Freetype 2.1.3 (installed using FinkCommander)
--
Daichi Shinozaki
SHIELD.JP Admin
michael geary wrote:
Hi Matthias (& all),
I'm on OS X, and I'm able to compile swftools just fine, but I don't
seem to have the python module to use your great script. I seem to be
encountering the problems that Ksenia Marasanova encountered in
October. He seemed to find a way around it with your help, but it
appears that the fixes haven't yet found their way into the source
code...?
Here are the relevant lines from config.log:
configure:11539: checking for Python.h and PIL
configure:11576: result: 2.3
configure:11581: checking whether we can compile the python test program
python.m4: gcc -I/usr/local/include/freetype2 -I/usr/local/include
-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer
-fno-rtti
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/
python2.3/ conftest.c -L/usr/local/lib -framework Python
/Library/Python/2.3/PIL/_imaging.so -lt1 -ljpeg -lz -lm
-L/usr/local/lib -lfreetype -lz -o conftest
cc1: warning: "-frtti" is valid for C++ but not for C/ObjC
conftest.c:2:21: Imaging.h: No such file or directory
configure: failed program was:
#include <Python.h>
#include <Imaging.h>
int main()
{
int ret;
ret = Py_Main(0, 0);
int x; // check also for gcc 2.95.x incompatibilities
return ret;
}
configure:11604: result: no
Wäre für etwas Hilfe sehr dankbar...!
thanks,
michael geary
p.s. I LOVE swftools
_______________________________________________
Swftools-common mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/swftools-common
- Re: [Swftools-common] making the SWF python module on OS X,
Daichi Shinozaki <=