[sword-devel] Building Python bindings

Joachim Ansorg nospam+sword-devel at joachim-ansorg.de
Tue Jun 14 13:26:53 MST 2005

thanks for reporting this.

> cd python && /usr/bin/python setup.py build_ext -I/usr/include/sword
> -L/usr/lib -lsword
> running build_ext
> building '_Sword' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -fPIC -DSWIG=1 -I/usr/include/sword
> -I/usr/include/python2.4 -c Sword.cxx -o build/temp.linux-i686-2.4/Sword.o
> gcc: Sword.cxx: No such file or directory
> gcc: no input files
> error: command 'gcc' failed with exit status 1
> make: *** [python_make] Error 1

I can confirm that but I found a workaround. I ran the following commands:
	cd bindings/switg/package/
	make pythonswig
	cd python
	python setup.py install
and to test the import:
	echo "import Sword" | python

I don't know python so I can't test it more :)

Does that help?
<>< Re: deemed

More information about the sword-devel mailing list