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

From MusicBrainz Wiki
Line 19: Line 19:
 
** http://code.google.com/p/mutagen/downloads/list
 
** http://code.google.com/p/mutagen/downloads/list
 
** Download and unpack "mutagen-1.20.tar.gz"
 
** Download and unpack "mutagen-1.20.tar.gz"
** python setup.py install
+
** Run <code>python setup.py install</code> in the unpacked directory
 
* MingGW
 
* MingGW
 
** http://sourceforge.net/projects/mingw/files/
 
** http://sourceforge.net/projects/mingw/files/
Line 25: Line 25:
 
** Uncheck the C compiler option, we need only the directory structure and mingw-get
 
** Uncheck the C compiler option, we need only the directory structure and mingw-get
 
** Add C:\MinGW\bin to %PATH%
 
** Add C:\MinGW\bin to %PATH%
* Gettext
+
* gettext
** mingw-get install gettext
+
** Run <code>mingw-get install gettext</code>
 +
* libdiscid
 +
** http://musicbrainz.org/doc/libdiscid
 +
** Download "libdiscid-0.1.1-win32bin.zip" and put "discid.dll" to the Picard source code directory
 +
* Chromaprint
 +
** http://acoustid.org/chromaprint
 +
** Download "chromaprint-fpcalc-0.6-win32.zip" and put "fpcalc.exe" to the Picard source code directory
  
 
== Running Picard From Sources ==
 
== Running Picard From Sources ==
Line 37: Line 43:
  
 
  python tagger.py
 
  python tagger.py
 
In order to have a fully functional copy of Picard, you need to get add [http://musicbrainz.org/doc/libdiscid discid.dll] and [http://acoustid.org/chromaprint fpcalc.exe] to the source directory.
 
  
 
== Building the Installer ==
 
== Building the Installer ==
  
If you have done all steps necessary to run Picard from sources and it works, you can build the installer using this command:
+
You can build the installer using this command:
  
 
  python setup.py bdist_nsis
 
  python setup.py bdist_nsis
  
== Known issues ==
+
== 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 [http://angusj.com/resourcehacker/ Resource Hacker] or any other tool, that can edit the resources in executables.
+
 
 +
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 [http://angusj.com/resourcehacker/ Resource Hacker] or any other tool, that can edit the resources in executables.
  
 
[[Category:Development]][[Category:MusicBrainz Picard]][[Category:How To]][[Category:To Be Reviewed]]
 
[[Category:Development]][[Category:MusicBrainz Picard]][[Category:How To]][[Category:To Be Reviewed]]

Revision as of 13:21, 30 September 2012

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

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.