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 

HELP! Trying to install PyMedia on Ubuntu 8.04!!

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



Joined: 23 Jul 2008
Posts: 4

PostPosted: Wed Jul 23, 2008 10:59 am    Post subject: HELP! Trying to install PyMedia on Ubuntu 8.04!! Reply with quote

Hello-
I've tried everything. PyMedia refuses to install.
OK. Installing the latest PyMedia from the sourceForge page under ubuntu 8.04.
Gcc version:
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

G++ version:
g++ (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

Python:
2.5

I've install Python-dev.

I've run:
Quote:
ln -sf /usr/bin/i686-pc-linux.gnu-gcc /usr/bin/i386-pc-linux-gnu-gcc


I've installed:
--Build-essentials
--librsync-dev
--python2.5-dev

I've run:
ln -s g++-3.4 g++
and
ln -s gcc-3.4 gcc
and
export CC=gcc-3.4
and everything every tutorial has told me to.

This is what I get!
(python setup.py build)

Quote:
Using UNIX configuration...

OGG : found
VORBIS : found
FAAD : found
MP3LAME : found
VORBISENC : found
ALSA : found
Continue building pymedia ? [Y,n]:y
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/pymedia
copying inst_lib/__init__.py -> build/lib.linux-i686-2.5/pymedia
copying inst_lib/meta.py -> build/lib.linux-i686-2.5/pymedia
copying inst_lib/player.py -> build/lib.linux-i686-2.5/pymedia
creating build/lib.linux-i686-2.5/pymedia/audio
copying inst_lib/audio/__init__.py -> build/lib.linux-i686-2.5/pymedia/audio
creating build/lib.linux-i686-2.5/pymedia/video
copying inst_lib/video/__init__.py -> build/lib.linux-i686-2.5/pymedia/video
creating build/lib.linux-i686-2.5/pymedia/video/ext_codecs
copying inst_lib/video/ext_codecs/__init__.py -> build/lib.linux-i686-2.5/pymedia/video/ext_codecs
creating build/lib.linux-i686-2.5/pymedia/removable
copying inst_lib/removable/__init__.py -> build/lib.linux-i686-2.5/pymedia/removable
running build_ext
building 'pymedia.audio.sound' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/sound
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1862 -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/alex/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++
In file included from sound/sound.cpp:31:
sound/audio_alsa.h: In member function ‘int OSoundStream::Init(int, int, int, int)’:
sound/audio_alsa.h:322: warning: deprecated conversion from string constant to ‘char*’
sound/audio_alsa.h:324: warning: unused variable ‘val’
sound/audio_alsa.h: In member function ‘int ISoundStream::Init(int, int, int)’:
sound/audio_alsa.h:666: warning: deprecated conversion from string constant to ‘char*’
sound/audio_alsa.h: In constructor ‘Mixer::Mixer(int)’:
sound/audio_alsa.h:1033: warning: deprecated conversion from string constant to ‘char*’
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*’
sound/audio_alsa.h: In member function ‘int OSoundStream::Init(int, int, int, int)’:
sound/audio_alsa.h:408: warning: ‘frames’ is used uninitialized in this function
sound/audio_alsa.h: At global scope:
sound/audio_alsa.h:112: warning: ‘snd_mixer_elem_t* alsamixer_find_elem(snd_mixer_t*, char*, int)’ defined but not used
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1862 -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/alex/Desktop/pymedia-1.3.7.3 -Isound/ -I/usr/include/python2.5 -c sound/resample.c -o build/temp.linux-i686-2.5/sound/resample.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1862 -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/alex/Desktop/pymedia-1.3.7.3 -Isound/ -I/usr/include/python2.5 -c sound/fft.cpp -o build/temp.linux-i686-2.5/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-i686-2.5/sound/sound.o build/temp.linux-i686-2.5/sound/resample.o build/temp.linux-i686-2.5/sound/fft.o -logg -lvorbis -lfaad -lmp3lame -lvorbisenc -lasound -o build/lib.linux-i686-2.5/pymedia/audio/sound.so
building 'pymedia.audio.acodec' extension
creating build/temp.linux-i686-2.5/audio
creating build/temp.linux-i686-2.5/audio/acodec
creating build/temp.linux-i686-2.5/audio/libavcodec
creating build/temp.linux-i686-2.5/audio/libavcodec/liba52
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DBUILD_NUM=1862 -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/alex/Desktop/pymedia-1.3.7.3 -Iaudio/ -I/usr/include/python2.5 -c audio/acodec/acodec.c -o build/temp.linux-i686-2.5/audio/acodec/acodec.o
In file included from audio/acodec/acodec.c:31:
audio/libavcodec/dsputil.h:485: error: static declaration of ‘lrintf’ follows non-static declaration
audio/acodec/acodec.c:249: warning: initialization from incompatible pointer type
audio/acodec/acodec.c: In function ‘ACodec_Encode’:
audio/acodec/acodec.c:668: warning: pointer targets in passing argument 2 of ‘avcodec_encode_audio’ differ in signedness
error: command 'gcc' failed with exit status 1


What can I do???
Thanks.
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Wed Jul 23, 2008 4:14 pm    Post subject: Reply with quote

Did you see this post ?
http://www.indashpc.org/vbullettin/viewtopic.php?t=366
Back to top
View user's profile Send private message
PythonFan



Joined: 23 Jul 2008
Posts: 4

PostPosted: Wed Jul 23, 2008 5:24 pm    Post subject: Reply with quote

hello.
Thanks for your reply. I was a little frustrated when I wrote that...

I've seen that thread, but I didn't get much from it.
Some of the suggestions from it:

1. Instead of MMX files use non MMX ones
-- How do I do this?

2. I did though have to remove the lrintf function from audio/libavcodec/dsputil.h - it seems that my linux already has it.
Also I had to fetch the fdctref.c, ftf.c and mdct.c files from the pymedia-1.3.5.0 package, they are not in the 1.3.7.3 package.
--Say what? Lost me there.

Sorry. I understand Python fairly well, and I've been using Linux for a few years, but all of this just lost me.

Thanks for your help.
Back to top
View user's profile Send private message
PythonFan



Joined: 23 Jul 2008
Posts: 4

PostPosted: Sun Aug 10, 2008 7:03 am    Post subject: Reply with quote

can anyone help?
Back to top
View user's profile Send private message
PythonFan



Joined: 23 Jul 2008
Posts: 4

PostPosted: Sun Aug 10, 2008 7:03 am    Post subject: Reply with quote

Perhaps someone could compile a DEB for ubuntu 8.04?
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sun Aug 10, 2008 11:34 pm    Post subject: Reply with quote

There is a topic soewhere on the forum about lrintf. You simply have to disable its declaration in the very first place it appears.
http://www.indashpc.org/vbullettin/viewtopic.php?t=366&highlight=lrintf
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 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