python - “error: command 'c++' failed with exit status 1” while trying install pymedia -
i'm trying install pymedia in linux mind 18 run scripts using python 2.7. so, tracked down dependencies , got them installed :
sudo apt-get install python-dev libogg-dev libvorbis-dev liblame-dev libfaad2-dev libasound2-dev python-pygame libmp3lame-dev libevent-dev
so, when done installing above, during next step build pymedia, got following :
using unix configuration... ogg : found vorbis : found faad : found mp3lame : found vorbisenc : found alsa : found continue building pymedia ? [y,n]:y running install running build running build_py running build_ext building 'pymedia.audio.sound' extension x86_64-linux-gnu-gcc -pthread -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fno-strict-aliasing -wdate-time -d_fortify_source=2 -g -fstack-protector-strong -wformat -werror=format-security -dbuild_num=1873 -dpath_dev_dsp="/dev/dsp" -dpath_dev_mixer="/dev/mixer" -d_file_offset_bits=64 -daccel_detect=1 -dhave_mmx=1 -dhave_linux_dvd_struct=1 -ddvd_struct_in_linux_cdrom_h=1 -dconfig_vorbis -dconfig_vorbis -dconfig_faad -dconfig_mp3lame -dconfig_vorbis -dconfig_alsa -dhave_av_config_h -dudf_cache=1 -inone -inone -inone -i/usr/include/lame -inone -inone -i/home/adrian/pymedia-1.3.7.3 -isound/ -i/usr/include/python2.7 -c sound/sound.cpp -o build/temp.linux-x86_64-2.7/sound/sound.o cc1plus: warning: command line option ‘-wstrict-prototypes’ valid c/objc not c++ in file included sound/sound.cpp:31:0: sound/audio_alsa.h: in member function ‘int osoundstream::init(int, int, int, int)’: sound/audio_alsa.h:322:19: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] char *cardname = "default"; ^ sound/audio_alsa.h:324:15: warning: unused variable ‘val’ [-wunused-variable] unsigned int val; ^ sound/audio_alsa.h: in member function ‘int isoundstream::init(int, int, int)’: sound/audio_alsa.h:666:19: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] char *cardname = "default"; ^ in file included sound/sound.cpp:31:0: sound/audio_alsa.h: in member function ‘bool mixer::setmutecontrolvalue(int, int, int, int)’: sound/audio_alsa.h:973:9: warning: suggest explicit braces avoid ambiguous ‘else’ [-wparentheses] if (snd_mixer_selem_has_playback_channel(elem, (snd_mixer_selem_channel_id ^ sound/audio_alsa.h:1012:9: warning: suggest explicit braces avoid ambiguous ‘else’ [-wparentheses] if (snd_mixer_selem_has_capture_channel(elem, (snd_mixer_selem_channel_id_ ^ sound/audio_alsa.h: in constructor ‘mixer::mixer(int)’: sound/audio_alsa.h:1033:19: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] char *cardname = "default"; ^ sound/audio_alsa.h: in member function ‘bool mixer::setcontrolvalue(int, int, int, int, int)’: sound/audio_alsa.h:1330:8: warning: suggest explicit braces avoid ambiguous ‘else’ [-wparentheses] if (snd_mixer_selem_is_capture_mono(elem)) ^ sound/sound.cpp: @ global scope: sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] }; ^ sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:791:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp:798:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] }; ^ sound/sound.cpp:798:1: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] sound/sound.cpp: in function ‘void initsound()’: sound/sound.cpp:1451:66: warning: deprecated conversion string constant ‘char*’ [-wwrite-strings] g_cerr = pyerr_newexception(module_name".sounderror", null, null); ^ in file included sound/sound.cpp:31:0: sound/audio_alsa.h: in member function ‘int osoundstream::init(int, int, int, int)’: sound/audio_alsa.h:408:40: warning: ‘frames’ may used uninitialized in function [-wmaybe-uninitialized] this->bufsize=this->framesize * frames; ^ sound/audio_alsa.h: @ global scope: sound/audio_alsa.h:112:26: warning: ‘snd_mixer_elem_t* alsamixer_find_elem(snd_mixer_t*, char*, int)’ defined not used [-wunused-function] static snd_mixer_elem_t *alsamixer_find_elem(snd_mixer_t *handle, char *control ^ x86_64-linux-gnu-gcc -pthread -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fno-strict-aliasing -wdate-time -d_fortify_source=2 -g -fstack-protector-strong -wformat -werror=format-security -dbuild_num=1873 -dpath_dev_dsp="/dev/dsp" -dpath_dev_mixer="/dev/mixer" -d_file_offset_bits=64 -daccel_detect=1 -dhave_mmx=1 -dhave_linux_dvd_struct=1 -ddvd_struct_in_linux_cdrom_h=1 -dconfig_vorbis -dconfig_vorbis -dconfig_faad -dconfig_mp3lame -dconfig_vorbis -dconfig_alsa -dhave_av_config_h -dudf_cache=1 -inone -inone -inone -i/usr/include/lame -inone -inone -i/home/adrian/pymedia-1.3.7.3 -isound/ -i/usr/include/python2.7 -c sound/resample.c -o build/temp.linux-x86_64-2.7/sound/resample.o sound/resample.c: in function ‘fractional_resample’: sound/resample.c:48:24: warning: variable ‘incr’ set not used [-wunused-but-set-variable] unsigned int frac, incr; ^ x86_64-linux-gnu-gcc -pthread -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -fno-strict-aliasing -wdate-time -d_fortify_source=2 -g -fstack-protector-strong -wformat -werror=format-security -dbuild_num=1873 -dpath_dev_dsp="/dev/dsp" -dpath_dev_mixer="/dev/mixer" -d_file_offset_bits=64 -daccel_detect=1 -dhave_mmx=1 -dhave_linux_dvd_struct=1 -ddvd_struct_in_linux_cdrom_h=1 -dconfig_vorbis -dconfig_vorbis -dconfig_faad -dconfig_mp3lame -dconfig_vorbis -dconfig_alsa -dhave_av_config_h -dudf_cache=1 -inone -inone -inone -i/usr/include/lame -inone -inone -i/home/adrian/pymedia-1.3.7.3 -isound/ -i/usr/include/python2.7 -c sound/fft.cpp -o build/temp.linux-x86_64-2.7/sound/fft.o cc1plus: warning: command line option ‘-wstrict-prototypes’ valid c/objc not c++ c++ -pthread -shared -wl,-o1 -wl,-bsymbolic-functions -wl,-bsymbolic-functions -wl,-z,relro -fno-strict-aliasing -dndebug -g -fwrapv -o2 -wall -wstrict-prototypes -wdate-time -d_fortify_source=2 -g -fstack-protector-strong -wformat -werror=format-security -wl,-bsymbolic-functions -wl,-z,relro -wdate-time -d_fortify_source=2 -g -fstack-protector-strong -wformat -werror=format-security build/temp.linux-x86_64-2.7/sound/sound.o build/temp.linux-x86_64-2.7/sound/resample.o build/temp.linux-x86_64-2.7/sound/fft.o -l/usr/lib/x86_64-linux-gnu -l/usr/lib/x86_64-linux-gnu -l/usr/lib/x86_64-linux-gnu -l/usr/lib/x86_64-linux-gnu -l/usr/lib/x86_64-linux-gnu -l/usr/lib/x86_64-linux-gnu -logg -lvorbis -lfaad -lmp3lame -lvorbisenc -lasound -o build/lib.linux-x86_64-2.7/pymedia/audio/sound.so /usr/bin/ld: build/temp.linux-x86_64-2.7/sound/sound.o: no se puede usar la reubicación r_x86_64_32 contra `_py_nonestruct' cuando se hace un objeto compartido; recompile con -fpic build/temp.linux-x86_64-2.7/sound/sound.o: error adding symbols: valor erróneo collect2: error: ld returned 1 exit status error: command 'c++' failed exit status 1
it helpful if point out going wrong here.
Comments
Post a Comment