History:How to Build Picard for Windows: Difference between revisions
m (→Requirements: update pytqt filename) |
m (→Requirements: update links, reorder (NSIS optional, python modules work without compiler)) |
||
Line 4: | Line 4: | ||
* Python 2.7.x |
* Python 2.7.x |
||
** http:// |
** http://python.org/download/ |
||
** Download and install "Python 2.7.x Windows Installer" |
** Download and install "Python 2.7.x Windows Installer" |
||
** Add C:\Python27 to %PATH% |
** Add C:\Python27 to %PATH% |
||
Line 10: | Line 10: | ||
** http://www.riverbankcomputing.co.uk/software/pyqt/download |
** http://www.riverbankcomputing.co.uk/software/pyqt/download |
||
** Download and install "PyQt4-4.10.x-gpl-Py2.7-Qt4.8.x-x32.exe" |
** Download and install "PyQt4-4.10.x-gpl-Py2.7-Qt4.8.x-x32.exe" |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* 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" |
||
* NSIS 2.46 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* MingGW |
* MingGW |
||
** http://sourceforge.net/projects/mingw/files/ |
** http://sourceforge.net/projects/mingw/files/ |
||
Line 36: | Line 33: | ||
** http://sourceforge.net/projects/py2exe/files/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" |
** Download and install "py2exe-0.6.9.win32-py2.7.exe" |
||
* NSIS 2.46 (only if you want to create Picard.exe) |
|||
⚫ | |||
⚫ | |||
== Running Picard From Sources == |
== Running Picard From Sources == |
Revision as of 18:30, 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
- Python 2.7.x
- http://python.org/download/
- Download and install "Python 2.7.x Windows Installer"
- Add C:\Python27 to %PATH%
- PyQt 4.10.x
- http://www.riverbankcomputing.co.uk/software/pyqt/download
- Download and install "PyQt4-4.10.x-gpl-Py2.7-Qt4.8.x-x32.exe"
- Mutagen 1.22
- http://code.google.com/p/mutagen/downloads/list
- Download and unpack "mutagen-1.22.tar.gz" (needs 7-zip or similar to unpack)
- Run
python setup.py install
in the unpacked directory (with cmd)
- Visual C++ 2008 Express
- http://go.microsoft.com/?linkid=7729279
- 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
mingw-get install gettext
- Run
- 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
- 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
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.