aitjcize / PyTox

Python binding for Project-Tox the skype replacement.
GNU General Public License v3.0
96 stars 29 forks source link

compile-error #6

Closed hersche closed 10 years ago

hersche commented 10 years ago

hello, this time i try to automate installation of dependencies. File is this: https://github.com/skamster/tryToxics/blob/master/buildDepsBuntu.sh

So i think, this time i'm very current with current with base-libs. The failure just appears, when i try to install pyTox:

marlene@fischli:~/Downloads/tryToxics-master/build/PyTox$ sudo python3 setup.py install running install running build running build_ext building 'tox' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.3m -c tox/tox.c -o build/temp.linux-x86_64-3.3/tox/tox.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.3m -c tox/core.c -o build/temp.linux-x86_64-3.3/tox/core.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.3m -c tox/av.c -o build/temp.linux-x86_64-3.3/tox/av.o tox/av.c:24:23: fatal error: tox/toxav.h: Datei oder Verzeichnis nicht gefunden

include <tox/toxav.h>

                   ^

compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


i assume, theres a missing file in folder tox, called toxav.h while av.c is there (why the tox-diffrent in names?)

The installation is done on a computer withouth any contact to all that stuff since now.. so may it's something else, or it's wrong by tox-core (but sodium and tox goes proper).. no real idea..

greets

aitjcize commented 10 years ago

Hi, you must be missing libraries so the A/V function in toxcore is disabled. You will need 'libvpx', 'opus', 'yasm' for toxcore to include A/V support. You can take a look at this script: https://github.com/aitjcize/PyTox/blob/master/.travis.yml

Actually I'm now working on setup.py so it automatically enable/disable if libtoxav.so is present.

hersche commented 10 years ago

so your script install it itself by setup.py then? thanks for that answer! will rewrite it soon :)

aitjcize commented 10 years ago

Yes, the .travis.yml is the test script for PyTox. As you can see, to build tox with A/V support, all those libraries are required. Currently PyTox does not automatically detect if the audio support is present and assume that there are audio support, but I'll fix this soon so you can also build PyTox without A/V support.

aitjcize commented 10 years ago

@skamster I've created a 'noav' branch which temporary disable A/V. You can build the module by

git fetch origin
git checkout origin/noav
python setup.py build
aitjcize commented 10 years ago

You can also join freenode irc #tox-dev, I'm always online.