Share

PyMedia

Tracker: Bugs

5 audio/libavcodec/dsputil.h:485: error: static declaration of - ID: 1967420
Last Update: Comment added ( helge )

konrads@talon:~/pymedia-1.3.7.3$ 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/include/lame
-INone -I/home/konrads/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


It is fixed by adding a -DHAVE_LRINTF. I guess something is not detecting
something properly.


Nobody/Anonymous ( nobody ) - 2008-05-19 21:02

5

Open

None

Bors

pymedia

None

Public


Comment ( 1 )




Date: 2009-04-04 21:26
Sender: helge

I get approximately the same error, but on line 484.

Using Ubuntu 8.10.

$ python setup.py build
Using UNIX configuration...

OGG : found
VORBIS : found
FAAD : found
MP3LAME : found
VORBISENC : found
ALSA : found
Continue building pymedia ? [Y,n]:
running build
running build_py
running build_ext
building 'pymedia.audio.acodec' extension
gcc -pthread -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 -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=1 -INone
-INone -INone -I/usr/include/lame -INone -INone
-I/home/helge/hack/python/pymedia/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:484: 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



Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.