History:How to Build Picard for Windows
This page explains the process of building MusicBrainz Picard and the installer for Windows. It only works for Picard 1.2 and newer, which no longer supports AmpliFIND.
- Python 2.7.x
- Download and install "Python 2.7.x Windows Installer"
- Add C:\Python27 to %PATH%
- PyQt 4.10.x
- Download and install "PyQt4-4.10.x-gpl-Py2.7-Qt4.8.x-x32.exe"
- Download "libdiscid-0.6.1-win32.zip" and put "discid.dll" in your Windows\System32 folder
- Pip for Windows
- Download to a location you find again (no installation)
- in Pip_Win:
pip install mutagenfor Mutagen (1.22 tested)
pip install discidfor python-discid (1.1.x tested)
- Add the gettext folder to %PATH% (normally C:\Programs\GnuWin32\bin)
- Visual C++ 2008 Express
- Download and install "vcsetup.exe"
- Download "chromaprint-fpcalc-1.1-win-i86.zip" and put "fpcalc.exe" to the Picard source code directory
- py2exe 0.6.9
- Download and install "py2exe-0.6.9.win32-py2.7.exe"
- NSIS 2.46 (only if you want to create Picard.exe)
- Download and install "nsis-2.46-setup.exe"
Running Picard From Sources
Before you can run Picard from sources, you need to build the C extension. Start the VS console using "Visual Studio 2008 Command Prompt", go to the source directory and run this command:
python setup.py build_ext -i
After you have done this, you can run Picard directly from the sources using:
Building the Installer
First you need to copy msvcr90.dll and msvcp90.dll from "C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT" to the source code directory, so that py2exe can find them. Then you can build the installer using this command:
python setup.py bdist_nsis
It is possible that the resulting picard.exe does not show the proper file icon. This is probably a bug of py2exe on Vista. You can fix the icon with the tool Resource Hacker or any other tool, that can edit the resources in executables.