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 

pymedia build problem (code attached)

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



Joined: 30 Oct 2009
Posts: 1

PostPosted: Fri Oct 30, 2009 2:20 pm    Post subject: pymedia build problem (code attached) Reply with quote

I am using OSX 10.6 and Python 2.6

Code:

erik-chans-macbook-pro:pymedia-1.3.7.3 Erik$ python setup.py install
Using UNIX configuration...

OGG          : found
VORBIS       : not found
FAAD         : not found
MP3LAME      : not found
VORBISENC    : not found
ALSA         : not found
Continue building pymedia ? [Y,n]:Yes
running install
running build
running build_py
running build_ext
building 'pymedia.audio.sound' extension
gcc-4.0 -arch ppc -arch i386 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -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 -DHAVE_AV_CONFIG_H -DUDF_CACHE=1 -INone -I/Users/Erik/Desktop/pymedia-1.3.7.3 -Isound/ -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c sound/sound.cpp -o build/temp.macosx-10.3-fat-2.6/sound/sound.o
In file included from /usr/include/architecture/i386/math.h:626,
                 from /usr/include/math.h:28,
                 from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
                 from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
                 from sound/sound.cpp:23:
/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid.
In file included from sound/sound.cpp:33:
sound/audio_unix.h:29:27: error: sys/soundcard.h: No such file or directory
In file included from sound/sound.cpp:37:
sound/resample.h:5:20: error: malloc.h: No such file or directory
In file included from sound/sound.cpp:33:
sound/audio_unix.h:29:27: error: sys/soundcard.h: No such file or directory
In file included from sound/sound.cpp:37:
sound/resample.h:5:20: error: malloc.h: No such file or directory
sound/audio_unix.h: In member function ‘void OSoundStream::Uninit()’:
sound/audio_unix.h:215: error: ‘SNDCTL_DSP_RESET’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::Init(int, int, int, int)’:
sound/audio_unix.h:247: error: ‘SNDCTL_DSP_SETFMT’ was not declared in this scope
sound/audio_unix.h:256: error: ‘SNDCTL_DSP_CHANNELS’ was not declared in this scope
sound/audio_unix.h:266: error: ‘SNDCTL_DSP_STEREO’ was not declared in this scope
sound/audio_unix.h:280: error: ‘SNDCTL_DSP_SPEED’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::GetSpace()’:
sound/audio_unix.h:309: error: ‘audio_buf_info’ was not declared in this scope
sound/audio_unix.h:309: error: expected `;' before ‘zz’
sound/audio_unix.h:313: error: ‘SNDCTL_DSP_GETOSPACE’ was not declared in this scope
sound/audio_unix.h:313: error: ‘zz’ was not declared in this scope
sound/audio_unix.h:320: error: ‘zz’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::IsPlaying()’:
sound/audio_unix.h:334: error: ‘SNDCTL_DSP_GETODELAY’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::GetVolume()’:
sound/audio_unix.h:361: error: ‘SOUND_MIXER_READ_DEVMASK’ was not declared in this scope
sound/audio_unix.h:362: error: ‘SOUND_MASK_PCM’ was not declared in this scope
sound/audio_unix.h:363: error: ‘SOUND_MIXER_READ_PCM’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::SetVolume(int)’:
sound/audio_unix.h:389: error: ‘SOUND_MIXER_READ_DEVMASK’ was not declared in this scope
sound/audio_unix.h:392: error: ‘SOUND_MASK_PCM’ was not declared in this scope
sound/audio_unix.h:393: error: ‘SOUND_MIXER_WRITE_PCM’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::Pause()’:
sound/audio_unix.h:403: error: ‘SNDCTL_DSP_POST’ was not declared in this scope
sound/audio_unix.h: In member function ‘float OSoundStream::Play(unsigned char*, int)’:
sound/audio_unix.h:450: error: ‘SNDCTL_DSP_POST’ was not declared in this scope
sound/audio_unix.h: In member function ‘void ISoundStream::Uninit()’:
sound/audio_unix.h:506: error: ‘SNDCTL_DSP_RESET’ was not declared in this scope
sound/audio_unix.h: In member function ‘void OSoundStream::Uninit()’:
sound/audio_unix.h:215: error: ‘SNDCTL_DSP_RESET’ was not declared in this scope
sound/audio_unix.h: In member function ‘int ISoundStream::Init(int, int, int)’:
sound/audio_unix.h:530: error: ‘SNDCTL_DSP_SETFMT’ was not declared in this scope
sound/audio_unix.h:534: error: ‘SNDCTL_DSP_STEREO’ was not declared in this scope
sound/audio_unix.h:546: error: ‘SNDCTL_DSP_SPEED’ was not declared in this scope
sound/audio_unix.h: In member function ‘int ISoundStream::GetSpace()’:
sound/audio_unix.h:559: error: ‘audio_buf_info’ was not declared in this scopesound/audio_unix.h: In member function ‘int OSoundStream::Init(int, int, int, int)’:
sound/audio_unix.h:247: error: ‘SNDCTL_DSP_SETFMT’ was not declared in this scope

sound/audio_unix.h:559: error: expected `;' before ‘zz’
sound/audio_unix.h:560: error: ‘SNDCTL_DSP_GETISPACE’ was not declared in this scope
sound/audio_unix.h:560: error: ‘zz’ was not declared in this scope
sound/audio_unix.h:563: error: ‘zz’ was not declared in this scope
sound/audio_unix.h:256: error: ‘SNDCTL_DSP_CHANNELS’ was not declared in this scope
sound/audio_unix.h:266: error: ‘SNDCTL_DSP_STEREO’ was not declared in this scope
sound/audio_unix.h:280: error: ‘SNDCTL_DSP_SPEED’ was not declared in this scope
sound/audio_unix.h: In member function ‘int Mixer::GetConnection(int, int)’:
sound/audio_unix.h:655: error: ‘SOUND_MIXER_NRDEVICES’ was not declared in this scope
sound/audio_unix.h: In member function ‘bool Mixer::Refresh()’:
sound/audio_unix.h:673: error: ‘SOUND_MIXER_READ_DEVMASK’ was not declared in this scopesound/audio_unix.h: In member function ‘int OSoundStream::GetSpace()’:
sound/audio_unix.h:309: error: ‘audio_buf_info’ was not declared in this scope

sound/audio_unix.h:679: error: ‘SOUND_MIXER_READ_RECMASK’ was not declared in this scope
sound/audio_unix.h:685: error: ‘SOUND_MIXER_READ_STEREODEVS’ was not declared in this scopesound/audio_unix.h:309: error: expected `;' before ‘zz’

sound/audio_unix.h:691: error: ‘SOUND_MIXER_READ_RECSRC’ was not declared in this scope
sound/audio_unix.h:313: error: ‘SNDCTL_DSP_GETOSPACE’ was not declared in this scope
sound/audio_unix.h:313: error: ‘zz’ was not declared in this scope
sound/audio_unix.h:320: error: ‘zz’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::IsPlaying()’:
sound/audio_unix.h:334: error: ‘SNDCTL_DSP_GETODELAY’ was not declared in this scope
sound/audio_unix.h: In member function ‘int Mixer::GetConnectionsCount(int)’:
sound/audio_unix.h:743: error: ‘SOUND_MIXER_NRDEVICES’ was not declared in this scope
sound/audio_unix.h: In member function ‘char* Mixer::GetConnectionName(int, int)’:
sound/audio_unix.h:755: error: ‘SOUND_DEVICE_LABELS’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::GetVolume()’:
sound/audio_unix.h:361: error: ‘SOUND_MIXER_READ_DEVMASK’ was not declared in this scope
sound/audio_unix.h:362: error: ‘SOUND_MASK_PCM’ was not declared in this scope
sound/audio_unix.h:363: error: ‘SOUND_MIXER_READ_PCM’ was not declared in this scope
sound/audio_unix.h: In member function ‘int Mixer::GetControlValue(int, int, int, int, int*)’:
sound/audio_unix.h:786: error: ‘MIXER_READ’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::SetVolume(int)’:
sound/audio_unix.h:389: error: ‘SOUND_MIXER_READ_DEVMASK’ was not declared in this scope
sound/audio_unix.h:392: error: ‘SOUND_MASK_PCM’ was not declared in this scope
sound/audio_unix.h:393: error: ‘SOUND_MIXER_WRITE_PCM’ 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:829: error: ‘MIXER_READ’ was not declared in this scope
sound/audio_unix.h:863: error: ‘MIXER_WRITE’ was not declared in this scope
sound/audio_unix.h: In member function ‘int OSoundStream::Pause()’:
sound/audio_unix.h:403: error: ‘SNDCTL_DSP_POST’ was not declared in this scope
sound/audio_unix.h: In member function ‘float OSoundStream::Play(unsigned char*, int)’:
sound/audio_unix.h:450: error: ‘SNDCTL_DSP_POST’ was not declared in this scope
sound/audio_unix.h: In member function ‘bool Mixer::SetActive(int, int, int)’:
sound/audio_unix.h:901: error: ‘SOUND_MIXER_WRITE_RECSRC’ was not declared in this scope
sound/audio_unix.h: In member function ‘void ISoundStream::Uninit()’:
sound/audio_unix.h:506: error: ‘SNDCTL_DSP_RESET’ was not declared in this scope
sound/audio_unix.h: In member function ‘int ISoundStream::Init(int, int, int)’:
sound/audio_unix.h:530: error: ‘SNDCTL_DSP_SETFMT’ was not declared in this scope
sound/audio_unix.h:534: error: ‘SNDCTL_DSP_STEREO’ was not declared in this scope
sound/audio_unix.h:546: error: ‘SNDCTL_DSP_SPEED’ was not declared in this scope
sound/audio_unix.h: In member function ‘int ISoundStream::GetSpace()’:
sound/audio_unix.h:559: error: ‘audio_buf_info’ was not declared in this scope
sound/audio_unix.h:559: error: expected `;' before ‘zz’
sound/audio_unix.h:560: error: ‘SNDCTL_DSP_GETISPACE’ was not declared in this scope
sound/audio_unix.h:560: error: ‘zz’ was not declared in this scope
sound/audio_unix.h:563: error: ‘zz’ was not declared in this scope
sound/audio_unix.h: In member function ‘int Mixer::GetConnection(int, int)’:
sound/audio_unix.h:655: error: ‘SOUND_MIXER_NRDEVICES’ was not declared in this scope
sound/audio_unix.h: In member function ‘bool Mixer::Refresh()’:
sound/audio_unix.h:673: error: ‘SOUND_MIXER_READ_DEVMASK’ was not declared in this scope
sound/audio_unix.h:679: error: ‘SOUND_MIXER_READ_RECMASK’ was not declared in this scope
sound/audio_unix.h:685: error: ‘SOUND_MIXER_READ_STEREODEVS’ was not declared in this scope
sound/audio_unix.h:691: error: ‘SOUND_MIXER_READ_RECSRC’ was not declared in this scope
sound/audio_unix.h: In member function ‘int Mixer::GetConnectionsCount(int)’:
sound/audio_unix.h:743: error: ‘SOUND_MIXER_NRDEVICES’ was not declared in this scope
sound/audio_unix.h: In member function ‘char* Mixer::GetConnectionName(int, int)’:
sound/audio_unix.h:755: error: ‘SOUND_DEVICE_LABELS’ was not declared in this scope
sound/audio_unix.h: In member function ‘int Mixer::GetControlValue(int, int, int, int, int*)’:
sound/audio_unix.h:786: error: ‘MIXER_READ’ 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:829: error: ‘MIXER_READ’ was not declared in this scope
sound/audio_unix.h:863: error: ‘MIXER_WRITE’ was not declared in this scope
sound/audio_unix.h: In member function ‘bool Mixer::SetActive(int, int, int)’:
sound/audio_unix.h:901: error: ‘SOUND_MIXER_WRITE_RECSRC’ was not declared in this scope
lipo: can't figure out the architecture type of: /var/folders/wE/wEM7mLUsGJKt3MOIcLft0E+++TI/-Tmp-//ccJctcG6.out
error: command 'gcc-4.0' failed with exit status 1
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Mon Nov 02, 2009 8:09 pm    Post subject: Reply with quote

I'm sure something went wrong in defines. Check the forum, I saw somebody was having pymedia build on Mac OS.
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