Picard Qt: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
m (30 revision(s))
(Clean out the page - it was redirected, but still had the entire old page below the redirect)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[Picard Tagger]]
#REDIRECT [[MusicBrainz Picard]]

{| border="1"
|-
| [[Image:picardqt-small.png]]
|}

PicardQt is a new version of [[Picard Tagger|PicardTagger]], written using [http://www.trolltech.com/products/qt Qt] as the GUI toolkit. It also includes implementations of a few new ideas, such as [[Intuitive Picard Interface|IntuitivePicardInterface]] or [[Tagger Script|TaggerScript]].

==Download==

See [[Picard Download|PicardDownload]] for download instructions.

===Development Source Code===

The source code is maintained in a [http://bazaar-vcs.org/ Bazaar] branch at [http://code.launchpad.net/~luks/picard/qt-port/ http://code.launchpad.net/~luks/picard/qt-port/]. To download it you need to install Bazaar and run: <pre>bzr branch http://code.launchpad.net/~luks/picard/qt-port/ picard-qt
</pre>

If you already have the branch and want to update it, use: <pre>bzr pull
</pre>
<ul><li style="list-style-type:none">'''Ubuntu Feisty''': To get the right bazaar version, install package ''bzr'', not ''bazaar''. To build picard-qt from the source, you need to:
<ul><li style="list-style-type:none"><code><nowiki>sudo apt-get install g++ python-dev libexpat-dev python-qt4 python-mutagen</nowiki></code>
</ul>For all optional features (I think), add: <code><nowiki>sudo apt-get install libavformat-dev libofa0-dev libgstreamer0.10-dev gstreamer0.10-ffmpeg</nowiki></code> (This is from my experience, feel free to add anything else you notice. --[[User:Bogdanb|Bogdanb]])
</ul>

==Installation From Source Code==

To run Picard you need at least:
* [http://www.python.org/ Python]
* [http://www.riverbankcomputing.co.uk/pyqt/ PyQt] (4.1 with Qt 4.2 or newer)
* [http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen Mutagen] (1.9 or newer)

Optionally also:
* [http://musicbrainz.org/doc/libdiscid libdiscid] (and [http://python.net/crew/theller/ctypes/ ctypes] if you use Python 2.4) for CD lookups
* [http://www.musicdns.org/downloads libofa]
* [http://ffmpeg.mplayerhq.hu/ libavformat/libavcodec]

Once you have installed the requirements, you can compile the C extensions:

<pre>python setup.py config
<edit build.cfg if neccessary>
python setup.py build_ext -i
python setup.py build_locales -i
</pre>

And now you can start Picard:

<pre>python tagger.py
</pre>

===Mac OS X Installation Notes===

A rough installation guide is available here: [[Picard Qt/Mac Install Guide|/MacInstallGuide]]

The Apple supplied python 2.3 in OSX 10.4.x will not work with picard, and some of the dependencies listed above expect a framework version of python. [http://pythonmac.org/packages/ http://pythonmac.org/packages/] provides a framework python 2.4 which seems to work.

===OpenSUSE Installation Notes===

For SUSE/OpenSUSE installation, you need to ensure two repositories are added to YAST/Smart/Zypper:

1) GURU's RPM repository. Select the correct repository for your version from the list at [http://linux01.gwdg.de/~pbleser/index.php Guru's Website] (Most SUSE users already have this repository.)

It contains the RPM for Picard-QT.

2) Go to the [http://download.opensuse.org/repositories/devel:/languages:/python/ OpenSUSE Python repository] and select the correct repository for your version.

It contains Python-QT4 and other Python RPMs you may need.

Other requirements should already be taken care of by default repositories and GURU's repository.

3) Select picard-qt in YAST/Smart/etc. and install.

4) Run Picard-QT using the command "picard".

===Ubuntu Feisty Installation Notes===

Add the following repository line to your apt sources.list <pre>deb-src ftp://ftp.musicbrainz.org/pub/musicbrainz/users/luks/ubuntu feisty musicbrainz
</pre>

Make sure you have <code><nowiki>devscript</nowiki></code> installed

Now run these commands (they should be pretty much self-explanatory <pre>apt-get build-dep picard
apt-get source picard
cd picard*/
debuild binary
cd ..
dpkg -i picard-*.deb
</pre>

===Debian Lenny Installation Notes===

The simplest installation path is to use the provided repository for sid (deb [ftp://ftp.musicbrainz.org/pub/musicbrainz/users/luks/ubuntu ftp://ftp.musicbrainz.org/pub/musicbrainz/users/luks/ubuntu] sid musicbrainz) - either edit your /etc/apt/sources.list or grab the deb package from there and dpkg it manually). Note, though, that the sid repository is not updated as often as the ubuntu one (so, you may want to try the feisty repo with unpredictable results, or go the source way).

Obviously, you can't (yet) use it on a pure lenny, as some required dependencies are still in sid. Just add sid in your sources list (deb [http://ftp.us.debian.org/debian http://ftp.us.debian.org/debian] sid main contrib non-free) and maintain a mixed distro. '''''Be dead sure to pin it''''' if you don't want to wake up on a fully-blowned sid!

At that time, the only failing dependency is on python-qt4, so pin it. Something like:

<pre>Package: python-qt4
Pin: release a=unstable
Pin-Priority: 2000

Package: *
Pin: release a=testing
Pin-Priority: 1000

Package: *
Pin: release a=unstable
Pin-Priority: 100
</pre>

Technically, that should do it for the i386 binary package.

If you prefer to roll your own (or if you're on amd64 and have no choice), the same solution (is needed and) does the trick. For what it's worth, here's the full package dependency list: <pre>python2.4, python-central (>= 0.5.8), python (<< 2.5), python (>= 2.4), fftw3, liba52-0.7.4, libavcodec0d (>= 0.cvs20060823), libavformat0d (>= 0.cvs20060823), libc6 (>= 2.5-5), libdc1394-13, libexpat1 (>= 1.95.8), libgcc1 (>= 1:4.2-20070516), libgsm1 (>= 1.0.10), libofa0 (>= 0.9.3), libogg0 (>= 1.1.3), libraw1394-8, libstdc++6 (>= 4.2-20070516), libvorbis0a (>= 1.1.2), libvorbisenc2 (>= 1.1.2), zlib1g (>= 1:1.2.1), python-qt4 (>= 4.1), libdiscid0, python-ctypes, python-mutagen (>= 1.9)
</pre>

Note that you may experience random segfaults on amd64 (reason yet unknown).

===Fedora 7, 8 and higher Installation===

picard is now in the official Fedora package collection:

[https://admin.fedoraproject.org/pkgdb/packages/name/picard https://admin.fedoraproject.org/pkgdb/packages/name/picard]

since dependent packages [[Py Qt4|PyQt4]] and libdiscid are now also available in Fedora. Just install with yum

<pre>yum install picard
</pre>

Currently these packages do not have support for acoustic fingerprinting because that depends on ffmpeg which isn't available in Fedora due to patent issues in ffmpeg. An add-on package to be made available in [http://rpmfusion.org RPM Fusion] is being worked on. In the meantime you can enable this manually, here's some (untested) steps that should get you going:

Follow the instructions on:

[http://rpm.livna.org/rlowiki/ http://rpm.livna.org/rlowiki/]

to enable the livna repository. Once enabled, run as root:

<pre>yum install yum-utils rpmdevtools rpm-build ffmpeg-devel
</pre>

as normal user:

<pre>yumdownloader --source picard
fedora-buildrpmtree
rpm -Uvh picard*.src.rpm (i.e. that you just downloaded)
cd ~/rpmbuild/SPECS
</pre>

edit picard.spec in your favourite editor and add "[[Build Requires|BuildRequires]]: ffmpeg-devel" in the [[Build Requires|BuildRequires]] section.

<pre>rpmbuild -bb picard.spec
cd ~/rpmbuild/RPMS/i386/ (or whatever arch you run on)
</pre>

as root:

<pre>yum localinstall picard-*.i386.rpm
</pre>

(note you may need to remove any previously installed picard if you haven't bumped the release number. You can provide feedback to alexlan AT fedoraproject org)

==See Also==

* [[Picard Qt/Change Log|/ChangeLog]]
* [[Picard Qt/Scripting|/Scripting]]
* [[Picard Qt/Plugins|/Plugins]]
* [[Picard Qt/Tag Mapping|/TagMapping]]

[[Category:Picard]] [[Category:Development]]

Latest revision as of 00:27, 28 March 2010

Redirect to: