[aubio-user] Using aubio 0.4.0 from python (windows)
Paul Brossier
piem at piem.org
Fri Jan 24 18:19:17 CET 2014
On 17/01/2014 08:53, Aymeric Voxler wrote:
> Hi all and thank you for your help.
Hi!
> I finally managed to build Aubio for Python on Windows 7, and import
> it in my code without any path issue with "from aubio import xxx".
> If it can help anyone, here's the method that worked for me:
Thanks for your report Aymeric, I'm sure it will help future windows users.
For what is worth, I just pushed a simple wavwrite sink to the develop
branch, that should let you write audio to 16 bits wav files when
building without external dependencies.
Best, Paul
>
> - install pythonXY - install mingw - get aubio from
> "git://git.aubio.org/git/aubio <http://git.aubio.org/git/aubio>"
>
> - open windows console in aubio directory * build the C library:
>> python .\waf configure build -j 1 --check-c-compiler=gcc
>
> * configure python to use gcc (see
> http://stackoverflow.com/questions/16737260/how-to-tell-distutils-to-use-gcc
>
>
>
>
):
> + create file "C:\Python27\Lib\distutils\distutils.cfg" containing:
> [build] compiler = mingw32
>
> + remove all "-mno-cygwin" from file
> "C:\Python27\Lib\distutils\cygwinccompiler.py" (not sure if this is
> necessary)
>
> - build the python module
>> cd python python setup.py build
>
> - install the python module:
>> python setup.py install
>
> - to check that everything is ok:
>> cd tests python run_all_tests -v
>
>
> best, Aymeric
>
>
>
> _______________________________________________ aubio-user mailing
> list aubio-user at aubio.org
> https://lists.aubio.org/listinfo/aubio-user
>
More information about the aubio-user
mailing list