public
Last active

My notes on compiling Gramps on OSX

  • Download Gist
build Gramps OSX
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
My notes on compiling Gramps on OSX
 
==========
System:
 
OSX 10.8.3
XCode 4.6.3
 
~ $ xcodebuild -showsdks
OS X SDKs:
Mac OS X 10.7 -sdk macosx10.7
OS X 10.8 -sdk macosx10.8
 
 
==========
Sources:
 
http://www.gramps-project.org/wiki/index.php?title=Mac_OS_X:Build_from_source:Application_package
https://developer.gnome.org/jhbuild/stable/command-reference.html.en
https://live.gnome.org/GTK%2B/OSX/Building#Installing_XCode_3_on_XCode_4_systems
http://winswitch.org/dev/macosx.html
https://github.com/translate/virtaal/blob/master/devsupport/mac-bundle/builder.sh
 
In case you try to install XCode 3 and encounter the message:
'In order to continue installation, please close the following application:
iTunes'
http://www.macosxtips.co.uk/index_files/fix-xcode-instsaller-please-close-itunes.php
 
 
==========
1) Checkout Gramps 'setup files':
 
cd ~
svn co https://svn.code.sf.net/p/gramps/code/trunk/mac gramps-mac
 
 
==========
2) Setup jhbuild / gtk (re-run to get the latest modulesets and jhbuildrc)
 
cd ~
wget http://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh
sh gtk-osx-build-setup.sh
 
 
==========
3) Add into '~/.bash_profile':
 
export PATH=~/.local/bin:$PATH # make jhbuild available on path
alias jhbuild="PATH=~/gtk/bin:$PATH jhbuild" # let it use its own tools
 
 
==========
4)'If you're going to bundle GRAMPS, you'll need to add [to] .jhbuildrc-custom'.
 
Uncomment the line 57:
_gtk_osx_use_jhbuild_python = True
 
 
==========
5) Start compiling base system:
 
$jhbuild bootstrap --ignore-system
 
 
==========
6) Compile dependencies:
 
$jhbuild build meta-gtk-osx-bootstrap meta-gtk-osx-freetype meta-gtk-osx-gtk3 berkeleydb python
 
 
==========
7) Compile remaining dependencies and finaly Gramps
 
$jhbuild --moduleset=gramps-mac/gramps.modules build gramps-svn
 
==> Problem:
mv: rename .deps/update_mime_database-update-mime-database.Tpo to .deps/update_mime_database-update-mime-database.Po: No such file or directory
make[1]: *** [update_mime_database-update-mime-database.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Merging translations into freedesktop.org.xml.
Merging translations into freedesktop.org.xml.
CREATED freedesktop.org.xml
CREATED freedesktop.org.xml
make: *** [check-recursive] Error 1
*** Error during phase build of shared-mime-info: ########## Error running make -j 16 *** [24/44]
 
==> Solution: '[1] Rerun phase checkout' and it should continue.
 
 
Wait for:
*** success *** [44/44]
 
 
==========
8) Launch Gramps
$jhbuild shell
$gramps
 
==> Problem:
~ $ jhbuild shell
Prefix: /Users/guilherme/gtk/inst
Entered jhbuild shell, type 'exit' to return.
~ $ gramps
ResourcePath.ERROR: Resource Path /Users/guilherme/gtk/inst/_jhbuild/root-gramps-svn/Users/guilherme/gtk/inst/share is invalid
~ $ ls gtk/inst/_jhbuild/
manifests packagedb.xml
 
==> John Ralls reply
To fix the startup problem, cd to ~/gtk/src/gramps-svn and run
python setup.py install
which should re-write the ResourcePath without the jhbuild noise. Note that if you're going to work on
Gramps you'll want to just run
python Gramps.py
from the source directory so you don't have an install in your write-test loop.
----
 
needed to install XCode 3
 
setup_sdk("10.5", "10.5",["i386"])
 
skip.append("perl-xml-parser")
 
 
export DEVELOPER_DIR=/Users/guilherme/local/developer/
 
$DEVELOPER_DIR/usr/bin jhbuild ...

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.