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

From MusicBrainz Wiki
(document building locales, when running from source)
(move installer deps to installer sections (tested, works))
Line 28: Line 28:
 
** http://acoustid.org/chromaprint
 
** http://acoustid.org/chromaprint
 
** Download "chromaprint-fpcalc-1.1-win-i86.zip" and put "fpcalc.exe" to the Picard source code directory
 
** Download "chromaprint-fpcalc-1.1-win-i86.zip" and put "fpcalc.exe" to the Picard source code directory
* py2exe 0.6.9
 
** http://sourceforge.net/projects/py2exe/files/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)
 
** http://nsis.sourceforge.net/Download
 
** Download and install "nsis-2.46-setup.exe"
 
  
 
== Running Picard From Sources ==
 
== Running Picard From Sources ==
Line 48: Line 42:
 
== Building the Installer ==
 
== 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:
+
To build the installer executable you need additional Tools:
 +
 
 +
* py2exe 0.6.9
 +
** http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/
 +
** Download and install "py2exe-0.6.9.win32-py2.7.exe"
 +
* NSIS 2.46
 +
** http://nsis.sourceforge.net/Download
 +
** Download and install "nsis-2.46-setup.exe"
 +
 
 +
Then 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.
 +
You also need copy discid.dll (libdiscid) to the picard source.
 +
 
 +
Then you can build the installer using this command:
  
 
  python setup.py bdist_nsis
 
  python setup.py bdist_nsis
 +
 +
The setup is installer\picard-setup-1.x.exe and an executable for your system is dist\picard.exe, which you can use to create a desktop shortcut.
  
 
== Known Issues ==
 
== Known Issues ==

Revision as of 00:31, 27 November 2013

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.

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 these commands:

python setup.py build_ext -i
python setup.py build_locales -i

After you have done this, you can run Picard directly from the sources using:

python tagger.py

Building the Installer

To build the installer executable you need additional Tools:

Then 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. You also need copy discid.dll (libdiscid) to the picard source.

Then you can build the installer using this command:

python setup.py bdist_nsis

The setup is installer\picard-setup-1.x.exe and an executable for your system is dist\picard.exe, which you can use to create a desktop shortcut.

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.