2012-10-12, 00:30
Just to confirm, these instructions work on Mac OS X 10.8.2 Mountain Lion.
I successfully compiled the addons.
But, on OS X 10.8.x you have to port install "mysql55" (it has replaced mysql5-devel); and you need to change the paths in step 4. accordingly.
Thanks again janbar
/Martin
I successfully compiled the addons.
But, on OS X 10.8.x you have to port install "mysql55" (it has replaced mysql5-devel); and you need to change the paths in step 4. accordingly.
Thanks again janbar
/Martin
(2012-10-11, 14:54)janbar Wrote: @all Mac (brave) users
See below the tutorial to build addon and test it with your Mac:
1 - First install "port" for your Mac:
=============================
1.1 - Install Xcode for your Mac: Go to http://connect.apple.com/
Snow leopard: Xcode 3.2.6
Lion: Xcode 4.3
Mountain Lion: Xcode 4.4
1.2 - Install "port": Go to http://http://www.macports.org/install.php
Prefer Mac OS X Package (.pkg) installer specific for your Mac ( Mountain Lion, Lion, Snow Leopard)
At this stage use Terminal console.
**********************************
2 - Configure port using Terminal console:
===================================
sudo port selfupdate
(sudo need your favorite password)
3 - Add new port needed to build addon:
==================================
sudo port install boost
sudo port install mysql5-devel
4 - Create links from ports
======================
4.1 Headers file
sudo ln -s /opt/local/include/mysql5/mysql /usr/include/mysql
sudo ln -s /opt/local/include/boost /usr/include/boost
4.2 Libtool
cd /opt/local ; for file in lib/libboost*.a; do sudo ln -s /opt/local/$file /usr/$file; done
sudo ln -s /opt/local/lib/libmysqlclient.a /usr/local/lib/libmysqlclient.a
5 - BUILD / INSTALL ADDON (please wait cfetzer pull request of my last commits about OSX)
=============================================================================
5.1 git clone
cd ; mkdir src ; cd src
git clone git://github.com/fetzerch/xbmc-pvr-addons.git xbmc-pvr-addons
5.2 Build
cd xbmc-pvr-addons
./bootstrap
./configure
make
make zip
Get "addons/pvr.mythtv.cmyth-darwin-unknown.zip" and upload it with "XBMC add addon from zip file".
5.3 To rebuild it after git pull or others change:
cd xbmc-pvr-addons
make distclean
Then restart 5.2
Br.