Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include_dirs for newer ffmpeg #6

Closed
GoogleCodeExporter opened this issue Dec 18, 2015 · 2 comments
Closed

include_dirs for newer ffmpeg #6

GoogleCodeExporter opened this issue Dec 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Newer ffmpeg seems to have .h files split into several directories

What steps will reproduce the problem?
1. install ffmpeg-0.4.9_p20080326
2. try to compile the extension
3. you'll notice following errors

pyffmpeg/pyffmpeg.c:14:25: error: mathematics.h: No such file or directory
pyffmpeg/pyffmpeg.c:15:20: error: avutil.h: No such file or directory
pyffmpeg/pyffmpeg.c:16:21: error: avcodec.h: No such file or directory
pyffmpeg/pyffmpeg.c:17:22: error: avformat.h: No such file or directory
pyffmpeg/pyffmpeg.c:18:18: error: avio.h: No such file or directory


Please provide any additional information below.

Can be fixed by adding additional include dirs into setup.py

            Extension("pyffmpeg", ["pyffmpeg/pyffmpeg.pyx"],
                include_dirs=["/usr/include/ffmpeg",
"/usr/include/libavutil", "/usr/include/libavcodec",
"/usr/include/libavformat"],
                libraries = ["avformat","avcodec"])
            ],

Original issue reported on code.google.com by r...@foobar.cz on 16 Jul 2008 at 7:01

@GoogleCodeExporter
Copy link
Author

Well, I realized that to tweak include_dirs is not the last thing needed to 
force it
behave. For those who are interested I made a patch against version 0.2.0 that
compiles against ffmpeg with enabled libswscale (--enable-swscale). Hope it 
helps. ;-)

http://labs.logic.cz/patches/pyffmpeg-0.2.0.patch

Thank you for pyffmpeg! :-)

Original comment by r...@foobar.cz on 16 Jul 2008 at 11:27

@GoogleCodeExporter
Copy link
Author

Original comment by bertrand...@gmail.com on 8 Jan 2010 at 3:30

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant