Create a gist now

Instantly share code, notes, and snippets.

My notes on compiling Gramps on OSX
My notes on compiling Gramps on OSX
OSX 10.8.3
XCode 4.6.3
~ $ xcodebuild -showsdks
Mac OS X 10.7 -sdk macosx10.7
OS X 10.8 -sdk macosx10.8
In case you try to install XCode 3 and encounter the message:
'In order to continue installation, please close the following application:
1) Checkout Gramps 'setup files':
cd ~
svn co gramps-mac
2) Setup jhbuild / gtk (re-run to get the latest modulesets and jhbuildrc)
cd ~
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
Merging translations into
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
==> 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 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
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"])
export DEVELOPER_DIR=/Users/guilherme/local/developer/
$DEVELOPER_DIR/usr/bin jhbuild ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment