Difference between revisions of "History:How to Build Picard for Windows"

From MusicBrainz Wiki
(Requirements: use Pip for Windows)
(Requirements: download gettext binary without MinGW)
Line 19: Line 19:
 
*** <code>pip install mutagen</code> for Mutagen (1.22 tested)
 
*** <code>pip install mutagen</code> for Mutagen (1.22 tested)
 
*** <code>pip install discid</code> for python-discid (1.1.x tested)
 
*** <code>pip install discid</code> for python-discid (1.1.x tested)
 +
* gettext
 +
** http://gnuwin32.sourceforge.net/packages/gettext.htm
 +
** Add the gettext folder to %PATH% (normally ''C:\Programs\GnuWin32\bin'')
 
* Visual C++ 2008 Express
 
* Visual C++ 2008 Express
 
** http://go.microsoft.com/?linkid=7729279
 
** http://go.microsoft.com/?linkid=7729279
 
** Download and install "vcsetup.exe"
 
** Download and install "vcsetup.exe"
* MingGW
 
** http://sourceforge.net/projects/mingw/files/
 
** Download and install the latest "mingw-get-inst-xxxx.exe"
 
** Uncheck the C compiler option, we need only the directory structure and mingw-get
 
** Add C:\MinGW\bin to %PATH%
 
* gettext
 
** Run <code>mingw-get install gettext</code>
 
 
* Chromaprint
 
* Chromaprint
 
** http://acoustid.org/chromaprint
 
** http://acoustid.org/chromaprint

Revision as of 19:33, 26 November 2013

This page explains the process of building the Picard installes for Windows. It only works for Picard 1.2 and newer, which no longer supports AmpliFIND.

Requirements

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:

python tagger.py

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

Known Issues

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.