Picard Qt/Mac Install Guide: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(ctypes not needed if you use python 2.5 (Imported from MoinMoin))
(remove spam)
 
(41 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| border="1"
|-
| This page is outdated, some of the steps are not required anymore, some are changed.
|}

==Notes==
==Notes==


* CAUTION: Proceed at your own risk. This isn't official yet and is not supported. '''This document is provided purely for informational purposes and should not be used if you don't know what you're doing'''.
* CAUTION: Proceed at your own risk. This isn't official yet and is not supported. '''This document is provided purely for informational purposes and should not be used if you don't know what you're doing'''.
* This procedure is quite complex and time-consuming. I've tried installing it on three different Macs, spent two days on it and still couldn't get it to work (varying from picky libraries that won't compile to crashing executable). If anyone has managed to get a working .app, please - have mercy - and distribute it!
* This guide lets you to compile a lot of libraries that are required to enable fingerprinting support in Picard, but in the final step it doesn't use them. If you don't want to use PUIDs, you can skip installing of expat, libofa and ffmpeg. Otherwise you will need to edit build.cfg after running "python setup.py config". If somebody has time to expand the FFmpeg installation step (for example with similar configuration as I [[Picard Qt/Building On Windows|use on Windows]]) and fix the Picard installation step to actually use it, please do so. -- [[User:LukasLalinsky|LukasLalinsky]] 09:34, 06 June 2007 (UTC)
* I couldn't get picard to pick up the right settings automatically. Here's my handcrafted (and working) build.cfg:

<pre>[directshow]
libs =
cflags =

[libofa]
libs = -L/usr/local/lib -lofa
cflags = -I/usr/local/include

[avcodec]
libs = -L/opt/local/lib -lavcodec -lavformat -lavutil
cflags = -I/opt/local/include/ffmpeg

[build]
with-directshow = False
with-avcodec = True
with-libofa = True</pre>
<ul><li style="list-style-type:none">-- [[User:JuergenKreileder|JuergenKreileder]]
When I use this <code><nowiki>build.cfg</nowiki></code> and run <code><nowiki>python setup.py build_ext -i</nowiki></code> I get this mess of errors: [http://pastebin.com/m120edf93 http://pastebin.com/m120edf93] - Anyone have any ideas? -[[User:AaronCooper|AaronCooper]]
I've used ffmpeg from [[Mac Ports|MacPorts]]. If you installed it manually, you'll probably have to change the cflags line for avcodec to something like "cflags = -I/usr/local/include/ffmpeg". -- [[User:JuergenKreileder|JuergenKreileder]]
I saw the same error, reinstalling ffmpeg solved this for me (upgrade didn't work, apparently ffmpeg trips over itself when compiling, so port uninstall && port install is required). -- [[User:MartijnPieters|MartijnPieters]]
</ul>

I've done all the instructions on Intel Mac (with fixed build.cfg, fixed libofa, ffmpeg from svn), and Picard runs! ...but reports "No decoders found! Fingerprinting will be disabled". How do I fix that?


==Installation Steps==
==Installation Steps==
Line 17: Line 39:
===Qt4===
===Qt4===


* download and extract [http://www.trolltech.com/developer/downloads/qt/mac qt-mac-opensource-src-4.2.3.tar.gz] [33.4 MB]
* download the binary and install [http://www.trolltech.com/download?target=ftp://ftp.trolltech.com/qt/source/qt-mac-opensource-4.2.3.dmg qt-mac-opensource-4.2.3.dmg] [51 MB]

<pre>./configure
make
sudo make install</pre>


===PyQt4===
===PyQt4===
Line 27: Line 45:
* download and extract [http://www.riverbankcomputing.com/Downloads/sip4/ sip-4.6.tar.gz] [400 kB]
* download and extract [http://www.riverbankcomputing.com/Downloads/sip4/ sip-4.6.tar.gz] [400 kB]


<pre>sudo python configure.py
<pre>python configure.py
make
make
sudo make install</pre>
sudo make install</pre>
* download and extract [http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ PyQt-mac-gpl-4.2.tar.gz] [5.4 MB]
* download and extract [http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ PyQt-mac-gpl-4.2.tar.gz] [5.4 MB]
* 4.3 doesn't work for me, so i found 4.2 [http://pyqwt.sourceforge.net/support/PyQt-mac-gpl-4.2.tar.gz http://pyqwt.sourceforge.net/support/PyQt-mac-gpl-4.2.tar.gz]


<pre>sudo python configure.py -q /usr/local/Trolltech/Qt-4.2.3/bin/qmake
<pre>python configure.py
sudo make
make
sudo make install</pre>
sudo make install</pre>


===Mutagen===
===Mutagen===


* download and extract [http://www.sacredchao.net/~piman/software/ mutagen-1.9.tar.gz] [484 kB]
* download and extract [http://www.sacredchao.net/~piman/software/ mutagen-1.10.1.tar.gz] [484 kB]


<pre>python setup.py build
<pre>python setup.py build
Line 45: Line 64:
===LibDiscID===
===LibDiscID===


* download and extract [http://users.musicbrainz.org/~matt/ libdiscid-0.1.1.tar.gz] [325 kB]
* download and extract [http://users.musicbrainz.org/~matt/ libdiscid-0.2.2.tar.gz] [325 kB]


<pre>./configure
<pre>./configure
Line 55: Line 74:
* download and extract [http://sourceforge.net/project/showfiles.php?group_id=10127&package_id=10780 expat-2.0.0.tar.gz] [450 kB]
* download and extract [http://sourceforge.net/project/showfiles.php?group_id=10127&package_id=10780 expat-2.0.0.tar.gz] [450 kB]


<pre>./configure --prefix=/usr
<pre>./configure --prefix=/usr/local
make buildlib
vi Makefile</pre>
* change ''LIBRARY = libexpat.la'' to ''LIBRARY = libexpatw.la'', save and quit (Esc, w, q, Enter)

<pre>make buildlib
sudo make installlib</pre>
sudo make installlib</pre>


Line 69: Line 85:
* (if you tried configuring libofa without copying the libtool's ''ltmain.sh'' file, run '''make clean''']
* (if you tried configuring libofa without copying the libtool's ''ltmain.sh'' file, run '''make clean''']


<pre>./configure --prefix=/usr
<pre>./configure --prefix=/usr/local
make
make
sudo make install</pre>
sudo make install</pre>
<ul><li style="list-style-type:none">PUID generation seems to be broken in libofa-0.9.3. See [http://lists.musicbrainz.org/pipermail/musicbrainz-devel/2007-July/002204.html http://lists.musicbrainz.org/pipermail/musicbrainz-devel/2007-July/002204.html] for a work-around.
</ul>


===Ffmpeg===
===ffmpeg===


* You need either Fink or SVN to install ffmpeg. Instructions here: [http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html]
* dammit, it looks like we need Fink... :(


Note: The configure for ffmpeg in the above document didn't work, but it appears to work with this configure command: <code><nowiki>./configure --enable-libmp3lame --enable-static --disable-vhook</nowiki></code>
<code><nowiki>sudo fink install ffmpeg</nowiki></code> / or follow [http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html]

===gettext===

You need gettext for the localization support when compiling PicardQT <pre>curl -O ftp://mirrors.kernel.org/gnu/gettext/gettext-0.16.tar.gz
or
wget ftp://mirrors.kernel.org/gnu/gettext/gettext-0.16.tar.gz
tar -xzvf gettext-0.16.tar.gz
./configure --prefix=/usr/local
make
sudo make install
</pre>


===PicardQt===
===PicardQt===


* download and extract [http://ftp.musicbrainz.org/pub/musicbrainz/users/luks/picard-qt/ picard-0.9.0alpha6.tar.gz] [371 kB]
* download and extract the latest PicardQT version (currently [http://musicbrainz.org/ftpmirror/pub/musicbrainz/users/luks/picard-qt/picard-0.9.0alpha11.tar.gz http://musicbrainz.org/ftpmirror/pub/musicbrainz/users/luks/picard-qt/picard-0.9.0alpha11.tar.gz])


<pre>python setup.py config
<pre>python setup.py config -I /usr/local/include:/usr/local/include/ffmpeg/
python setup.py build_ext -i
python setup.py install</pre>
python setup.py install</pre>


And from now just type picard to run the app!
And from now just type picard to run the app!

See [[Picard Qt/Mac Usage Guide|PicardQt/MacUsageGuide]] for more info on using the app with iTunes.

PUID generation with 0.9.0alpha11 is broken on ppc (actually on all big endian systems). See [http://lists.musicbrainz.org/pipermail/musicbrainz-devel/2007-July/002205.html http://lists.musicbrainz.org/pipermail/musicbrainz-devel/2007-July/002205.html] for a work-around.


==Contributions==
==Contributions==
Line 92: Line 126:
* HUGE thanks to luks and warp in #musicbrainz for their help throughout this process.
* HUGE thanks to luks and warp in #musicbrainz for their help throughout this process.


[[Category:To Be Reviewed]] [[Category:Picard]]
[[Category:MusicBrainz Picard]][[Category:How To]]

Latest revision as of 17:24, 27 October 2010

Notes

  • CAUTION: Proceed at your own risk. This isn't official yet and is not supported. This document is provided purely for informational purposes and should not be used if you don't know what you're doing.
  • This procedure is quite complex and time-consuming. I've tried installing it on three different Macs, spent two days on it and still couldn't get it to work (varying from picky libraries that won't compile to crashing executable). If anyone has managed to get a working .app, please - have mercy - and distribute it!
  • This guide lets you to compile a lot of libraries that are required to enable fingerprinting support in Picard, but in the final step it doesn't use them. If you don't want to use PUIDs, you can skip installing of expat, libofa and ffmpeg. Otherwise you will need to edit build.cfg after running "python setup.py config". If somebody has time to expand the FFmpeg installation step (for example with similar configuration as I use on Windows) and fix the Picard installation step to actually use it, please do so. -- LukasLalinsky 09:34, 06 June 2007 (UTC)
  • I couldn't get picard to pick up the right settings automatically. Here's my handcrafted (and working) build.cfg:
[directshow] 
libs = 
cflags = 

[libofa]
libs = -L/usr/local/lib -lofa
cflags = -I/usr/local/include 

[avcodec]
libs = -L/opt/local/lib -lavcodec -lavformat -lavutil
cflags = -I/opt/local/include/ffmpeg

[build]
with-directshow = False
with-avcodec = True
with-libofa = True
  • -- JuergenKreileder When I use this build.cfg and run python setup.py build_ext -i I get this mess of errors: http://pastebin.com/m120edf93 - Anyone have any ideas? -AaronCooper I've used ffmpeg from MacPorts. If you installed it manually, you'll probably have to change the cflags line for avcodec to something like "cflags = -I/usr/local/include/ffmpeg". -- JuergenKreileder I saw the same error, reinstalling ffmpeg solved this for me (upgrade didn't work, apparently ffmpeg trips over itself when compiling, so port uninstall && port install is required). -- MartijnPieters

I've done all the instructions on Intel Mac (with fixed build.cfg, fixed libofa, ffmpeg from svn), and Picard runs! ...but reports "No decoders found! Fingerprinting will be disabled". How do I fix that?

Installation Steps

Python

Qt4

PyQt4

python configure.py  
make
sudo make install
python configure.py 
make
sudo make install

Mutagen

python setup.py build 
sudo python setup.py install

LibDiscID

./configure 
make
sudo make install

Expat2

./configure --prefix=/usr/local 
make buildlib
sudo make installlib

LibOfa

  • download and extract libofa-0.9.3.tar.gz (direct link) [376 kB]
  • download and extract libtool-1.5.22.tar.gz [2.8 MB]
  • copy ltmain.sh from the libtool dir to the libofa dir (overwrite)
  • (if you tried configuring libofa without copying the libtool's ltmain.sh file, run make clean]
./configure --prefix=/usr/local 
make
sudo make install

ffmpeg

Note: The configure for ffmpeg in the above document didn't work, but it appears to work with this configure command: ./configure --enable-libmp3lame --enable-static --disable-vhook

gettext

You need gettext for the localization support when compiling PicardQT

curl -O ftp://mirrors.kernel.org/gnu/gettext/gettext-0.16.tar.gz
or
wget ftp://mirrors.kernel.org/gnu/gettext/gettext-0.16.tar.gz
tar -xzvf gettext-0.16.tar.gz
./configure --prefix=/usr/local
make
sudo make install

PicardQt

python setup.py config -I /usr/local/include:/usr/local/include/ffmpeg/
python setup.py build_ext -i
python setup.py install

And from now just type picard to run the app!

See PicardQt/MacUsageGuide for more info on using the app with iTunes.

PUID generation with 0.9.0alpha11 is broken on ppc (actually on all big endian systems). See http://lists.musicbrainz.org/pipermail/musicbrainz-devel/2007-July/002205.html for a work-around.

Contributions

  • HUGE thanks to luks and warp in #musicbrainz for their help throughout this process.