InDashPC.org Forum Index InDashPC.org
In Dash Car PC forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Another building problem with pymedia

 
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software -> PyMedia Tutorials
View previous topic :: View next topic  
Author Message
oleiade



Joined: 01 Aug 2009
Posts: 1

PostPosted: Sat Aug 01, 2009 12:57 pm    Post subject: Another building problem with pymedia Reply with quote

Hi everyone,
I tried to build python as explained on this site, but the problem i'm encoutering doesn't fit with the common gcc stuff everybody seems to have... I get a g++ error.

Code:

Using UNIX configuration...

OGG          : found
VORBIS       : found
FAAD         : found
MP3LAME      : found
VORBISENC    : found
Continue building pymedia ? [Y,n]:Y
running build
running build_py
running build_ext
building 'pymedia.audio.sound' extension
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/sound/sound.o build/temp.linux-x86_64-2.6/sound/resample.o build/temp.linux-x86_64-2.6/sound/fft.o -logg -lvorbis -lfaad -lmp3lame -lvorbisenc -o build/lib.linux-x86_64-2.6/pymedia/audio/sound.so
/usr/bin/ld: build/temp.linux-x86_64-2.6/sound/sound.o: relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
build/temp.linux-x86_64-2.6/sound/sound.o: could not read symbols: Bad value
collect2: ld a retourné 1 code d'état d'exécution
error: command 'g++' failed with exit status 1


Here is the error,
thanks for any help you could give Smile
Back to top
View user's profile Send private message
Wallter



Joined: 05 Jul 2010
Posts: 1

PostPosted: Mon Jul 05, 2010 9:35 am    Post subject: Same error! Reply with quote

With gcc4
wallter@simmons:~/pymedia-1.3.7.3$ python setup.py build
Using UNIX configuration...

OGG : found
VORBIS : found
FAAD : found
MP3LAME : found
VORBISENC : found
ALSA : not found
Continue building pymedia ? [Y,n]:Y
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/pymedia
copying inst_lib/meta.py -> build/lib.linux-x86_64-2.6/pymedia
copying inst_lib/__init__.py -> build/lib.linux-x86_64-2.6/pymedia
copying inst_lib/player.py -> build/lib.linux-x86_64-2.6/pymedia
creating build/lib.linux-x86_64-2.6/pymedia/audio
copying inst_lib/audio/__init__.py -> build/lib.linux-x86_64-2.6/pymedia/audio
creating build/lib.linux-x86_64-2.6/pymedia/video
copying inst_lib/video/__init__.py -> build/lib.linux-x86_64-2.6/pymedia/video
creating build/lib.linux-x86_64-2.6/pymedia/video/ext_codecs
copying inst_lib/video/ext_codecs/__init__.py -> build/lib.linux-x86_64-2.6/pymedia/video/ext_codecs
creating build/lib.linux-x86_64-2.6/pymedia/removable
copying inst_lib/removable/__init__.py -> build/lib.linux-x86_64-2.6/pymedia/removable
running build_ext
building 'pymedia.audio.sound' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/sound
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1863 -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 -DHAVE_AV_CONFIG_H -DUDF_CACHE=1 -INone -INone -INone -I/usr/local/include/lame -INone -I/home/wallter/pymedia-1.3.7.3 -Isound/ -I/usr/include/python2.6 -c sound/sound.cpp -o build/temp.linux-x86_64-2.6/sound/sound.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from sound/sound.cpp:33:
sound/audio_unix.h:54: warning: deprecated conversion from string constant to ‘char*’
sound/audio_unix.h:55: warning: deprecated conversion from string constant to ‘char*’
sound/audio_unix.h: In member function ‘bool Mixer::SetControlValue(int, int, int, int, int)’:
sound/audio_unix.h:838: warning: suggest explicit braces to avoid ambiguous ‘else’
sound/sound.cpp: At global scope:
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:791: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:798: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp:798: warning: deprecated conversion from string constant to ‘char*’
sound/sound.cpp: In function ‘void initsound()’:
sound/sound.cpp:1451: warning: deprecated conversion from string constant to ‘char*’
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1863 -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 -DHAVE_AV_CONFIG_H -DUDF_CACHE=1 -INone -INone -INone -I/usr/local/include/lame -INone -I/home/wallter/pymedia-1.3.7.3 -Isound/ -I/usr/include/python2.6 -c sound/resample.c -o build/temp.linux-x86_64-2.6/sound/resample.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1863 -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 -DHAVE_AV_CONFIG_H -DUDF_CACHE=1 -INone -INone -INone -I/usr/local/include/lame -INone -I/home/wallter/pymedia-1.3.7.3 -Isound/ -I/usr/include/python2.6 -c sound/fft.cpp -o build/temp.linux-x86_64-2.6/sound/fft.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/sound/sound.o build/temp.linux-x86_64-2.6/sound/resample.o build/temp.linux-x86_64-2.6/sound/fft.o -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -logg -lvorbis -lfaad -lmp3lame -lvorbisenc -o build/lib.linux-x86_64-2.6/pymedia/audio/sound.so
/usr/bin/ld: build/temp.linux-x86_64-2.6/sound/sound.o: relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
build/temp.linux-x86_64-2.6/sound/sound.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
[b]with gcc32[b]

wallter@simmons:~/pymedia-1.3.7.3$ python setup.py build
Using UNIX configuration...

OGG : found
VORBIS : found
FAAD : found
MP3LAME : found
VORBISENC : found
ALSA : not found
Continue building pymedia ? [Y,n]:Y
running build
running build_py
running build_ext
building 'pymedia.audio.sound' extension
gcc34 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1866 -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 -DHAVE_AV_CONFIG_H -DUDF_CACHE=1 -INone -INone -INone -I/usr/local/include/lame -INone -I/home/wallter/pymedia-1.3.7.3 -Isound/ -I/usr/include/python2.6 -c sound/sound.cpp -o build/temp.linux-x86_64-2.6/sound/sound.o
unable to execute gcc34: No such file or directory
error: command 'gcc34' failed with exit status 1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software -> PyMedia Tutorials All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group