rbash88 / pyffmpeg

Automatically exported from code.google.com/p/pyffmpeg
0 stars 0 forks source link

compilation errors on linux fedora 10 #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install all needed packages with 'yum' (FFMPEG libs, Cython,..)
2. python setup build

What is the expected output? What do you see instead?
1. first build try:
Traceback (most recent call last):
[...] 
Pyrex.Compiler.Errors.CompileError:
/local/mben/soft/pyffmpeg-read-only/pyffmpeg.pyx:0:0:
'pyffmpeg-read-only.pyffmpeg' is not a valid module name

--> solution : rename directory 'pyffmpeg-read-only' as 'pyffmpeg'

2. second build try:
compilation errors :a lot of .h files are missing... (mathematics.h,
avutils.h, etc...)

--> solution : change a line in the setup.py file, in the linux part (after
else:)

include_dirs=["/usr/include/ffmpeg/","/usr/include/ffmpeg/libavcodec/","/usr/inc
lude/ffmpeg/libavformat","/usr/include/ffmpeg/libavutil","/usr/include/ffmpeg/li
bswscale"],

What version of the product are you using? On what operating system?
last version from svn with :
svn checkout http://pyffmpeg.googlecode.com/svn/trunk/ pyffmpeg-read-only

Please provide any additional information below.

Original issue reported on code.google.com by m...@irisa.fr on 13 Aug 2009 at 2:09

GoogleCodeExporter commented 8 years ago
i had to do the same changes on debian
and also, new ffmpeg code changes some of the mode defines, you have to change 
some 
RGBA32 -> RGB32 for it to compile

Original comment by pahappo@gmail.com on 14 Aug 2009 at 1:09

GoogleCodeExporter commented 8 years ago
Both comments were very helpful. For me, I didn't need to modify the include 
directories, likely, this is a distro-specific thing. (I'm using Gentoo.)

Things I did:
1) Rename pyffmpeg-read-only to pyffmpeg
2) Replace PIX_FMT_RGBA32 with PIX_FMT_RGB32
3) cd to stable
4) python setup.py build
5) It will build, but with these warnings:

running build
running build_ext
building 'pyffmpeg' extension
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/libavcodec/ 
-I/usr/include/libavformat -I/usr/include/libavutil -I/usr/include/libswscale 
-I/usr/include/python2.6 -c pyffmpeg.c -o build/temp.linux-x86_64-2.6/pyffmpeg.o
pyffmpeg.c: In function 
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream_ConvertToRGBA’:
pyffmpeg.c:554: warning: ‘sws_getContext’ is deprecated (declared at 
/usr/include/libswscale/swscale.h:191)
pyffmpeg.c:575: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
pyffmpeg.c: In function 
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream_ConvertToRGB24’:
pyffmpeg.c:644: warning: ‘sws_getContext’ is deprecated (declared at 
/usr/include/libswscale/swscale.h:191)
pyffmpeg.c:665: warning: passing argument 2 of ‘sws_scale’ from 
incompatible pointer type
pyffmpeg.c: In function 
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream___next_frame’:
pyffmpeg.c:946: warning: ‘avcodec_decode_video’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:3586)
pyffmpeg.c: In function 
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream_build_index_full’:
pyffmpeg.c:1181: warning: passing argument 1 of ‘url_feof’ from 
incompatible pointer type
pyffmpeg.c:1238: warning: ‘avcodec_decode_video’ is deprecated (declared at 
/usr/include/libavcodec/avcodec.h:3586)
pyffmpeg.c: In function 
‘__pyx_f_8pyffmpeg_6stable_8pyffmpeg_11VideoStream_build_index_fast’:
pyffmpeg.c:1471: warning: passing argument 1 of ‘url_feof’ from 
incompatible pointer type
creating build/lib.linux-x86_64-2.6
x86_64-pc-linux-gnu-gcc -pthread -shared build/temp.linux-x86_64-2.6/pyffmpeg.o 
-L/usr/lib64 -lz -lbz2 -lavformat -lavcodec -lswscale -lavutil -lpython2.6 -o 
build/lib.linux-x86_64-2.6/pyffmpeg.so

These are fairly serious warnings, and should be looked into. I'm using Gentoo 
Linux. Output of various useful bits:
$ uname -a
Linux nyx 2.6.36-gentoo-r5 #1 SMP Tue Dec 21 22:50:37 EST 2010 x86_64 Intel(R) 
Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux
$ gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure 
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include 
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4 
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/man 
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.4/info 
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4 
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec 
--disable-fixed-point --enable-nls --without-included-gettext 
--with-system-zlib --disable-checking --disable-werror --enable-secureplt 
--enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp 
--enable-java-awt=gtk --enable-languages=c,c++,java,treelang,fortran 
--enable-shared --enable-threads=posix --enable-__cxa_atexit 
--enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ 
--with-pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5'
Thread model: posix
gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) 

Using Gentoo's ffmpeg, media-video/ffmpeg-0.6_p25767

Original comment by deathana...@gmail.com on 11 Mar 2011 at 11:55

GoogleCodeExporter commented 8 years ago

Original comment by martin.h...@gmail.com on 17 Mar 2011 at 11:36