Thursday, September 13, 2007

INSTALLING GAMERA (via python universal binaries)

here's how:

1) do you have XCODE installed?

make sure that the developers tools are installed with the SDK option. The developer's tools are available for free @:

http://developer.apple.com/tools/download/

(again, during install, don't forget the SDK option)


2) which version of PYTHON do you have?


check which version of python is currently running...you can do this in terminal with the command:

python

if it comes up as: Python 2.4.4 , thats a good thing move on to step 3.

otherwise, verify that Python 2.4 is NOT on your machine by searching the following directory:
/Library/Frameworks/Python.framework/Versions/

and if 2.4 is not present download the Python 2.4 universal binary here:
http://www.pythonmac.org/packages/py24-fat/index.html

the installer will then make this version the current one, so you should be all set. verify this returning to terminal (if not there already) and type:

python

this time it should read:
Python 2.4.4


3) which version of wxPYTHON do you have?

wxPython is required for proper communication bt/ c++ wxwidgets and python.
you'll need wxPython 2.8.4.2 unicode (although versions up to 2.8.6.1 have been successful), which can be downloaded here (under MAC OS X section, in Python 2.4):
http://www.wxpython.org/download.php#binaries



there. the background stuff is complete.


4) is SVN on your system?

Subversion is the version control program utilized for the Gamera project. You will need to have Subversion (SVN) on your computer to download Gamera properly. If you do not have SVN. please download the most recent stable universal binary here:
http://metissian.com/projects/macosx/subversion/


5) $PATH: is SVN in your path?

SVN may not be in the path of searchable folders, so in terminal, check if:
'/usr/local/bin' is in the path, by typing:

$PATH

if not, simply write (in terminal):

export PATH = $PATH:
/usr/local/bin

this command will place this folder into your path temporarily (it will reset once the terminal shell is closed). If you choose to later, you can permanently change the path by editing your .profile file with vi, emacs, or pico... all within terminal.



6) download GAMERA using SVN

now we are going to download the most recent Gamera using subversion, within terminal. Type the following:

svn co https://gamera.svn.sourceforge.net/svnroot/gamera/trunk/gamera


if it says permission denied, type:

sudo svn co https://gamera.svn.sourceforge.net/svnroot/gamera/trunk/gamera

you will be asked for your password (which is your account password for your computer). Gamera will now download, trunk, branches and all...it is possible to download the trunk alone, but thats not what we did...


7) build and install GAMERA:

a) using Terminal enter the Gamera directory, find the trunk, then keep entering folders until you are in the folder
with setup.py (should just be gamera/gamera). Once there, you can begin the build. Type:

python setup.py build

again if you get a return error that reads permission denied do a 'sudo'.

sudo python setup.py build
then enter your password.

b) once the build is completed, you can do the install:

sudo python setup.py install

when this is completed, you can check to see if Gamera is working by typing:

gamera_gui


8) install MUSIC STAVES

follow the instructions on the music staves page... works wonderfully ;)
http://lionel.kr.hs-niederrhein.de/~dalitz/data/projekte/stafflines/


9) install AOMR2: properly soon...

the AOMR2 software will hopefully be rehosted soon, and as a result, has been installed in piecemeal fashion from the html pages comprised of the most recent versions of the code. for quick access to this version, until rehosted please send an email.

No comments: