Picard Qt/Macports Install: Difference between revisions
RobertKaye (talk | contribs) (Make the naming more consistent (Imported from MoinMoin)) |
(No difference)
|
Revision as of 00:56, 17 July 2008
Notes
- I had quite a bit of trouble getting anything to build with the '+universal' variant. You should probably not use this for building things via MacPorts in general.
- Need to test experimental libofa 0.9.4, and create an updated Portfile for it.
[Testing a new libofa release]
Installation steps
1. Install MacPorts, see [their website] for more information on this.
2. Run this to install some dependencies of PicardQt:
sudo port install expat ffmpeg fftw-3 gettext python_select python25 qt4-mac
3. Activate your newly-built version of Python 2.5, using python_select:
sudo python_select python25
4. Install more dependencies (it is important that you have run python_select before running this command!)
sudo port install py25-hashlib py25-mutagen py25-pyqt4
5. Install (and modify the source code in the process) libofa.
sudo port -d patch libofa
This will fetch, extract and patch libofa as the MacPorts package maintainers see fit.- "cd" to the directory returned by the "port" command. It should explicitly tell you where it has extracted the source code to. In my case, this is the command I ran in the terminal to get there:
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libofa/work/libofa-0.9.3/
- Apply the change to the source code described [here] (assuming you want PUID generation): "nano" and "vi" are two common text editors. Keep in mind you need to edit the file with root permissions... something like this would be appropriate:
sudo nano -w configure
This instructs "nano," a text editor, to open the "configure" file for editing. Make the changes as per the link above, and follow the next step to finish the install process. - Now "cd" out of this directory (to avoid any conflicts with MacPorts.) Finish installing your new, modified libofa:
cd ~; sudo port -d install libofa
6. Download the PicardQt source, extract it, and apply [this change] if you are running OS X on a PowerPC processor. All it truly requires is replacing the string "OFA_LITTLE_ENDIAN" with the string "OFA_BIG_ENDIAN" in picard/musicdns/ofa.c. This change is required for Picard's PUID generation to work on PPC processors with versions 0.9.0 and 0.10.0rc1.
7. I had to apply a few more changes, specifically in picard/musicdns/avcodec.c. The changes involved changing two "#include" lines to find the ffmmpeg/avcodec/avformat headers correctly. There may have been an easier way to do this, but this was the most straight-forward way.