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 

I can't build Pymedia

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



Joined: 22 May 2009
Posts: 1

PostPosted: Fri May 22, 2009 8:59 pm    Post subject: I can't build Pymedia Reply with quote

Hi every body,

I'm try to install the module pymedia 1.3.7.3 for python 2.5 in debian lenny, with gcc 4.3.2, but don't work, and I don't know how fix that,
I'm try two forms to do that but don't work



Code:

$ export CC=gcc32
$ 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]:
running build
running build_py
running build_ext
building 'pymedia.audio.sound' extension
gcc32 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=3 -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/include/lame -INone -I/home/milton/Desktop/pymedia-1.3.7.3 -Isound/ -I/usr/include/python2.5 -c sound/sound.cpp -o build/temp.linux-i686-2.5/sound/sound.o
unable to execute gcc32: No such file or directory
error: command 'gcc32' failed with exit status 1




Code:

$ 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
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1 -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/include/lame -INone -I/home/milton/Desktop/pymedia-1.3.7.3 -Isound/ -I/usr/include/python2.5 -c sound/sound.cpp -o build/temp.linux-i686-2.5/sound/sound.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
sound/sound.cpp:23:20: error: Python.h: No existe el fichero o el directorio
sound/sound.cpp:24:26: error: structmember.h: No existe el fichero o el directorio
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 function ‘int GetDevicesCount()’:
sound/audio_unix.h:71: error: ‘close’ was not declared in this scope
sound/audio_unix.h:81: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h: In member function ‘void DeviceHandler::FormatError()’:
sound/audio_unix.h:101: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:102: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:102: error: ‘strcpy’ was not declared in this scope
sound/audio_unix.h: In member function ‘bool InputDevices::RefreshDevice(int)’:
sound/audio_unix.h:125: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:130: error: ‘strcpy’ was not declared in this scope
sound/audio_unix.h: In member function ‘char* InputDevices::GetName(int)’:
sound/audio_unix.h:146: error: ‘NULL’ was not declared in this scope
sound/audio_unix.h: In member function ‘char* InputDevices::GetMID(int)’:
sound/audio_unix.h:154: error: ‘NULL’ was not declared in this scope
sound/audio_unix.h:156: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h: In member function ‘char* InputDevices::GetPID(int)’:
sound/audio_unix.h:163: error: ‘NULL’ was not declared in this scope
sound/audio_unix.h:165: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h: In member function ‘void OSoundStream::Uninit()’:
sound/audio_unix.h:215: error: ‘NULL’ was not declared in this scope
sound/audio_unix.h:216: error: ‘close’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::Init(int, int, int, int)’:
sound/audio_unix.h:226: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:234: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:235: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:235: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:241: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:242: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:242: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:258: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:259: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:259: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:268: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:269: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:269: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::GetSpace()’:
sound/audio_unix.h:315: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:316: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:316: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::IsPlaying()’:
sound/audio_unix.h:337: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:338: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:338: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::GetVolume()’:
sound/audio_unix.h:350: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:364: error: ‘close’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::SetVolume(int)’:
sound/audio_unix.h:377: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:395: error: ‘close’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::Pause()’:
sound/audio_unix.h:403: error: ‘NULL’ was not declared in this scope
sound/audio_unix.h: In member function ‘float OSoundStream::Play(unsigned char*, int)’:
sound/audio_unix.h:445: error: ‘usleep’ was not declared in this scope
sound/audio_unix.h:450: error: ‘NULL’ was not declared in this scope
sound/audio_unix.h:454: error: ‘write’ was not declared in this scope
sound/audio_unix.h:457: error: ‘EAGAIN’ was not declared in this scope
sound/audio_unix.h:461: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:461: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:461: error: ‘strcpy’ was not declared in this scope
sound/audio_unix.h: In member function ‘void ISoundStream::Uninit()’:
sound/audio_unix.h:506: error: ‘NULL’ was not declared in this scope
sound/audio_unix.h:507: error: ‘close’ was not declared in this scope
sound/audio_unix.h: In member function ‘int ISoundStream::Init(int, int, int)’:
sound/audio_unix.h:517: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:518: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:518: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:536: error: ‘errno’ was not declared in this scope
sound/audio_unix.h:537: error: ‘strerror’ was not declared in this scope
sound/audio_unix.h:537: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h: In member function ‘int ISoundStream::GetData(char*, int)’:
sound/audio_unix.h:624: error: ‘read’ was not declared in this scope
sound/audio_unix.h: In constructor ‘Mixer::Mixer(int)’:
sound/audio_unix.h:707: error: ‘sprintf’ was not declared in this scope
sound/audio_unix.h:713: error: ‘memset’ was not declared in this scope
sound/audio_unix.h: In destructor ‘Mixer::~Mixer()’:
sound/audio_unix.h:724: error: ‘close’ was not declared in this scope
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:234: error: expected constructor, destructor, or type conversion before ‘*’ token
sound/sound.cpp:239: error: ‘PyObject_HEAD’ does not name a type
sound/sound.cpp:247: error: ‘PyObject_HEAD’ does not name a type
sound/sound.cpp:258: error: ‘PyObject_HEAD’ does not name a type
sound/sound.cpp:265: error: ‘PyObject_HEAD’ does not name a type
sound/sound.cpp:272: error: ‘PyObject_HEAD’ does not name a type
sound/sound.cpp:279: error: ‘PyObject_HEAD’ does not name a type
sound/sound.cpp:293: error: expected initializer before ‘*’ token
error: command 'gcc' failed with exit status 1


Can you help me? Thanks!!

(Sorry for my english)
Back to top
View user's profile Send private message
tycho



Joined: 14 Jun 2009
Posts: 1

PostPosted: Sun Jun 14, 2009 11:09 am    Post subject: Reply with quote

Do you have the build-essential and python-dev packages installed?
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