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

Installing on Windows #38

Closed
nicosmik opened this issue Jul 17, 2014 · 16 comments
Closed

Installing on Windows #38

nicosmik opened this issue Jul 17, 2014 · 16 comments
Labels

Comments

@nicosmik
Copy link

Hi,
I would like to use PyAV under Python2.7 on windows.
Can you explain me how I can install the plugin?
(I would like a more recent version than the 0.1.0)
Thank you.
Nico

@danielballan
Copy link
Contributor

I am working on this.

The setup script was never intended to work on Windows. (For example, it calls pkgconfig, a Unix utility.)

The key difficulty is linking PyAV to the libraries that it requires: this is simply harder to do on Windows than it is on Unix/OSX. If you can help, please share anything you learn in issue #34.

@mikeboers mikeboers changed the title Setup for windows Installing on Windows Jul 17, 2014
@mikeboers
Copy link
Member

My experience building Python extensions for Windows is effectively zero, and I personally have no idea where to start. (I'm not a Windows user, if it wasn't obvious.)

I don't think there is anything stopping PyAV from supporting Windows, but I personally will not be able to maintain it, or reliably test it. Unfortunately, I don't think Travis supports Windows. It would be really awesome if there could be some sort of automatic verification that goes along with Windows support, so that we can make sure we don't break it in the future.

@danielballan
Copy link
Contributor

I have heard that ContinuumIO is working on something like this. Meanwhile, I set up 32-bit and 64-bit Windows 7 Virtual Machines on my MacBook. I have no particular expertise, but I have wasted many hours trying to make Python packages work on Windows for my collaborators. I'm ready to learn how to do this right.

@danielballan
Copy link
Contributor

This just in from the conda mailing list: a working example of continuous integration builds on Windows "Appveyor," a .NET-based answer to Travis-CI. As with Travis, open-source builds are free.

https://ci.appveyor.com/project/rmcgibbo/python-appveyor-conda-example

Seems likely that the big projects will adopt this if it's good. Something to watch....

@danielballan
Copy link
Contributor

A link for future ref. when one of us gets back to this: http://zeranoe.com/scripts/mingw_w64_build/mingw-w64-build-3.6.2

@MichaelBarz
Copy link

Hi,

unfortunately I still have problems with setting up PyAV for Windows. Here some system specs for clarification

Further I use my own build of ffmpeg that I cross-compiled with Ubuntu 14.04 LTS as mentioned in my previous post.
The PKG_CONFIG_PATH is set to the corresponding folder of my ffmpeg build.

Running make build-mingw32 starts building av\codec. However the process holds when generating the codec.pyd file with some undefined references:
cmd_err

Did someone already experience this issue? Maybe there is a missing dependency for the setup.py?

Best,
Michael

@MichaelBarz
Copy link

I finally figured out how to build PyAV for Windows. The problem above was caused by my Python version. I had 2.7.10 installed, which was not compatible. Installing an older version (I chose 2.7.6) solved that problem.

@mikeboers
Copy link
Member

The Python version matters, huh? Interesting...

@vidartf
Copy link
Contributor

vidartf commented Aug 11, 2015

Trying to set up PyAV on windows here too. For me, the ideal solution would be a bdist-wheel on PyPI built against the official windows shared ffmeg build.

@MichaelBarz
Copy link

@vidartf
Copy link
Contributor

vidartf commented Aug 11, 2015

Sure (except I need the 64-bit one). I've modified setup.py to be able to build on windows without ffmpeg source, and using either MSVC python compiler or MinGW. I'll clean it up and PR tomorrow.

@jlarsch
Copy link

jlarsch commented Mar 7, 2016

Hi,
I would love to use pyAV on my windows 64bit, 2.7.11 |Anaconda 2.3.0 (64-bit) configuration.
I have tried to follow the instructions here and here. I compiled ffmpeg but I can't make sense out of the sparse instructions for pyAV installation.
Can anyone provide a step by step command list that works on a windows machine or perhaps a wheel file?

@monicabm
Copy link

I was wondering if you were able to find the step by step command list or a wheel file for a windows 64bit version...

@eliziario
Copy link

hey @vidartf did you manage to create this that PR? still have this diff around?

@vidartf
Copy link
Contributor

vidartf commented Aug 25, 2017

Hey. My original PRs are here: https://github.com/mikeboers/PyAV/pulls?q=is%3Apr+author%3Avidartf+is%3Aclosed . Some of these are marked as closed instead of merged, because the repo owner rewrote them partly (so not sure if any commits in repo are in my name). I have no memory of this as it is quite a long while ago. Also, I think this was originally merged, so if it is again not working you might have to do something else.

@mikeboers
Copy link
Member

@vidartf I do end end up rewriting history a bit with PRs, but I try very hard to retain original authorship information (often I'll be the "committer" and the author is the author; I'm getting better at it. 😛).

I'm pretty sure everything found in that link was incorporated in some form or another.

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

No branches or pull requests

8 participants