[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Compiling pyswf on OS X

From: Ksenia Marasanova
Subject: Re: [Swftools-common] Compiling pyswf on OS X
Date: Wed, 27 Oct 2004 22:25:57 +0200

Oops, don't have it at all. Don't know if it matters, but I don't have
libpython2.3.a either. I probably should install some Python
development libraries?

Yes, that might be a good idea. :)

I found some info about python shared libraries on OS X:

More info:
http://developer.apple.com/documentation/MacOSX/Conceptual/ SystemOverview/index.html

If I replace
PYTHON_LIB="-lpython$PY_VERSION /Library/Python/2.$v/PIL/_imaging.so"
PYTHON_LIB="-framework Python"
in the configure script, it kinda works:

configure:22188: checking for Python.h and PIL
configure:22216: result: 2.3
configure:22221: checking whether we can compile the python test program
python.m4: gcc -I/usr/local/include/freetype2 -I/usr/local/include -Ilame -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 -lt1 -ljpeg -lz -lm -L/usr/local/lib -lfreetype -lz -o conftest
cc1: warning: "-frtti" is valid for C++ but not for C/ObjC
configure:22238: result: yes

but make falls:

gcc -DHAVE_CONFIG_H -g -shared SWF.o tagmap.o taglist.o tag.o image.o tags.o action.o primitives.o pyutils.o -o SWF.so -framework Python ../librfxswf.a -L/usr/local/lib -lt1 -ljpeg -lz -lm -L/usr/local/lib -lfreetype -lz
gcc: unrecognized option `-shared'
ld: Undefined symbols:
make[1]: *** [SWF.so] Error 1
make: *** [all] Error 2

I guess more changes need to be done... :(


reply via email to

[Prev in Thread] Current Thread [Next in Thread]