Because of the constant attack by the wiki spam bots, accounts that are created and not used will be deleted. If you are a legitimate user, and your IP was blocked, please contact any active administrator - look at Special:RecentChanges and see who is busy fighting spam.

Talk:Python gfx module

From SWFTools
Jump to: navigation, search
# python setup.py build
Creating config.h...
running build
running build_ext
building 'gfx' extension
cc -fno-strict-aliasing -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -fno-strict-aliasing -fPIC -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/fontconfig -Ilib/lame/ -Ilib/pdf/xpdf -Ilib/pdf -I/usr/local/include/python2.5 -c lib/pdf/GFXOutputDev.cc -o build/temp.freebsd-8.0-CURRENT-200906-i386-2.5/lib/pdf/GFXOutputDev.o -fPIC -Wparentheses -Wimplicit -Wreturn-type -O3 -fomit-frame-pointer -Winline -Wno-unused -Wno-strict-prototypes -DHAVE_CONFIG_H -DSWFTOOLS_DATADIR="/usr/share/swftools/"
cc1plus: warning: command line option "-Wno-strict-prototypes" is valid for C/ObjC but not for C++
In file included from lib/pdf/GFXOutputDev.cc:45:
lib/pdf/xpdf/gfile.h:134: error: ISO C++ forbids declaration of 'DIR' with no type
lib/pdf/xpdf/gfile.h:134: error: expected ';' before '*' token
error: command 'cc' failed with exit status 1

Ubuntu build of Python gfx module

Ubuntu 9.* installs python packages in .../dist-packages (rather than .../site-packages).

Before running:

python setup.py build

be sure to edit setup.py, and change the occurrence of site-packages.