-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Hi,
I am glad to have found this because I have been looking for a very minimalist receive only mumble client without a UI to run on a RaspberryPi in association with umurmur.
I have been trying to compile by running make in the pypus folder. Using Ubuntu 14.04 with python 2.7.6 and cython 0.20.1. I have amended the Makefile to Unix but am getting error messages such as the one you quote referring to " .rodata".
I am not sure i properly understand the advice in the Readme but have tried the following permutations of the Makefile with no success so far:
"CONFIGURE_OPTS = "--with-pic"
"CONFIGURE_OPTS = "--with-pic"
and
"CONFIGURE_OPTS = "-fPIC" (have I interpreted your advice about -fPIC correctly here?)
This last permutation returns:
make -C copus
make[1]: Entering directory /home/user/mumble/pymumble/pyopus/copus' python setup.py build_ext --inplace running build_ext skipping 'copus.c' Cython extension (up-to-date) building 'copus' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c copus.c -o build/temp.linux-x86_64-2.7/copus.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/copus.o opus-1.1/.libs/libopus.a -o /home/user/mumble/pymumble/pyopus/copus/copus.so /usr/bin/ld: opus-1.1/.libs/libopus.a(opus_decoder.o): relocation R_X86_64_32S against
.rodata' can not be used when making a shared object; recompile with -fPIC
opus-1.1/.libs/libopus.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
make[1]: *** [copus.so] Error 1
make[1]: Leaving directory `/home/user/mumble/pymumble/pyopus/copus'
make: *** [opus] Error 2
Is there anything else you can suggest that I try?