rbash88 / pyffmpeg

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

gcc: pyffmpeg.c: No such file or directory #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. just try to build under linux 

What is the expected output? What do you see instead?

root@kato:/opt/pyffmpeg# python setup.py build
running build
running build_ext
building 'pyffmpeg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes
-fPIC -I/usr/include/ffmpeg -I/usr/include/python2.5 -c pyffmpeg.c -o
build/temp.linux-i686-2.5/pyffmpeg.o
gcc: pyffmpeg.c: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?

trunk, linux ubuntu 7.10 i386

Original issue reported on code.google.com by fru...@gmail.com on 15 May 2008 at 6:56

GoogleCodeExporter commented 8 years ago
This problem can be fixed by following setup.py modification:

I just added packages=..., ext_package=... and fixed pyffmpeg.pyx path

...
else:
        setup(
          name = "pyffmpeg",
          packages = ['pyffmpeg'],
          ext_package='pyffmpeg',
          ext_modules=[
            Extension("pyffmpeg", ["pyffmpeg/pyffmpeg.pyx"],
                include_dirs=["/usr/include/ffmpeg"],
                libraries = ["avformat","avcodec"])
            ],
          cmdclass = {'build_ext': build_ext},
          version = "0.2.0",
          author = "James Evans",
          author_email = "jaevans@users.sf.net",
          url = "http://www.clark-evans.com/~milamber/pyffmpeg",
        )

Original comment by r...@foobar.cz on 16 Jul 2008 at 6:53

GoogleCodeExporter commented 8 years ago
I changed line 586  
    targetPts = timestamp * AV_TIME_BASE

to 
    targetPts = <int64_t>timestamp * AV_TIME_BASE

This way the compile worked.

Original comment by spacysp...@gmail.com on 16 Aug 2008 at 10:53

GoogleCodeExporter commented 8 years ago

Original comment by sebastien.campion@gmail.com on 3 Jul 2009 at 9:48